aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 44.3 kB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnOrganizationalUnitAssociation=exports.CfnNotificationHub=exports.CfnNotificationConfiguration=exports.CfnManagedNotificationAdditionalChannelAssociation=exports.CfnManagedNotificationAccountContactAssociation=exports.CfnEventRule=exports.CfnChannelAssociation=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 CfnChannelAssociation extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_notifications.CfnChannelAssociation",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Notifications::ChannelAssociation";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelAssociationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnChannelAssociation(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 isCfnChannelAssociation(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnChannelAssociation.CFN_RESOURCE_TYPE_NAME}_arn;_notificationConfigurationArn;constructor(scope,id,props){super(scope,id,{type:CfnChannelAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_notifications_CfnChannelAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannelAssociation),error}cdk().requireProperty(props,"arn",this),cdk().requireProperty(props,"notificationConfigurationArn",this),this._arn=props.arn,this._notificationConfigurationArn=props.notificationConfigurationArn}get channelAssociationRef(){return{channelAssociationArn:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),notificationConfigurationArn:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get arn(){return this._arn}set arn(value){cdk().traceProperty(this.node,"Arn"),this._arn=value}get notificationConfigurationArn(){return this._notificationConfigurationArn}set notificationConfigurationArn(value){cdk().traceProperty(this.node,"NotificationConfigurationArn"),this._notificationConfigurationArn=value}get cfnProperties(){return{arn:this._arn,notificationConfigurationArn:this._notificationConfigurationArn}}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",CfnChannelAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnChannelAssociationPropsToCloudFormation(props)}}exports.CfnChannelAssociation=CfnChannelAssociation;function CfnChannelAssociationPropsValidator(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("arn",cdk().requiredValidator)(properties.arn)),errors.collect(cdk().propertyValidator("arn",cdk().validateString)(properties.arn)),errors.collect(cdk().propertyValidator("notificationConfigurationArn",cdk().requiredValidator)(properties.notificationConfigurationArn)),errors.collect(cdk().propertyValidator("notificationConfigurationArn",cdk().validateString)(properties.notificationConfigurationArn)),errors.wrap('supplied properties not correct for "CfnChannelAssociationProps"')}function convertCfnChannelAssociationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnChannelAssociationPropsValidator(properties).assertSuccess(),{Arn:cdk().stringToCloudFormation(properties.arn),NotificationConfigurationArn:cdk().stringToCloudFormation(properties.notificationConfigurationArn)}):properties}function CfnChannelAssociationPropsFromCloudFormation(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("arn","Arn",properties.Arn!=null?cfn_parse().FromCloudFormation.getString(properties.Arn):void 0),ret.addPropertyResult("notificationConfigurationArn","NotificationConfigurationArn",properties.NotificationConfigurationArn!=null?cfn_parse().FromCloudFormation.getString(properties.NotificationConfigurationArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnEventRule extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_notifications.CfnEventRule",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Notifications::EventRule";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnEventRulePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnEventRule(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 isCfnEventRule(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnEventRule.CFN_RESOURCE_TYPE_NAME}static arnForEventRule(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_notifications_IEventRuleRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForEventRule),error}return resource.eventRuleRef.eventRuleArn}_eventPattern;_eventType;_notificationConfigurationArn;_regions;_source;constructor(scope,id,props){super(scope,id,{type:CfnEventRule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_notifications_CfnEventRuleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnEventRule),error}cdk().requireProperty(props,"eventType",this),cdk().requireProperty(props,"notificationConfigurationArn",this),cdk().requireProperty(props,"regions",this),cdk().requireProperty(props,"source",this),this._eventPattern=props.eventPattern,this._eventType=props.eventType,this._notificationConfigurationArn=props.notificationConfigurationArn,this._regions=props.regions,this._source=props.source}get eventRuleRef(){return{eventRuleArn:this.ref}}get eventPattern(){return this._eventPattern}set eventPattern(value){cdk().traceProperty(this.node,"EventPattern"),this._eventPattern=value}get eventType(){return this._eventType}set eventType(value){cdk().traceProperty(this.node,"EventType"),this._eventType=value}get notificationConfigurationArn(){return this._notificationConfigurationArn}set notificationConfigurationArn(value){cdk().traceProperty(this.node,"NotificationConfigurationArn"),this._notificationConfigurationArn=value}get regions(){return this._regions}set regions(value){cdk().traceProperty(this.node,"Regions"),this._regions=value}get source(){return this._source}set source(value){cdk().traceProperty(this.node,"Source"),this._source=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrCreationTime(){return cdk().Token.asString(this.getAtt("CreationTime",cdk().ResolutionTypeHint.STRING))}get attrManagedRules(){return cdk().Token.asList(this.getAtt("ManagedRules",cdk().ResolutionTypeHint.STRING_LIST))}get attrStatusSummaryByRegion(){return this.getAtt("StatusSummaryByRegion")}get cfnProperties(){return{eventPattern:this._eventPattern,eventType:this._eventType,notificationConfigurationArn:this._notificationConfigurationArn,regions:this._regions,source:this._source}}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",CfnEventRule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnEventRulePropsToCloudFormation(props)}}exports.CfnEventRule=CfnEventRule;function CfnEventRuleEventRuleStatusSummaryPropertyValidator(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("reason",cdk().requiredValidator)(properties.reason)),errors.collect(cdk().propertyValidator("reason",cdk().validateString)(properties.reason)),errors.collect(cdk().propertyValidator("status",cdk().requiredValidator)(properties.status)),errors.collect(cdk().propertyValidator("status",cdk().validateString)(properties.status)),errors.wrap('supplied properties not correct for "EventRuleStatusSummaryProperty"')}function convertCfnEventRuleEventRuleStatusSummaryPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventRuleEventRuleStatusSummaryPropertyValidator(properties).assertSuccess(),{Reason:cdk().stringToCloudFormation(properties.reason),Status:cdk().stringToCloudFormation(properties.status)}):properties}function CfnEventRuleEventRuleStatusSummaryPropertyFromCloudFormation(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("reason","Reason",properties.Reason!=null?cfn_parse().FromCloudFormation.getString(properties.Reason):void 0),ret.addPropertyResult("status","Status",properties.Status!=null?cfn_parse().FromCloudFormation.getString(properties.Status):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnEventRulePropsValidator(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("eventPattern",cdk().validateString)(properties.eventPattern)),errors.collect(cdk().propertyValidator("eventType",cdk().requiredValidator)(properties.eventType)),errors.collect(cdk().propertyValidator("eventType",cdk().validateString)(properties.eventType)),errors.collect(cdk().propertyValidator("notificationConfigurationArn",cdk().requiredValidator)(properties.notificationConfigurationArn)),errors.collect(cdk().propertyValidator("notificationConfigurationArn",cdk().validateString)(properties.notificationConfigurationArn)),errors.collect(cdk().propertyValidator("regions",cdk().requiredValidator)(properties.regions)),errors.collect(cdk().propertyValidator("regions",cdk().listValidator(cdk().validateString))(properties.regions)),errors.collect(cdk().propertyValidator("source",cdk().requiredValidator)(properties.source)),errors.collect(cdk().propertyValidator("source",cdk().validateString)(properties.source)),errors.wrap('supplied properties not correct for "CfnEventRuleProps"')}function convertCfnEventRulePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnEventRulePropsValidator(properties).assertSuccess(),{EventPattern:cdk().stringToCloudFormation(properties.eventPattern),EventType:cdk().stringToCloudFormation(properties.eventType),NotificationConfigurationArn:cdk().stringToCloudFormation(properties.notificationConfigurationArn),Regions:cdk().listMapper(cdk().stringToCloudFormation)(properties.regions),Source:cdk().stringToCloudFormation(properties.source)}):properties}function CfnEventRulePropsFromCloudFormation(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("eventPattern","EventPattern",properties.EventPattern!=null?cfn_parse().FromCloudFormation.getString(properties.EventPattern):void 0),ret.addPropertyResult("eventType","EventType",properties.EventType!=null?cfn_parse().FromCloudFormation.getString(properties.EventType):void 0),ret.addPropertyResult("notificationConfigurationArn","NotificationConfigurationArn",properties.NotificationConfigurationArn!=null?cfn_parse().FromCloudFormation.getString(properties.NotificationConfigurationArn):void 0),ret.addPropertyResult("regions","Regions",properties.Regions!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.Regions):void 0),ret.addPropertyResult("source","Source",properties.Source!=null?cfn_parse().FromCloudFormation.getString(properties.Source):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnManagedNotificationAccountContactAssociation extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_notifications.CfnManagedNotificationAccountContactAssociation",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Notifications::ManagedNotificationAccountContactAssociation";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnManagedNotificationAccountContactAssociationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnManagedNotificationAccountContactAssociation(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 isCfnManagedNotificationAccountContactAssociation(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnManagedNotificationAccountContactAssociation.CFN_RESOURCE_TYPE_NAME}_contactIdentifier;_managedNotificationConfigurationArn;constructor(scope,id,props){super(scope,id,{type:CfnManagedNotificationAccountContactAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_notifications_CfnManagedNotificationAccountContactAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnManagedNotificationAccountContactAssociation),error}cdk().requireProperty(props,"contactIdentifier",this),cdk().requireProperty(props,"managedNotificationConfigurationArn",this),this._contactIdentifier=props.contactIdentifier,this._managedNotificationConfigurationArn=props.managedNotificationConfigurationArn}get managedNotificationAccountContactAssociationRef(){return{managedNotificationConfigurationArn:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),contactIdentifier:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get contactIdentifier(){return this._contactIdentifier}set contactIdentifier(value){cdk().traceProperty(this.node,"ContactIdentifier"),this._contactIdentifier=value}get managedNotificationConfigurationArn(){return this._managedNotificationConfigurationArn}set managedNotificationConfigurationArn(value){cdk().traceProperty(this.node,"ManagedNotificationConfigurationArn"),this._managedNotificationConfigurationArn=value}get cfnProperties(){return{contactIdentifier:this._contactIdentifier,managedNotificationConfigurationArn:this._managedNotificationConfigurationArn}}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",CfnManagedNotificationAccountContactAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnManagedNotificationAccountContactAssociationPropsToCloudFormation(props)}}exports.CfnManagedNotificationAccountContactAssociation=CfnManagedNotificationAccountContactAssociation;function CfnManagedNotificationAccountContactAssociationPropsValidator(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("contactIdentifier",cdk().requiredValidator)(properties.contactIdentifier)),errors.collect(cdk().propertyValidator("contactIdentifier",cdk().validateString)(properties.contactIdentifier)),errors.collect(cdk().propertyValidator("managedNotificationConfigurationArn",cdk().requiredValidator)(properties.managedNotificationConfigurationArn)),errors.collect(cdk().propertyValidator("managedNotificationConfigurationArn",cdk().validateString)(properties.managedNotificationConfigurationArn)),errors.wrap('supplied properties not correct for "CfnManagedNotificationAccountContactAssociationProps"')}function convertCfnManagedNotificationAccountContactAssociationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnManagedNotificationAccountContactAssociationPropsValidator(properties).assertSuccess(),{ContactIdentifier:cdk().stringToCloudFormation(properties.contactIdentifier),ManagedNotificationConfigurationArn:cdk().stringToCloudFormation(properties.managedNotificationConfigurationArn)}):properties}function CfnManagedNotificationAccountContactAssociationPropsFromCloudFormation(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("contactIdentifier","ContactIdentifier",properties.ContactIdentifier!=null?cfn_parse().FromCloudFormation.getString(properties.ContactIdentifier):void 0),ret.addPropertyResult("managedNotificationConfigurationArn","ManagedNotificationConfigurationArn",properties.ManagedNotificationConfigurationArn!=null?cfn_parse().FromCloudFormation.getString(properties.ManagedNotificationConfigurationArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnManagedNotificationAdditionalChannelAssociation extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_notifications.CfnManagedNotificationAdditionalChannelAssociation",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Notifications::ManagedNotificationAdditionalChannelAssociation";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnManagedNotificationAdditionalChannelAssociationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnManagedNotificationAdditionalChannelAssociation(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 isCfnManagedNotificationAdditionalChannelAssociation(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnManagedNotificationAdditionalChannelAssociation.CFN_RESOURCE_TYPE_NAME}_channelArn;_managedNotificationConfigurationArn;constructor(scope,id,props){super(scope,id,{type:CfnManagedNotificationAdditionalChannelAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_notifications_CfnManagedNotificationAdditionalChannelAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnManagedNotificationAdditionalChannelAssociation),error}cdk().requireProperty(props,"channelArn",this),cdk().requireProperty(props,"managedNotificationConfigurationArn",this),this._channelArn=props.channelArn,this._managedNotificationConfigurationArn=props.managedNotificationConfigurationArn}get managedNotificationAdditionalChannelAssociationRef(){return{channelArn:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),managedNotificationConfigurationArn:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get channelArn(){return this._channelArn}set channelArn(value){cdk().traceProperty(this.node,"ChannelArn"),this._channelArn=value}get managedNotificationConfigurationArn(){return this._managedNotificationConfigurationArn}set managedNotificationConfigurationArn(value){cdk().traceProperty(this.node,"ManagedNotificationConfigurationArn"),this._managedNotificationConfigurationArn=value}get cfnProperties(){return{channelArn:this._channelArn,managedNotificationConfigurationArn:this._managedNotificationConfigurationArn}}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",CfnManagedNotificationAdditionalChannelAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnManagedNotificationAdditionalChannelAssociationPropsToCloudFormation(props)}}exports.CfnManagedNotificationAdditionalChannelAssociation=CfnManagedNotificationAdditionalChannelAssociation;function CfnManagedNotificationAdditionalChannelAssociationPropsValidator(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("channelArn",cdk().requiredValidator)(properties.channelArn)),errors.collect(cdk().propertyValidator("channelArn",cdk().validateString)(properties.channelArn)),errors.collect(cdk().propertyValidator("managedNotificationConfigurationArn",cdk().requiredValidator)(properties.managedNotificationConfigurationArn)),errors.collect(cdk().propertyValidator("managedNotificationConfigurationArn",cdk().validateString)(properties.managedNotificationConfigurationArn)),errors.wrap('supplied properties not correct for "CfnManagedNotificationAdditionalChannelAssociationProps"')}function convertCfnManagedNotificationAdditionalChannelAssociationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnManagedNotificationAdditionalChannelAssociationPropsValidator(properties).assertSuccess(),{ChannelArn:cdk().stringToCloudFormation(properties.channelArn),ManagedNotificationConfigurationArn:cdk().stringToCloudFormation(properties.managedNotificationConfigurationArn)}):properties}function CfnManagedNotificationAdditionalChannelAssociationPropsFromCloudFormation(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("channelArn","ChannelArn",properties.ChannelArn!=null?cfn_parse().FromCloudFormation.getString(properties.ChannelArn):void 0),ret.addPropertyResult("managedNotificationConfigurationArn","ManagedNotificationConfigurationArn",properties.ManagedNotificationConfigurationArn!=null?cfn_parse().FromCloudFormation.getString(properties.ManagedNotificationConfigurationArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnNotificationConfiguration extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_notifications.CfnNotificationConfiguration",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Notifications::NotificationConfiguration";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnNotificationConfigurationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnNotificationConfiguration(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 isCfnNotificationConfiguration(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnNotificationConfiguration.CFN_RESOURCE_TYPE_NAME}static arnForNotificationConfiguration(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_notifications_INotificationConfigurationRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForNotificationConfiguration),error}return resource.notificationConfigurationRef.notificationConfigurationArn}_aggregationDuration;cdkTagManager;_description;_name;_tags;constructor(scope,id,props){super(scope,id,{type:CfnNotificationConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_notifications_CfnNotificationConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnNotificationConfiguration),error}cdk().requireProperty(props,"description",this),cdk().requireProperty(props,"name",this),this._aggregationDuration=props.aggregationDuration,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Notifications::NotificationConfiguration",void 0,{tagPropertyName:"tags"}),this._description=props.description,this._name=props.name,this._tags=props.tags}get notificationConfigurationRef(){return{notificationConfigurationArn:this.ref}}get aggregationDuration(){return this._aggregationDuration}set aggregationDuration(value){cdk().traceProperty(this.node,"AggregationDuration"),this._aggregationDuration=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 tags(){return this._tags}set tags(value){cdk().traceProperty(this.node,"Tags"),this._tags=value}get attrArn(){return cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING))}get attrCreationTime(){return cdk().Token.asString(this.getAtt("CreationTime",cdk().ResolutionTypeHint.STRING))}get attrStatus(){return cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{aggregationDuration:this._aggregationDuration,tags:this.cdkTagManager.renderTags(this._tags),description:this._description,name:this._name}}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",CfnNotificationConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnNotificationConfigurationPropsToCloudFormation(props)}}exports.CfnNotificationConfiguration=CfnNotificationConfiguration;function CfnNotificationConfigurationPropsValidator(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("aggregationDuration",cdk().validateString)(properties.aggregationDuration)),errors.collect(cdk().propertyValidator("description",cdk().requiredValidator)(properties.description)),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().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnNotificationConfigurationProps"')}function convertCfnNotificationConfigurationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnNotificationConfigurationPropsValidator(properties).assertSuccess(),{AggregationDuration:cdk().stringToCloudFormation(properties.aggregationDuration),Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnNotificationConfigurationPropsFromCloudFormation(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("aggregationDuration","AggregationDuration",properties.AggregationDuration!=null?cfn_parse().FromCloudFormation.getString(properties.AggregationDuration):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.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnNotificationHub extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_notifications.CfnNotificationHub",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Notifications::NotificationHub";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnNotificationHubPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnNotificationHub(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 isCfnNotificationHub(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnNotificationHub.CFN_RESOURCE_TYPE_NAME}_region;constructor(scope,id,props){super(scope,id,{type:CfnNotificationHub.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_notifications_CfnNotificationHubProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnNotificationHub),error}cdk().requireProperty(props,"region",this),this._region=props.region}get notificationHubRef(){return{region:this.ref}}get region(){return this._region}set region(value){cdk().traceProperty(this.node,"Region"),this._region=value}get attrCreationTime(){return cdk().Token.asString(this.getAtt("CreationTime",cdk().ResolutionTypeHint.STRING))}get attrNotificationHubStatusSummary(){return this.getAtt("NotificationHubStatusSummary")}get cfnProperties(){return{region:this._region}}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",CfnNotificationHub.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnNotificationHubPropsToCloudFormation(props)}}exports.CfnNotificationHub=CfnNotificationHub;function CfnNotificationHubNotificationHubStatusSummaryPropertyValidator(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("notificationHubStatus",cdk().requiredValidator)(properties.notificationHubStatus)),errors.collect(cdk().propertyValidator("notificationHubStatus",cdk().validateString)(properties.notificationHubStatus)),errors.collect(cdk().propertyValidator("notificationHubStatusReason",cdk().requiredValidator)(properties.notificationHubStatusReason)),errors.collect(cdk().propertyValidator("notificationHubStatusReason",cdk().validateString)(properties.notificationHubStatusReason)),errors.wrap('supplied properties not correct for "NotificationHubStatusSummaryProperty"')}function convertCfnNotificationHubNotificationHubStatusSummaryPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnNotificationHubNotificationHubStatusSummaryPropertyValidator(properties).assertSuccess(),{NotificationHubStatus:cdk().stringToCloudFormation(properties.notificationHubStatus),NotificationHubStatusReason:cdk().stringToCloudFormation(properties.notificationHubStatusReason)}):properties}function CfnNotificationHubNotificationHubStatusSummaryPropertyFromCloudFormation(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("notificationHubStatus","NotificationHubStatus",properties.NotificationHubStatus!=null?cfn_parse().FromCloudFormation.getString(properties.NotificationHubStatus):void 0),ret.addPropertyResult("notificationHubStatusReason","NotificationHubStatusReason",properties.NotificationHubStatusReason!=null?cfn_parse().FromCloudFormation.getString(properties.NotificationHubStatusReason):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnNotificationHubPropsValidator(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("region",cdk().requiredValidator)(properties.region)),errors.collect(cdk().propertyValidator("region",cdk().validateString)(properties.region)),errors.wrap('supplied properties not correct for "CfnNotificationHubProps"')}function convertCfnNotificationHubPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnNotificationHubPropsValidator(properties).assertSuccess(),{Region:cdk().stringToCloudFormation(properties.region)}):properties}function CfnNotificationHubPropsFromCloudFormation(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("region","Region",properties.Region!=null?cfn_parse().FromCloudFormation.getString(properties.Region):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnOrganizationalUnitAssociation extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_notifications.CfnOrganizationalUnitAssociation",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Notifications::OrganizationalUnitAssociation";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnOrganizationalUnitAssociationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnOrganizationalUnitAssociation(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 isCfnOrganizationalUnitAssociation(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnOrganizationalUnitAssociation.CFN_RESOURCE_TYPE_NAME}_notificationConfigurationArn;_organizationalUnitId;constructor(scope,id,props){super(scope,id,{type:CfnOrganizationalUnitAssociation.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_notifications_CfnOrganizationalUnitAssociationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnOrganizationalUnitAssociation),error}cdk().requireProperty(props,"notificationConfigurationArn",this),cdk().requireProperty(props,"organizationalUnitId",this),this._notificationConfigurationArn=props.notificationConfigurationArn,this._organizationalUnitId=props.organizationalUnitId}get organizationalUnitAssociationRef(){return{notificationConfigurationArn:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),organizationalUnitId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get notificationConfigurationArn(){return this._notificationConfigurationArn}set notificationConfigurationArn(value){cdk().traceProperty(this.node,"NotificationConfigurationArn"),this._notificationConfigurationArn=value}get organizationalUnitId(){return this._organizationalUnitId}set organizationalUnitId(value){cdk().traceProperty(this.node,"OrganizationalUnitId"),this._organizationalUnitId=value}get cfnProperties(){return{notificationConfigurationArn:this._notificationConfigurationArn,organizationalUnitId:this._organizationalUnitId}}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",CfnOrganizationalUnitAssociation.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnOrganizationalUnitAssociationPropsToCloudFormation(props)}}exports.CfnOrganizationalUnitAssociation=CfnOrganizationalUnitAssociation;function CfnOrganizationalUnitAssociationPropsValidator(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("notificationConfigurationArn",cdk().requiredValidator)(properties.notificationConfigurationArn)),errors.collect(cdk().propertyValidator("notificationConfigurationArn",cdk().validateString)(properties.notificationConfigurationArn)),errors.collect(cdk().propertyValidator("organizationalUnitId",cdk().requiredValidator)(properties.organizationalUnitId)),errors.collect(cdk().propertyValidator("organizationalUnitId",cdk().validateString)(properties.organizationalUnitId)),errors.wrap('supplied properties not correct for "CfnOrganizationalUnitAssociationProps"')}function convertCfnOrganizationalUnitAssociationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnOrganizationalUnitAssociationPropsValidator(properties).assertSuccess(),{NotificationConfigurationArn:cdk().stringToCloudFormation(properties.notificationConfigurationArn),OrganizationalUnitId:cdk().stringToCloudFormation(properties.organizationalUnitId)}):properties}function CfnOrganizationalUnitAssociationPropsFromCloudFormation(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("notificationConfigurationArn","NotificationConfigurationArn",properties.NotificationConfigurationArn!=null?cfn_parse().FromCloudFormation.getString(properties.NotificationConfigurationArn):void 0),ret.addPropertyResult("organizationalUnitId","OrganizationalUnitId",properties.OrganizationalUnitId!=null?cfn_parse().FromCloudFormation.getString(properties.OrganizationalUnitId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}