aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 25.7 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnResourceAssociation=exports.CfnAttributeGroupAssociation=exports.CfnAttributeGroup=exports.CfnApplication=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnApplication extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_servicecatalogappregistry.CfnApplication",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceCatalogAppRegistry::Application";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnApplicationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnApplication(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnApplication(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnApplication.CFN_RESOURCE_TYPE_NAME}static fromApplicationArn(scope,id,arn){class Import extends cdk().Resource{applicationRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:servicecatalog:${Region}:${Account}:/applications/${ApplicationId}").parse(arn2);this.applicationRef={applicationId:variables.ApplicationId,applicationArn:arn2}}}return new Import(scope,id,arn)}static fromApplicationId(scope,id,applicationId){class Import extends cdk().Resource{applicationRef;constructor(scope2,id2,applicationId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:servicecatalog:${Region}:${Account}:/applications/${ApplicationId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,ApplicationId:applicationId2});super(scope2,id2,{environmentFromArn:arn}),this.applicationRef={applicationId:applicationId2,applicationArn:arn}}}return new Import(scope,id,applicationId)}static arnForApplication(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_servicecatalogappregistry_IApplicationRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForApplication),error}return resource.applicationRef.applicationArn}_description;_name;tags;_tagsRaw;cfnPropertyNames={description:"Description",name:"Name",tags:"Tags"};constructor(scope,id,props){super(scope,id,{type:CfnApplication.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicecatalogappregistry_CfnApplicationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnApplication),error}cdk().requireProperty(props,"name",this),this._description=props.description,this._name=props.name,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::ServiceCatalogAppRegistry::Application",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get applicationRef(){return{applicationId:this.ref,applicationArn:this.attrArn}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrApplicationName(){return cdk().Token.asString(this.getAtt("ApplicationName",cdk().ResolutionTypeHint.STRING))}get attrApplicationTagKey(){return cdk().Token.asString(this.getAtt("ApplicationTagKey",cdk().ResolutionTypeHint.STRING))}get attrApplicationTagValue(){return cdk().Token.asString(this.getAtt("ApplicationTagValue",cdk().ResolutionTypeHint.STRING))}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{description:this._description,name:this._name,tags:this.tags.renderTags()}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnApplication.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnApplicationPropsToCloudFormation(props)}}exports.CfnApplication=CfnApplication;function CfnApplicationPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnApplicationProps"')}function convertCfnApplicationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApplicationPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnApplicationPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAttributeGroup extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_servicecatalogappregistry.CfnAttributeGroup",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceCatalogAppRegistry::AttributeGroup";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAttributeGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAttributeGroup(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnAttributeGroup(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAttributeGroup.CFN_RESOURCE_TYPE_NAME}static fromAttributeGroupArn(scope,id,arn){class Import extends cdk().Resource{attributeGroupRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:servicecatalog:${Region}:${Account}:/attribute-groups/${AttributeGroupId}").parse(arn2);this.attributeGroupRef={attributeGroupId:variables.AttributeGroupId,attributeGroupArn:arn2}}}return new Import(scope,id,arn)}static fromAttributeGroupId(scope,id,attributeGroupId){class Import extends cdk().Resource{attributeGroupRef;constructor(scope2,id2,attributeGroupId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:servicecatalog:${Region}:${Account}:/attribute-groups/${AttributeGroupId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,AttributeGroupId:attributeGroupId2});super(scope2,id2,{environmentFromArn:arn}),this.attributeGroupRef={attributeGroupId:attributeGroupId2,attributeGroupArn:arn}}}return new Import(scope,id,attributeGroupId)}static arnForAttributeGroup(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_servicecatalogappregistry_IAttributeGroupRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForAttributeGroup),error}return resource.attributeGroupRef.attributeGroupArn}_attributes;_description;_name;tags;_tagsRaw;cfnPropertyNames={attributes:"Attributes",description:"Description",name:"Name",tags:"Tags"};constructor(scope,id,props){super(scope,id,{type:CfnAttributeGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicecatalogappregistry_CfnAttributeGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAttributeGroup),error}cdk().requireProperty(props,"attributes",this),cdk().requireProperty(props,"name",this),this._attributes=props.attributes,this._description=props.description,this._name=props.name,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::ServiceCatalogAppRegistry::AttributeGroup",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get attributeGroupRef(){return{attributeGroupId:this.ref,attributeGroupArn:this.attrArn}}get attributes(){return this._attributes}set attributes(value){cdk().traceProperty(this.node,"Attributes"),this._attributes=value}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get tagsRaw(){return this._tagsRaw}set tagsRaw(value){cdk().traceProperty(this.node,"Tags"),this._tagsRaw=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{attributes:this._attributes,description:this._description,name:this._name,tags:this.tags.renderTags()}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnAttributeGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAttributeGroupPropsToCloudFormation(props)}}exports.CfnAttributeGroup=CfnAttributeGroup;function CfnAttributeGroupPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("attributes",cdk().requiredValidator)(properties.attributes)),errors.collect(cdk().propertyValidator("attributes",cdk().validateObject)(properties.attributes)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().hashValidator(cdk().validateString))(properties.tags)),errors.wrap('supplied properties not correct for "CfnAttributeGroupProps"')}function convertCfnAttributeGroupPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAttributeGroupPropsValidator(properties).assertSuccess(),{Attributes:cdk().objectToCloudFormation(properties.attributes),Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().hashMapper(cdk().stringToCloudFormation)(properties.tags)}):properties}function CfnAttributeGroupPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("attributes","Attributes",properties.Attributes!=null?cfn_parse().FromCloudFormation.getAny(properties.Attributes):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAttributeGroupAssociation extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_servicecatalogappregistry.CfnAttributeGroupAssociation",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceCatalogAppRegistry::AttributeGroupAssociation";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAttributeGroupAssociationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAttributeGroupAssociation(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnAttributeGroupAssociation(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAttributeGroupAssociation.CFN_RESOURCE_TYPE_NAME}_application;_attributeGroup;cfnPropertyNames={application:"Application",attributeGroup:"AttributeGroup"};constructor(scope,id,props){super(scope,id,{type:CfnAttributeGroupAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicecatalogappregistry_CfnAttributeGroupAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAttributeGroupAssociation),error}cdk().requireProperty(props,"application",this),cdk().requireProperty(props,"attributeGroup",this),this._application=props.application,this._attributeGroup=props.attributeGroup}get attributeGroupAssociationRef(){return{applicationArn:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),attributeGroupArn:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get application(){return this._application}set application(value){cdk().traceProperty(this.node,"Application"),this._application=value}get attributeGroup(){return this._attributeGroup}set attributeGroup(value){cdk().traceProperty(this.node,"AttributeGroup"),this._attributeGroup=value}get attrApplicationArn(){return cdk().Token.asString(this.getAtt("ApplicationArn",cdk().ResolutionTypeHint.STRING))}get attrAttributeGroupArn(){return cdk().Token.asString(this.getAtt("AttributeGroupArn",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{application:this._application,attributeGroup:this._attributeGroup}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnAttributeGroupAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAttributeGroupAssociationPropsToCloudFormation(props)}}exports.CfnAttributeGroupAssociation=CfnAttributeGroupAssociation;function CfnAttributeGroupAssociationPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("application",cdk().requiredValidator)(properties.application)),errors.collect(cdk().propertyValidator("application",cdk().validateString)(properties.application)),errors.collect(cdk().propertyValidator("attributeGroup",cdk().requiredValidator)(properties.attributeGroup)),errors.collect(cdk().propertyValidator("attributeGroup",cdk().validateString)(properties.attributeGroup)),errors.wrap('supplied properties not correct for "CfnAttributeGroupAssociationProps"')}function convertCfnAttributeGroupAssociationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAttributeGroupAssociationPropsValidator(properties).assertSuccess(),{Application:cdk().stringToCloudFormation(properties.application),AttributeGroup:cdk().stringToCloudFormation(properties.attributeGroup)}):properties}function CfnAttributeGroupAssociationPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("application","Application",properties.Application!=null?cfn_parse().FromCloudFormation.getString(properties.Application):void 0),ret.addPropertyResult("attributeGroup","AttributeGroup",properties.AttributeGroup!=null?cfn_parse().FromCloudFormation.getString(properties.AttributeGroup):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnResourceAssociation extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_servicecatalogappregistry.CfnResourceAssociation",version:"2.252.0"};static CFN_RESOURCE_TYPE_NAME="AWS::ServiceCatalogAppRegistry::ResourceAssociation";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnResourceAssociationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnResourceAssociation(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnResourceAssociation(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnResourceAssociation.CFN_RESOURCE_TYPE_NAME}_application;_resource;_resourceType;cfnPropertyNames={application:"Application",resource:"Resource",resourceType:"ResourceType"};constructor(scope,id,props){super(scope,id,{type:CfnResourceAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_servicecatalogappregistry_CfnResourceAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnResourceAssociation),error}cdk().requireProperty(props,"application",this),cdk().requireProperty(props,"resource",this),cdk().requireProperty(props,"resourceType",this),this._application=props.application,this._resource=props.resource,this._resourceType=props.resourceType}get resourceAssociationRef(){return{applicationArn:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),resourceArn:cdk().Fn.select(1,cdk().Fn.split("|",this.ref)),resourceType:cdk().Fn.select(2,cdk().Fn.split("|",this.ref))}}get application(){return this._application}set application(value){cdk().traceProperty(this.node,"Application"),this._application=value}get resource(){return this._resource}set resource(value){cdk().traceProperty(this.node,"Resource"),this._resource=value}get resourceType(){return this._resourceType}set resourceType(value){cdk().traceProperty(this.node,"ResourceType"),this._resourceType=value}get attrApplicationArn(){return cdk().Token.asString(this.getAtt("ApplicationArn",cdk().ResolutionTypeHint.STRING))}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get attrResourceArn(){return cdk().Token.asString(this.getAtt("ResourceArn",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{application:this._application,resource:this._resource,resourceType:this._resourceType}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnResourceAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnResourceAssociationPropsToCloudFormation(props)}}exports.CfnResourceAssociation=CfnResourceAssociation;function CfnResourceAssociationPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("application",cdk().requiredValidator)(properties.application)),errors.collect(cdk().propertyValidator("application",cdk().validateString)(properties.application)),errors.collect(cdk().propertyValidator("resource",cdk().requiredValidator)(properties.resource)),errors.collect(cdk().propertyValidator("resource",cdk().validateString)(properties.resource)),errors.collect(cdk().propertyValidator("resourceType",cdk().requiredValidator)(properties.resourceType)),errors.collect(cdk().propertyValidator("resourceType",cdk().validateString)(properties.resourceType)),errors.wrap('supplied properties not correct for "CfnResourceAssociationProps"')}function convertCfnResourceAssociationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnResourceAssociationPropsValidator(properties).assertSuccess(),{Application:cdk().stringToCloudFormation(properties.application),Resource:cdk().stringToCloudFormation(properties.resource),ResourceType:cdk().stringToCloudFormation(properties.resourceType)}):properties}function CfnResourceAssociationPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("application","Application",properties.Application!=null?cfn_parse().FromCloudFormation.getString(properties.Application):void 0),ret.addPropertyResult("resource","Resource",properties.Resource!=null?cfn_parse().FromCloudFormation.getString(properties.Resource):void 0),ret.addPropertyResult("resourceType","ResourceType",properties.ResourceType!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}