@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,155 lines (1,154 loc) • 506 kB
JavaScript
"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AwsProvider = exports.awsProviderIgnoreTagsToHclTerraform = exports.awsProviderIgnoreTagsToTerraform = exports.awsProviderEndpointsToHclTerraform = exports.awsProviderEndpointsToTerraform = exports.awsProviderDefaultTagsToHclTerraform = exports.awsProviderDefaultTagsToTerraform = exports.awsProviderAssumeRoleWithWebIdentityToHclTerraform = exports.awsProviderAssumeRoleWithWebIdentityToTerraform = exports.awsProviderAssumeRoleToHclTerraform = exports.awsProviderAssumeRoleToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function awsProviderAssumeRoleToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
duration: cdktf.stringToTerraform(struct.duration),
external_id: cdktf.stringToTerraform(struct.externalId),
policy: cdktf.stringToTerraform(struct.policy),
policy_arns: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.policyArns),
role_arn: cdktf.stringToTerraform(struct.roleArn),
session_name: cdktf.stringToTerraform(struct.sessionName),
source_identity: cdktf.stringToTerraform(struct.sourceIdentity),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.tags),
transitive_tag_keys: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.transitiveTagKeys),
};
}
exports.awsProviderAssumeRoleToTerraform = awsProviderAssumeRoleToTerraform;
function awsProviderAssumeRoleToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
duration: {
value: cdktf.stringToHclTerraform(struct.duration),
isBlock: false,
type: "simple",
storageClassType: "string",
},
external_id: {
value: cdktf.stringToHclTerraform(struct.externalId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
policy: {
value: cdktf.stringToHclTerraform(struct.policy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
policy_arns: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.policyArns),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
role_arn: {
value: cdktf.stringToHclTerraform(struct.roleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
session_name: {
value: cdktf.stringToHclTerraform(struct.sessionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
source_identity: {
value: cdktf.stringToHclTerraform(struct.sourceIdentity),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.tags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
transitive_tag_keys: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.transitiveTagKeys),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.awsProviderAssumeRoleToHclTerraform = awsProviderAssumeRoleToHclTerraform;
function awsProviderAssumeRoleWithWebIdentityToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
duration: cdktf.stringToTerraform(struct.duration),
policy: cdktf.stringToTerraform(struct.policy),
policy_arns: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.policyArns),
role_arn: cdktf.stringToTerraform(struct.roleArn),
session_name: cdktf.stringToTerraform(struct.sessionName),
web_identity_token: cdktf.stringToTerraform(struct.webIdentityToken),
web_identity_token_file: cdktf.stringToTerraform(struct.webIdentityTokenFile),
};
}
exports.awsProviderAssumeRoleWithWebIdentityToTerraform = awsProviderAssumeRoleWithWebIdentityToTerraform;
function awsProviderAssumeRoleWithWebIdentityToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
duration: {
value: cdktf.stringToHclTerraform(struct.duration),
isBlock: false,
type: "simple",
storageClassType: "string",
},
policy: {
value: cdktf.stringToHclTerraform(struct.policy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
policy_arns: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.policyArns),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
role_arn: {
value: cdktf.stringToHclTerraform(struct.roleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
session_name: {
value: cdktf.stringToHclTerraform(struct.sessionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
web_identity_token: {
value: cdktf.stringToHclTerraform(struct.webIdentityToken),
isBlock: false,
type: "simple",
storageClassType: "string",
},
web_identity_token_file: {
value: cdktf.stringToHclTerraform(struct.webIdentityTokenFile),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.awsProviderAssumeRoleWithWebIdentityToHclTerraform = awsProviderAssumeRoleWithWebIdentityToHclTerraform;
function awsProviderDefaultTagsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
tags: cdktf.hashMapper(cdktf.stringToTerraform)(struct.tags),
};
}
exports.awsProviderDefaultTagsToTerraform = awsProviderDefaultTagsToTerraform;
function awsProviderDefaultTagsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
tags: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.tags),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.awsProviderDefaultTagsToHclTerraform = awsProviderDefaultTagsToHclTerraform;
function awsProviderEndpointsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
accessanalyzer: cdktf.stringToTerraform(struct.accessanalyzer),
account: cdktf.stringToTerraform(struct.account),
acm: cdktf.stringToTerraform(struct.acm),
acmpca: cdktf.stringToTerraform(struct.acmpca),
amg: cdktf.stringToTerraform(struct.amg),
amp: cdktf.stringToTerraform(struct.amp),
amplify: cdktf.stringToTerraform(struct.amplify),
apigateway: cdktf.stringToTerraform(struct.apigateway),
apigatewayv2: cdktf.stringToTerraform(struct.apigatewayv2),
appautoscaling: cdktf.stringToTerraform(struct.appautoscaling),
appconfig: cdktf.stringToTerraform(struct.appconfig),
appfabric: cdktf.stringToTerraform(struct.appfabric),
appflow: cdktf.stringToTerraform(struct.appflow),
appintegrations: cdktf.stringToTerraform(struct.appintegrations),
appintegrationsservice: cdktf.stringToTerraform(struct.appintegrationsservice),
applicationautoscaling: cdktf.stringToTerraform(struct.applicationautoscaling),
applicationinsights: cdktf.stringToTerraform(struct.applicationinsights),
applicationsignals: cdktf.stringToTerraform(struct.applicationsignals),
appmesh: cdktf.stringToTerraform(struct.appmesh),
appregistry: cdktf.stringToTerraform(struct.appregistry),
apprunner: cdktf.stringToTerraform(struct.apprunner),
appstream: cdktf.stringToTerraform(struct.appstream),
appsync: cdktf.stringToTerraform(struct.appsync),
athena: cdktf.stringToTerraform(struct.athena),
auditmanager: cdktf.stringToTerraform(struct.auditmanager),
autoscaling: cdktf.stringToTerraform(struct.autoscaling),
autoscalingplans: cdktf.stringToTerraform(struct.autoscalingplans),
backup: cdktf.stringToTerraform(struct.backup),
batch: cdktf.stringToTerraform(struct.batch),
bcmdataexports: cdktf.stringToTerraform(struct.bcmdataexports),
beanstalk: cdktf.stringToTerraform(struct.beanstalk),
bedrock: cdktf.stringToTerraform(struct.bedrock),
bedrockagent: cdktf.stringToTerraform(struct.bedrockagent),
budgets: cdktf.stringToTerraform(struct.budgets),
ce: cdktf.stringToTerraform(struct.ce),
chatbot: cdktf.stringToTerraform(struct.chatbot),
chime: cdktf.stringToTerraform(struct.chime),
chimesdkmediapipelines: cdktf.stringToTerraform(struct.chimesdkmediapipelines),
chimesdkvoice: cdktf.stringToTerraform(struct.chimesdkvoice),
cleanrooms: cdktf.stringToTerraform(struct.cleanrooms),
cloud9: cdktf.stringToTerraform(struct.cloud9),
cloudcontrol: cdktf.stringToTerraform(struct.cloudcontrol),
cloudcontrolapi: cdktf.stringToTerraform(struct.cloudcontrolapi),
cloudformation: cdktf.stringToTerraform(struct.cloudformation),
cloudfront: cdktf.stringToTerraform(struct.cloudfront),
cloudfrontkeyvaluestore: cdktf.stringToTerraform(struct.cloudfrontkeyvaluestore),
cloudhsm: cdktf.stringToTerraform(struct.cloudhsm),
cloudhsmv2: cdktf.stringToTerraform(struct.cloudhsmv2),
cloudsearch: cdktf.stringToTerraform(struct.cloudsearch),
cloudtrail: cdktf.stringToTerraform(struct.cloudtrail),
cloudwatch: cdktf.stringToTerraform(struct.cloudwatch),
cloudwatchevents: cdktf.stringToTerraform(struct.cloudwatchevents),
cloudwatchevidently: cdktf.stringToTerraform(struct.cloudwatchevidently),
cloudwatchlog: cdktf.stringToTerraform(struct.cloudwatchlog),
cloudwatchlogs: cdktf.stringToTerraform(struct.cloudwatchlogs),
cloudwatchobservabilityaccessmanager: cdktf.stringToTerraform(struct.cloudwatchobservabilityaccessmanager),
cloudwatchrum: cdktf.stringToTerraform(struct.cloudwatchrum),
codeartifact: cdktf.stringToTerraform(struct.codeartifact),
codebuild: cdktf.stringToTerraform(struct.codebuild),
codecatalyst: cdktf.stringToTerraform(struct.codecatalyst),
codecommit: cdktf.stringToTerraform(struct.codecommit),
codeconnections: cdktf.stringToTerraform(struct.codeconnections),
codedeploy: cdktf.stringToTerraform(struct.codedeploy),
codeguruprofiler: cdktf.stringToTerraform(struct.codeguruprofiler),
codegurureviewer: cdktf.stringToTerraform(struct.codegurureviewer),
codepipeline: cdktf.stringToTerraform(struct.codepipeline),
codestarconnections: cdktf.stringToTerraform(struct.codestarconnections),
codestarnotifications: cdktf.stringToTerraform(struct.codestarnotifications),
cognitoidentity: cdktf.stringToTerraform(struct.cognitoidentity),
cognitoidentityprovider: cdktf.stringToTerraform(struct.cognitoidentityprovider),
cognitoidp: cdktf.stringToTerraform(struct.cognitoidp),
comprehend: cdktf.stringToTerraform(struct.comprehend),
computeoptimizer: cdktf.stringToTerraform(struct.computeoptimizer),
config: cdktf.stringToTerraform(struct.config),
configservice: cdktf.stringToTerraform(struct.configservice),
connect: cdktf.stringToTerraform(struct.connect),
connectcases: cdktf.stringToTerraform(struct.connectcases),
controltower: cdktf.stringToTerraform(struct.controltower),
costandusagereportservice: cdktf.stringToTerraform(struct.costandusagereportservice),
costexplorer: cdktf.stringToTerraform(struct.costexplorer),
costoptimizationhub: cdktf.stringToTerraform(struct.costoptimizationhub),
cur: cdktf.stringToTerraform(struct.cur),
customerprofiles: cdktf.stringToTerraform(struct.customerprofiles),
databasemigration: cdktf.stringToTerraform(struct.databasemigration),
databasemigrationservice: cdktf.stringToTerraform(struct.databasemigrationservice),
databrew: cdktf.stringToTerraform(struct.databrew),
dataexchange: cdktf.stringToTerraform(struct.dataexchange),
datapipeline: cdktf.stringToTerraform(struct.datapipeline),
datasync: cdktf.stringToTerraform(struct.datasync),
datazone: cdktf.stringToTerraform(struct.datazone),
dax: cdktf.stringToTerraform(struct.dax),
deploy: cdktf.stringToTerraform(struct.deploy),
detective: cdktf.stringToTerraform(struct.detective),
devicefarm: cdktf.stringToTerraform(struct.devicefarm),
devopsguru: cdktf.stringToTerraform(struct.devopsguru),
directconnect: cdktf.stringToTerraform(struct.directconnect),
directoryservice: cdktf.stringToTerraform(struct.directoryservice),
dlm: cdktf.stringToTerraform(struct.dlm),
dms: cdktf.stringToTerraform(struct.dms),
docdb: cdktf.stringToTerraform(struct.docdb),
docdbelastic: cdktf.stringToTerraform(struct.docdbelastic),
drs: cdktf.stringToTerraform(struct.drs),
ds: cdktf.stringToTerraform(struct.ds),
dynamodb: cdktf.stringToTerraform(struct.dynamodb),
ec2: cdktf.stringToTerraform(struct.ec2),
ecr: cdktf.stringToTerraform(struct.ecr),
ecrpublic: cdktf.stringToTerraform(struct.ecrpublic),
ecs: cdktf.stringToTerraform(struct.ecs),
efs: cdktf.stringToTerraform(struct.efs),
eks: cdktf.stringToTerraform(struct.eks),
elasticache: cdktf.stringToTerraform(struct.elasticache),
elasticbeanstalk: cdktf.stringToTerraform(struct.elasticbeanstalk),
elasticloadbalancing: cdktf.stringToTerraform(struct.elasticloadbalancing),
elasticloadbalancingv2: cdktf.stringToTerraform(struct.elasticloadbalancingv2),
elasticsearch: cdktf.stringToTerraform(struct.elasticsearch),
elasticsearchservice: cdktf.stringToTerraform(struct.elasticsearchservice),
elastictranscoder: cdktf.stringToTerraform(struct.elastictranscoder),
elb: cdktf.stringToTerraform(struct.elb),
elbv2: cdktf.stringToTerraform(struct.elbv2),
emr: cdktf.stringToTerraform(struct.emr),
emrcontainers: cdktf.stringToTerraform(struct.emrcontainers),
emrserverless: cdktf.stringToTerraform(struct.emrserverless),
es: cdktf.stringToTerraform(struct.es),
eventbridge: cdktf.stringToTerraform(struct.eventbridge),
events: cdktf.stringToTerraform(struct.events),
evidently: cdktf.stringToTerraform(struct.evidently),
finspace: cdktf.stringToTerraform(struct.finspace),
firehose: cdktf.stringToTerraform(struct.firehose),
fis: cdktf.stringToTerraform(struct.fis),
fms: cdktf.stringToTerraform(struct.fms),
fsx: cdktf.stringToTerraform(struct.fsx),
gamelift: cdktf.stringToTerraform(struct.gamelift),
glacier: cdktf.stringToTerraform(struct.glacier),
globalaccelerator: cdktf.stringToTerraform(struct.globalaccelerator),
glue: cdktf.stringToTerraform(struct.glue),
gluedatabrew: cdktf.stringToTerraform(struct.gluedatabrew),
grafana: cdktf.stringToTerraform(struct.grafana),
greengrass: cdktf.stringToTerraform(struct.greengrass),
groundstation: cdktf.stringToTerraform(struct.groundstation),
guardduty: cdktf.stringToTerraform(struct.guardduty),
healthlake: cdktf.stringToTerraform(struct.healthlake),
iam: cdktf.stringToTerraform(struct.iam),
identitystore: cdktf.stringToTerraform(struct.identitystore),
imagebuilder: cdktf.stringToTerraform(struct.imagebuilder),
inspector: cdktf.stringToTerraform(struct.inspector),
inspector2: cdktf.stringToTerraform(struct.inspector2),
inspectorv2: cdktf.stringToTerraform(struct.inspectorv2),
internetmonitor: cdktf.stringToTerraform(struct.internetmonitor),
invoicing: cdktf.stringToTerraform(struct.invoicing),
iot: cdktf.stringToTerraform(struct.iot),
iotanalytics: cdktf.stringToTerraform(struct.iotanalytics),
iotevents: cdktf.stringToTerraform(struct.iotevents),
ivs: cdktf.stringToTerraform(struct.ivs),
ivschat: cdktf.stringToTerraform(struct.ivschat),
kafka: cdktf.stringToTerraform(struct.kafka),
kafkaconnect: cdktf.stringToTerraform(struct.kafkaconnect),
kendra: cdktf.stringToTerraform(struct.kendra),
keyspaces: cdktf.stringToTerraform(struct.keyspaces),
kinesis: cdktf.stringToTerraform(struct.kinesis),
kinesisanalytics: cdktf.stringToTerraform(struct.kinesisanalytics),
kinesisanalyticsv2: cdktf.stringToTerraform(struct.kinesisanalyticsv2),
kinesisvideo: cdktf.stringToTerraform(struct.kinesisvideo),
kms: cdktf.stringToTerraform(struct.kms),
lakeformation: cdktf.stringToTerraform(struct.lakeformation),
lambda: cdktf.stringToTerraform(struct.lambda),
launchwizard: cdktf.stringToTerraform(struct.launchwizard),
lex: cdktf.stringToTerraform(struct.lex),
lexmodelbuilding: cdktf.stringToTerraform(struct.lexmodelbuilding),
lexmodelbuildingservice: cdktf.stringToTerraform(struct.lexmodelbuildingservice),
lexmodels: cdktf.stringToTerraform(struct.lexmodels),
lexmodelsv2: cdktf.stringToTerraform(struct.lexmodelsv2),
lexv2models: cdktf.stringToTerraform(struct.lexv2Models),
licensemanager: cdktf.stringToTerraform(struct.licensemanager),
lightsail: cdktf.stringToTerraform(struct.lightsail),
location: cdktf.stringToTerraform(struct.location),
locationservice: cdktf.stringToTerraform(struct.locationservice),
logs: cdktf.stringToTerraform(struct.logs),
lookoutmetrics: cdktf.stringToTerraform(struct.lookoutmetrics),
m2: cdktf.stringToTerraform(struct.m2),
macie2: cdktf.stringToTerraform(struct.macie2),
managedgrafana: cdktf.stringToTerraform(struct.managedgrafana),
mediaconnect: cdktf.stringToTerraform(struct.mediaconnect),
mediaconvert: cdktf.stringToTerraform(struct.mediaconvert),
medialive: cdktf.stringToTerraform(struct.medialive),
mediapackage: cdktf.stringToTerraform(struct.mediapackage),
mediapackagev2: cdktf.stringToTerraform(struct.mediapackagev2),
mediastore: cdktf.stringToTerraform(struct.mediastore),
memorydb: cdktf.stringToTerraform(struct.memorydb),
mgn: cdktf.stringToTerraform(struct.mgn),
mq: cdktf.stringToTerraform(struct.mq),
msk: cdktf.stringToTerraform(struct.msk),
mwaa: cdktf.stringToTerraform(struct.mwaa),
neptune: cdktf.stringToTerraform(struct.neptune),
neptunegraph: cdktf.stringToTerraform(struct.neptunegraph),
networkfirewall: cdktf.stringToTerraform(struct.networkfirewall),
networkmanager: cdktf.stringToTerraform(struct.networkmanager),
networkmonitor: cdktf.stringToTerraform(struct.networkmonitor),
oam: cdktf.stringToTerraform(struct.oam),
opensearch: cdktf.stringToTerraform(struct.opensearch),
opensearchingestion: cdktf.stringToTerraform(struct.opensearchingestion),
opensearchserverless: cdktf.stringToTerraform(struct.opensearchserverless),
opensearchservice: cdktf.stringToTerraform(struct.opensearchservice),
opsworks: cdktf.stringToTerraform(struct.opsworks),
organizations: cdktf.stringToTerraform(struct.organizations),
osis: cdktf.stringToTerraform(struct.osis),
outposts: cdktf.stringToTerraform(struct.outposts),
paymentcryptography: cdktf.stringToTerraform(struct.paymentcryptography),
pcaconnectorad: cdktf.stringToTerraform(struct.pcaconnectorad),
pcs: cdktf.stringToTerraform(struct.pcs),
pinpoint: cdktf.stringToTerraform(struct.pinpoint),
pinpointsmsvoicev2: cdktf.stringToTerraform(struct.pinpointsmsvoicev2),
pipes: cdktf.stringToTerraform(struct.pipes),
polly: cdktf.stringToTerraform(struct.polly),
pricing: cdktf.stringToTerraform(struct.pricing),
prometheus: cdktf.stringToTerraform(struct.prometheus),
prometheusservice: cdktf.stringToTerraform(struct.prometheusservice),
qbusiness: cdktf.stringToTerraform(struct.qbusiness),
qldb: cdktf.stringToTerraform(struct.qldb),
quicksight: cdktf.stringToTerraform(struct.quicksight),
ram: cdktf.stringToTerraform(struct.ram),
rbin: cdktf.stringToTerraform(struct.rbin),
rds: cdktf.stringToTerraform(struct.rds),
recyclebin: cdktf.stringToTerraform(struct.recyclebin),
redshift: cdktf.stringToTerraform(struct.redshift),
redshiftdata: cdktf.stringToTerraform(struct.redshiftdata),
redshiftdataapiservice: cdktf.stringToTerraform(struct.redshiftdataapiservice),
redshiftserverless: cdktf.stringToTerraform(struct.redshiftserverless),
rekognition: cdktf.stringToTerraform(struct.rekognition),
resiliencehub: cdktf.stringToTerraform(struct.resiliencehub),
resourceexplorer2: cdktf.stringToTerraform(struct.resourceexplorer2),
resourcegroups: cdktf.stringToTerraform(struct.resourcegroups),
resourcegroupstagging: cdktf.stringToTerraform(struct.resourcegroupstagging),
resourcegroupstaggingapi: cdktf.stringToTerraform(struct.resourcegroupstaggingapi),
rolesanywhere: cdktf.stringToTerraform(struct.rolesanywhere),
route53: cdktf.stringToTerraform(struct.route53),
route53domains: cdktf.stringToTerraform(struct.route53Domains),
route53profiles: cdktf.stringToTerraform(struct.route53Profiles),
route53recoverycontrolconfig: cdktf.stringToTerraform(struct.route53Recoverycontrolconfig),
route53recoveryreadiness: cdktf.stringToTerraform(struct.route53Recoveryreadiness),
route53resolver: cdktf.stringToTerraform(struct.route53Resolver),
rum: cdktf.stringToTerraform(struct.rum),
s3: cdktf.stringToTerraform(struct.s3),
s3api: cdktf.stringToTerraform(struct.s3Api),
s3control: cdktf.stringToTerraform(struct.s3Control),
s3outposts: cdktf.stringToTerraform(struct.s3Outposts),
s3tables: cdktf.stringToTerraform(struct.s3Tables),
sagemaker: cdktf.stringToTerraform(struct.sagemaker),
scheduler: cdktf.stringToTerraform(struct.scheduler),
schemas: cdktf.stringToTerraform(struct.schemas),
sdb: cdktf.stringToTerraform(struct.sdb),
secretsmanager: cdktf.stringToTerraform(struct.secretsmanager),
securityhub: cdktf.stringToTerraform(struct.securityhub),
securitylake: cdktf.stringToTerraform(struct.securitylake),
serverlessapplicationrepository: cdktf.stringToTerraform(struct.serverlessapplicationrepository),
serverlessapprepo: cdktf.stringToTerraform(struct.serverlessapprepo),
serverlessrepo: cdktf.stringToTerraform(struct.serverlessrepo),
servicecatalog: cdktf.stringToTerraform(struct.servicecatalog),
servicecatalogappregistry: cdktf.stringToTerraform(struct.servicecatalogappregistry),
servicediscovery: cdktf.stringToTerraform(struct.servicediscovery),
servicequotas: cdktf.stringToTerraform(struct.servicequotas),
ses: cdktf.stringToTerraform(struct.ses),
sesv2: cdktf.stringToTerraform(struct.sesv2),
sfn: cdktf.stringToTerraform(struct.sfn),
shield: cdktf.stringToTerraform(struct.shield),
signer: cdktf.stringToTerraform(struct.signer),
simpledb: cdktf.stringToTerraform(struct.simpledb),
sns: cdktf.stringToTerraform(struct.sns),
sqs: cdktf.stringToTerraform(struct.sqs),
ssm: cdktf.stringToTerraform(struct.ssm),
ssmcontacts: cdktf.stringToTerraform(struct.ssmcontacts),
ssmincidents: cdktf.stringToTerraform(struct.ssmincidents),
ssmquicksetup: cdktf.stringToTerraform(struct.ssmquicksetup),
ssmsap: cdktf.stringToTerraform(struct.ssmsap),
sso: cdktf.stringToTerraform(struct.sso),
ssoadmin: cdktf.stringToTerraform(struct.ssoadmin),
stepfunctions: cdktf.stringToTerraform(struct.stepfunctions),
storagegateway: cdktf.stringToTerraform(struct.storagegateway),
sts: cdktf.stringToTerraform(struct.sts),
swf: cdktf.stringToTerraform(struct.swf),
synthetics: cdktf.stringToTerraform(struct.synthetics),
taxsettings: cdktf.stringToTerraform(struct.taxsettings),
timestreaminfluxdb: cdktf.stringToTerraform(struct.timestreaminfluxdb),
timestreamquery: cdktf.stringToTerraform(struct.timestreamquery),
timestreamwrite: cdktf.stringToTerraform(struct.timestreamwrite),
transcribe: cdktf.stringToTerraform(struct.transcribe),
transcribeservice: cdktf.stringToTerraform(struct.transcribeservice),
transfer: cdktf.stringToTerraform(struct.transfer),
verifiedpermissions: cdktf.stringToTerraform(struct.verifiedpermissions),
vpclattice: cdktf.stringToTerraform(struct.vpclattice),
waf: cdktf.stringToTerraform(struct.waf),
wafregional: cdktf.stringToTerraform(struct.wafregional),
wafv2: cdktf.stringToTerraform(struct.wafv2),
wellarchitected: cdktf.stringToTerraform(struct.wellarchitected),
worklink: cdktf.stringToTerraform(struct.worklink),
workspaces: cdktf.stringToTerraform(struct.workspaces),
workspacesweb: cdktf.stringToTerraform(struct.workspacesweb),
xray: cdktf.stringToTerraform(struct.xray),
};
}
exports.awsProviderEndpointsToTerraform = awsProviderEndpointsToTerraform;
function awsProviderEndpointsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
accessanalyzer: {
value: cdktf.stringToHclTerraform(struct.accessanalyzer),
isBlock: false,
type: "simple",
storageClassType: "string",
},
account: {
value: cdktf.stringToHclTerraform(struct.account),
isBlock: false,
type: "simple",
storageClassType: "string",
},
acm: {
value: cdktf.stringToHclTerraform(struct.acm),
isBlock: false,
type: "simple",
storageClassType: "string",
},
acmpca: {
value: cdktf.stringToHclTerraform(struct.acmpca),
isBlock: false,
type: "simple",
storageClassType: "string",
},
amg: {
value: cdktf.stringToHclTerraform(struct.amg),
isBlock: false,
type: "simple",
storageClassType: "string",
},
amp: {
value: cdktf.stringToHclTerraform(struct.amp),
isBlock: false,
type: "simple",
storageClassType: "string",
},
amplify: {
value: cdktf.stringToHclTerraform(struct.amplify),
isBlock: false,
type: "simple",
storageClassType: "string",
},
apigateway: {
value: cdktf.stringToHclTerraform(struct.apigateway),
isBlock: false,
type: "simple",
storageClassType: "string",
},
apigatewayv2: {
value: cdktf.stringToHclTerraform(struct.apigatewayv2),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appautoscaling: {
value: cdktf.stringToHclTerraform(struct.appautoscaling),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appconfig: {
value: cdktf.stringToHclTerraform(struct.appconfig),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appfabric: {
value: cdktf.stringToHclTerraform(struct.appfabric),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appflow: {
value: cdktf.stringToHclTerraform(struct.appflow),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appintegrations: {
value: cdktf.stringToHclTerraform(struct.appintegrations),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appintegrationsservice: {
value: cdktf.stringToHclTerraform(struct.appintegrationsservice),
isBlock: false,
type: "simple",
storageClassType: "string",
},
applicationautoscaling: {
value: cdktf.stringToHclTerraform(struct.applicationautoscaling),
isBlock: false,
type: "simple",
storageClassType: "string",
},
applicationinsights: {
value: cdktf.stringToHclTerraform(struct.applicationinsights),
isBlock: false,
type: "simple",
storageClassType: "string",
},
applicationsignals: {
value: cdktf.stringToHclTerraform(struct.applicationsignals),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appmesh: {
value: cdktf.stringToHclTerraform(struct.appmesh),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appregistry: {
value: cdktf.stringToHclTerraform(struct.appregistry),
isBlock: false,
type: "simple",
storageClassType: "string",
},
apprunner: {
value: cdktf.stringToHclTerraform(struct.apprunner),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appstream: {
value: cdktf.stringToHclTerraform(struct.appstream),
isBlock: false,
type: "simple",
storageClassType: "string",
},
appsync: {
value: cdktf.stringToHclTerraform(struct.appsync),
isBlock: false,
type: "simple",
storageClassType: "string",
},
athena: {
value: cdktf.stringToHclTerraform(struct.athena),
isBlock: false,
type: "simple",
storageClassType: "string",
},
auditmanager: {
value: cdktf.stringToHclTerraform(struct.auditmanager),
isBlock: false,
type: "simple",
storageClassType: "string",
},
autoscaling: {
value: cdktf.stringToHclTerraform(struct.autoscaling),
isBlock: false,
type: "simple",
storageClassType: "string",
},
autoscalingplans: {
value: cdktf.stringToHclTerraform(struct.autoscalingplans),
isBlock: false,
type: "simple",
storageClassType: "string",
},
backup: {
value: cdktf.stringToHclTerraform(struct.backup),
isBlock: false,
type: "simple",
storageClassType: "string",
},
batch: {
value: cdktf.stringToHclTerraform(struct.batch),
isBlock: false,
type: "simple",
storageClassType: "string",
},
bcmdataexports: {
value: cdktf.stringToHclTerraform(struct.bcmdataexports),
isBlock: false,
type: "simple",
storageClassType: "string",
},
beanstalk: {
value: cdktf.stringToHclTerraform(struct.beanstalk),
isBlock: false,
type: "simple",
storageClassType: "string",
},
bedrock: {
value: cdktf.stringToHclTerraform(struct.bedrock),
isBlock: false,
type: "simple",
storageClassType: "string",
},
bedrockagent: {
value: cdktf.stringToHclTerraform(struct.bedrockagent),
isBlock: false,
type: "simple",
storageClassType: "string",
},
budgets: {
value: cdktf.stringToHclTerraform(struct.budgets),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ce: {
value: cdktf.stringToHclTerraform(struct.ce),
isBlock: false,
type: "simple",
storageClassType: "string",
},
chatbot: {
value: cdktf.stringToHclTerraform(struct.chatbot),
isBlock: false,
type: "simple",
storageClassType: "string",
},
chime: {
value: cdktf.stringToHclTerraform(struct.chime),
isBlock: false,
type: "simple",
storageClassType: "string",
},
chimesdkmediapipelines: {
value: cdktf.stringToHclTerraform(struct.chimesdkmediapipelines),
isBlock: false,
type: "simple",
storageClassType: "string",
},
chimesdkvoice: {
value: cdktf.stringToHclTerraform(struct.chimesdkvoice),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cleanrooms: {
value: cdktf.stringToHclTerraform(struct.cleanrooms),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloud9: {
value: cdktf.stringToHclTerraform(struct.cloud9),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudcontrol: {
value: cdktf.stringToHclTerraform(struct.cloudcontrol),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudcontrolapi: {
value: cdktf.stringToHclTerraform(struct.cloudcontrolapi),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudformation: {
value: cdktf.stringToHclTerraform(struct.cloudformation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudfront: {
value: cdktf.stringToHclTerraform(struct.cloudfront),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudfrontkeyvaluestore: {
value: cdktf.stringToHclTerraform(struct.cloudfrontkeyvaluestore),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudhsm: {
value: cdktf.stringToHclTerraform(struct.cloudhsm),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudhsmv2: {
value: cdktf.stringToHclTerraform(struct.cloudhsmv2),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudsearch: {
value: cdktf.stringToHclTerraform(struct.cloudsearch),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudtrail: {
value: cdktf.stringToHclTerraform(struct.cloudtrail),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudwatch: {
value: cdktf.stringToHclTerraform(struct.cloudwatch),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudwatchevents: {
value: cdktf.stringToHclTerraform(struct.cloudwatchevents),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudwatchevidently: {
value: cdktf.stringToHclTerraform(struct.cloudwatchevidently),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudwatchlog: {
value: cdktf.stringToHclTerraform(struct.cloudwatchlog),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudwatchlogs: {
value: cdktf.stringToHclTerraform(struct.cloudwatchlogs),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudwatchobservabilityaccessmanager: {
value: cdktf.stringToHclTerraform(struct.cloudwatchobservabilityaccessmanager),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cloudwatchrum: {
value: cdktf.stringToHclTerraform(struct.cloudwatchrum),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codeartifact: {
value: cdktf.stringToHclTerraform(struct.codeartifact),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codebuild: {
value: cdktf.stringToHclTerraform(struct.codebuild),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codecatalyst: {
value: cdktf.stringToHclTerraform(struct.codecatalyst),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codecommit: {
value: cdktf.stringToHclTerraform(struct.codecommit),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codeconnections: {
value: cdktf.stringToHclTerraform(struct.codeconnections),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codedeploy: {
value: cdktf.stringToHclTerraform(struct.codedeploy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codeguruprofiler: {
value: cdktf.stringToHclTerraform(struct.codeguruprofiler),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codegurureviewer: {
value: cdktf.stringToHclTerraform(struct.codegurureviewer),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codepipeline: {
value: cdktf.stringToHclTerraform(struct.codepipeline),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codestarconnections: {
value: cdktf.stringToHclTerraform(struct.codestarconnections),
isBlock: false,
type: "simple",
storageClassType: "string",
},
codestarnotifications: {
value: cdktf.stringToHclTerraform(struct.codestarnotifications),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cognitoidentity: {
value: cdktf.stringToHclTerraform(struct.cognitoidentity),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cognitoidentityprovider: {
value: cdktf.stringToHclTerraform(struct.cognitoidentityprovider),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cognitoidp: {
value: cdktf.stringToHclTerraform(struct.cognitoidp),
isBlock: false,
type: "simple",
storageClassType: "string",
},
comprehend: {
value: cdktf.stringToHclTerraform(struct.comprehend),
isBlock: false,
type: "simple",
storageClassType: "string",
},
computeoptimizer: {
value: cdktf.stringToHclTerraform(struct.computeoptimizer),
isBlock: false,
type: "simple",
storageClassType: "string",
},
config: {
value: cdktf.stringToHclTerraform(struct.config),
isBlock: false,
type: "simple",
storageClassType: "string",
},
configservice: {
value: cdktf.stringToHclTerraform(struct.configservice),
isBlock: false,
type: "simple",
storageClassType: "string",
},
connect: {
value: cdktf.stringToHclTerraform(struct.connect),
isBlock: false,
type: "simple",
storageClassType: "string",
},
connectcases: {
value: cdktf.stringToHclTerraform(struct.connectcases),
isBlock: false,
type: "simple",
storageClassType: "string",
},
controltower: {
value: cdktf.stringToHclTerraform(struct.controltower),
isBlock: false,
type: "simple",
storageClassType: "string",
},
costandusagereportservice: {
value: cdktf.stringToHclTerraform(struct.costandusagereportservice),
isBlock: false,
type: "simple",
storageClassType: "string",
},
costexplorer: {
value: cdktf.stringToHclTerraform(struct.costexplorer),
isBlock: false,
type: "simple",
storageClassType: "string",
},
costoptimizationhub: {
value: cdktf.stringToHclTerraform(struct.costoptimizationhub),
isBlock: false,
type: "simple",
storageClassType: "string",
},
cur: {
value: cdktf.stringToHclTerraform(struct.cur),
isBlock: false,
type: "simple",
storageClassType: "string",
},
customerprofiles: {
value: cdktf.stringToHclTerraform(struct.customerprofiles),
isBlock: false,
type: "simple",
storageClassType: "string",
},
databasemigration: {
value: cdktf.stringToHclTerraform(struct.databasemigration),
isBlock: false,
type: "simple",
storageClassType: "string",
},
databasemigrationservice: {
value: cdktf.stringToHclTerraform(struct.databasemigrationservice),
isBlock: false,
type: "simple",
storageClassType: "string",
},
databrew: {
value: cdktf.stringToHclTerraform(struct.databrew),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dataexchange: {
value: cdktf.stringToHclTerraform(struct.dataexchange),
isBlock: false,
type: "simple",
storageClassType: "string",
},
datapipeline: {
value: cdktf.stringToHclTerraform(struct.datapipeline),
isBlock: false,
type: "simple",
storageClassType: "string",
},
datasync: {
value: cdktf.stringToHclTerraform(struct.datasync),
isBlock: false,
type: "simple",
storageClassType: "string",
},
datazone: {
value: cdktf.stringToHclTerraform(struct.datazone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dax: {
value: cdktf.stringToHclTerraform(struct.dax),
isBlock: false,
type: "simple",
storageClassType: "string",
},
deploy: {
value: cdktf.stringToHclTerraform(struct.deploy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
detective: {
value: cdktf.stringToHclTerraform(struct.detective),
isBlock: false,
type: "simple",
storageClassType: "string",
},
devicefarm: {
value: cdktf.stringToHclTerraform(struct.devicefarm),
isBlock: false,
type: "simple",
storageClassType: "string",
},
devopsguru: {
value: cdktf.stringToHclTerraform(struct.devopsguru),
isBlock: false,
type: "simple",
storageClassType: "string",
},
directconnect: {
value: cdktf.stringToHclTerraform(struct.directconnect),
isBlock: false,
type: "simple",
storageClassType: "string",
},
directoryservice: {
value: cdktf.stringToHclTerraform(struct.directoryservice),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dlm: {
value: cdktf.stringToHclTerraform(struct.dlm),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dms: {
value: cdktf.stringToHclTerraform(struct.dms),
isBlock: false,
type: "simple",
storageClassType: "string",
},
docdb: {
value: cdktf.stringToHclTerraform(struct.docdb),
isBlock: false,
type: "simple",
storageClassType: "string",
},
docdbelastic: {
value: cdktf.stringToHclTerraform(struct.docdbelastic),
isBlock: false,
type: "simple",
storageClassType: "string",
},
drs: {
value: cdktf.stringToHclTerraform(struct.drs),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ds: {
value: cdktf.stringToHclTerraform(struct.ds),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dynamodb: {
value: cdktf.stringToHclTerraform(struct.dynamodb),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ec2: {
value: cdktf.stringToHclTerraform(struct.ec2),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ecr: {
value: cdktf.stringToHclTerraform(struct.ecr),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ecrpublic: {
value: cdktf.stringToHclTerraform(struct.ecrpublic),
isBlock: false,
type: "simple",
storageClassType: "string",