buildJobcloudAllowedRegionsRecord
buildJobcloudAllowedRegionsRecord(
): JobcloudAllowedRegionsRecordReturns all organisation-enabled AWS regions as a keyed record.
Remarks
The returned shape can be passed directly to APIs that model regions as keyed collections, including AwsAccountDefaultsDefaultVpcCleanupArgs.regions. A new record is returned on every call.
Returns
JobcloudAllowedRegionsRecord— Every jobcloudAllowedRegions entry keyed by its AWS region identifier.
Example
CODE
import { AwsAccountDefaults } from '@jobcloud/aws-account-defaults';
import { buildJobcloudAllowedRegionsRecord } from '@jobcloud/pulumi-helpers';
const defaults = new AwsAccountDefaults({
identity: 'account-defaults',
defaultVpcCleanup: {
regions: buildJobcloudAllowedRegionsRecord(),
},
});