UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

1 lines 253 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnVoiceChannel=exports.CfnSmsTemplate=exports.CfnSegment=exports.CfnSMSChannel=exports.CfnPushTemplate=exports.CfnInAppTemplate=exports.CfnGCMChannel=exports.CfnEventStream=exports.CfnEmailTemplate=exports.CfnEmailChannel=exports.CfnCampaign=exports.CfnBaiduChannel=exports.CfnApplicationSettings=exports.CfnApp=exports.CfnAPNSVoipSandboxChannel=exports.CfnAPNSVoipChannel=exports.CfnAPNSSandboxChannel=exports.CfnAPNSChannel=exports.CfnADMChannel=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 CfnADMChannel extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_pinpoint.CfnADMChannel",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Pinpoint::ADMChannel";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnADMChannelPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnADMChannel(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 isCfnADMChannel(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnADMChannel.CFN_RESOURCE_TYPE_NAME}_applicationId;_clientId;_clientSecret;_enabled;constructor(scope,id,props){super(scope,id,{type:CfnADMChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_pinpoint_CfnADMChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnADMChannel),error}cdk().requireProperty(props,"applicationId",this),cdk().requireProperty(props,"clientId",this),cdk().requireProperty(props,"clientSecret",this),this._applicationId=props.applicationId,this._clientId=props.clientId,this._clientSecret=props.clientSecret,this._enabled=props.enabled}get admChannelRef(){return{admChannelId:this.ref}}get applicationId(){return this._applicationId}set applicationId(value){cdk().traceProperty(this.node,"ApplicationId"),this._applicationId=value}get clientId(){return this._clientId}set clientId(value){cdk().traceProperty(this.node,"ClientId"),this._clientId=value}get clientSecret(){return this._clientSecret}set clientSecret(value){cdk().traceProperty(this.node,"ClientSecret"),this._clientSecret=value}get enabled(){return this._enabled}set enabled(value){cdk().traceProperty(this.node,"Enabled"),this._enabled=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{applicationId:this._applicationId,clientId:this._clientId,clientSecret:this._clientSecret,enabled:this._enabled}}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",CfnADMChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnADMChannelPropsToCloudFormation(props)}}exports.CfnADMChannel=CfnADMChannel;function CfnADMChannelPropsValidator(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("applicationId",cdk().requiredValidator)(properties.applicationId)),errors.collect(cdk().propertyValidator("applicationId",cdk().validateString)(properties.applicationId)),errors.collect(cdk().propertyValidator("clientId",cdk().requiredValidator)(properties.clientId)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("clientSecret",cdk().requiredValidator)(properties.clientSecret)),errors.collect(cdk().propertyValidator("clientSecret",cdk().validateString)(properties.clientSecret)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.wrap('supplied properties not correct for "CfnADMChannelProps"')}function convertCfnADMChannelPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnADMChannelPropsValidator(properties).assertSuccess(),{ApplicationId:cdk().stringToCloudFormation(properties.applicationId),ClientId:cdk().stringToCloudFormation(properties.clientId),ClientSecret:cdk().stringToCloudFormation(properties.clientSecret),Enabled:cdk().booleanToCloudFormation(properties.enabled)}):properties}function CfnADMChannelPropsFromCloudFormation(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("applicationId","ApplicationId",properties.ApplicationId!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationId):void 0),ret.addPropertyResult("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("clientSecret","ClientSecret",properties.ClientSecret!=null?cfn_parse().FromCloudFormation.getString(properties.ClientSecret):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAPNSChannel extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_pinpoint.CfnAPNSChannel",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Pinpoint::APNSChannel";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAPNSChannelPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAPNSChannel(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 isCfnAPNSChannel(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAPNSChannel.CFN_RESOURCE_TYPE_NAME}_applicationId;_bundleId;_certificate;_defaultAuthenticationMethod;_enabled;_privateKey;_teamId;_tokenKey;_tokenKeyId;constructor(scope,id,props){super(scope,id,{type:CfnAPNSChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_pinpoint_CfnAPNSChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAPNSChannel),error}cdk().requireProperty(props,"applicationId",this),this._applicationId=props.applicationId,this._bundleId=props.bundleId,this._certificate=props.certificate,this._defaultAuthenticationMethod=props.defaultAuthenticationMethod,this._enabled=props.enabled,this._privateKey=props.privateKey,this._teamId=props.teamId,this._tokenKey=props.tokenKey,this._tokenKeyId=props.tokenKeyId}get apnsChannelRef(){return{apnsChannelId:this.ref}}get applicationId(){return this._applicationId}set applicationId(value){cdk().traceProperty(this.node,"ApplicationId"),this._applicationId=value}get bundleId(){return this._bundleId}set bundleId(value){cdk().traceProperty(this.node,"BundleId"),this._bundleId=value}get certificate(){return this._certificate}set certificate(value){cdk().traceProperty(this.node,"Certificate"),this._certificate=value}get defaultAuthenticationMethod(){return this._defaultAuthenticationMethod}set defaultAuthenticationMethod(value){cdk().traceProperty(this.node,"DefaultAuthenticationMethod"),this._defaultAuthenticationMethod=value}get enabled(){return this._enabled}set enabled(value){cdk().traceProperty(this.node,"Enabled"),this._enabled=value}get privateKey(){return this._privateKey}set privateKey(value){cdk().traceProperty(this.node,"PrivateKey"),this._privateKey=value}get teamId(){return this._teamId}set teamId(value){cdk().traceProperty(this.node,"TeamId"),this._teamId=value}get tokenKey(){return this._tokenKey}set tokenKey(value){cdk().traceProperty(this.node,"TokenKey"),this._tokenKey=value}get tokenKeyId(){return this._tokenKeyId}set tokenKeyId(value){cdk().traceProperty(this.node,"TokenKeyId"),this._tokenKeyId=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{applicationId:this._applicationId,bundleId:this._bundleId,certificate:this._certificate,defaultAuthenticationMethod:this._defaultAuthenticationMethod,enabled:this._enabled,privateKey:this._privateKey,teamId:this._teamId,tokenKey:this._tokenKey,tokenKeyId:this._tokenKeyId}}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",CfnAPNSChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAPNSChannelPropsToCloudFormation(props)}}exports.CfnAPNSChannel=CfnAPNSChannel;function CfnAPNSChannelPropsValidator(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("applicationId",cdk().requiredValidator)(properties.applicationId)),errors.collect(cdk().propertyValidator("applicationId",cdk().validateString)(properties.applicationId)),errors.collect(cdk().propertyValidator("bundleId",cdk().validateString)(properties.bundleId)),errors.collect(cdk().propertyValidator("certificate",cdk().validateString)(properties.certificate)),errors.collect(cdk().propertyValidator("defaultAuthenticationMethod",cdk().validateString)(properties.defaultAuthenticationMethod)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("privateKey",cdk().validateString)(properties.privateKey)),errors.collect(cdk().propertyValidator("teamId",cdk().validateString)(properties.teamId)),errors.collect(cdk().propertyValidator("tokenKey",cdk().validateString)(properties.tokenKey)),errors.collect(cdk().propertyValidator("tokenKeyId",cdk().validateString)(properties.tokenKeyId)),errors.wrap('supplied properties not correct for "CfnAPNSChannelProps"')}function convertCfnAPNSChannelPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAPNSChannelPropsValidator(properties).assertSuccess(),{ApplicationId:cdk().stringToCloudFormation(properties.applicationId),BundleId:cdk().stringToCloudFormation(properties.bundleId),Certificate:cdk().stringToCloudFormation(properties.certificate),DefaultAuthenticationMethod:cdk().stringToCloudFormation(properties.defaultAuthenticationMethod),Enabled:cdk().booleanToCloudFormation(properties.enabled),PrivateKey:cdk().stringToCloudFormation(properties.privateKey),TeamId:cdk().stringToCloudFormation(properties.teamId),TokenKey:cdk().stringToCloudFormation(properties.tokenKey),TokenKeyId:cdk().stringToCloudFormation(properties.tokenKeyId)}):properties}function CfnAPNSChannelPropsFromCloudFormation(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("applicationId","ApplicationId",properties.ApplicationId!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationId):void 0),ret.addPropertyResult("bundleId","BundleId",properties.BundleId!=null?cfn_parse().FromCloudFormation.getString(properties.BundleId):void 0),ret.addPropertyResult("certificate","Certificate",properties.Certificate!=null?cfn_parse().FromCloudFormation.getString(properties.Certificate):void 0),ret.addPropertyResult("defaultAuthenticationMethod","DefaultAuthenticationMethod",properties.DefaultAuthenticationMethod!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultAuthenticationMethod):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("privateKey","PrivateKey",properties.PrivateKey!=null?cfn_parse().FromCloudFormation.getString(properties.PrivateKey):void 0),ret.addPropertyResult("teamId","TeamId",properties.TeamId!=null?cfn_parse().FromCloudFormation.getString(properties.TeamId):void 0),ret.addPropertyResult("tokenKey","TokenKey",properties.TokenKey!=null?cfn_parse().FromCloudFormation.getString(properties.TokenKey):void 0),ret.addPropertyResult("tokenKeyId","TokenKeyId",properties.TokenKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.TokenKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAPNSSandboxChannel extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_pinpoint.CfnAPNSSandboxChannel",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Pinpoint::APNSSandboxChannel";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAPNSSandboxChannelPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAPNSSandboxChannel(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 isCfnAPNSSandboxChannel(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAPNSSandboxChannel.CFN_RESOURCE_TYPE_NAME}_applicationId;_bundleId;_certificate;_defaultAuthenticationMethod;_enabled;_privateKey;_teamId;_tokenKey;_tokenKeyId;constructor(scope,id,props){super(scope,id,{type:CfnAPNSSandboxChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_pinpoint_CfnAPNSSandboxChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAPNSSandboxChannel),error}cdk().requireProperty(props,"applicationId",this),this._applicationId=props.applicationId,this._bundleId=props.bundleId,this._certificate=props.certificate,this._defaultAuthenticationMethod=props.defaultAuthenticationMethod,this._enabled=props.enabled,this._privateKey=props.privateKey,this._teamId=props.teamId,this._tokenKey=props.tokenKey,this._tokenKeyId=props.tokenKeyId}get apnsSandboxChannelRef(){return{apnsSandboxChannelId:this.ref}}get applicationId(){return this._applicationId}set applicationId(value){cdk().traceProperty(this.node,"ApplicationId"),this._applicationId=value}get bundleId(){return this._bundleId}set bundleId(value){cdk().traceProperty(this.node,"BundleId"),this._bundleId=value}get certificate(){return this._certificate}set certificate(value){cdk().traceProperty(this.node,"Certificate"),this._certificate=value}get defaultAuthenticationMethod(){return this._defaultAuthenticationMethod}set defaultAuthenticationMethod(value){cdk().traceProperty(this.node,"DefaultAuthenticationMethod"),this._defaultAuthenticationMethod=value}get enabled(){return this._enabled}set enabled(value){cdk().traceProperty(this.node,"Enabled"),this._enabled=value}get privateKey(){return this._privateKey}set privateKey(value){cdk().traceProperty(this.node,"PrivateKey"),this._privateKey=value}get teamId(){return this._teamId}set teamId(value){cdk().traceProperty(this.node,"TeamId"),this._teamId=value}get tokenKey(){return this._tokenKey}set tokenKey(value){cdk().traceProperty(this.node,"TokenKey"),this._tokenKey=value}get tokenKeyId(){return this._tokenKeyId}set tokenKeyId(value){cdk().traceProperty(this.node,"TokenKeyId"),this._tokenKeyId=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{applicationId:this._applicationId,bundleId:this._bundleId,certificate:this._certificate,defaultAuthenticationMethod:this._defaultAuthenticationMethod,enabled:this._enabled,privateKey:this._privateKey,teamId:this._teamId,tokenKey:this._tokenKey,tokenKeyId:this._tokenKeyId}}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",CfnAPNSSandboxChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAPNSSandboxChannelPropsToCloudFormation(props)}}exports.CfnAPNSSandboxChannel=CfnAPNSSandboxChannel;function CfnAPNSSandboxChannelPropsValidator(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("applicationId",cdk().requiredValidator)(properties.applicationId)),errors.collect(cdk().propertyValidator("applicationId",cdk().validateString)(properties.applicationId)),errors.collect(cdk().propertyValidator("bundleId",cdk().validateString)(properties.bundleId)),errors.collect(cdk().propertyValidator("certificate",cdk().validateString)(properties.certificate)),errors.collect(cdk().propertyValidator("defaultAuthenticationMethod",cdk().validateString)(properties.defaultAuthenticationMethod)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("privateKey",cdk().validateString)(properties.privateKey)),errors.collect(cdk().propertyValidator("teamId",cdk().validateString)(properties.teamId)),errors.collect(cdk().propertyValidator("tokenKey",cdk().validateString)(properties.tokenKey)),errors.collect(cdk().propertyValidator("tokenKeyId",cdk().validateString)(properties.tokenKeyId)),errors.wrap('supplied properties not correct for "CfnAPNSSandboxChannelProps"')}function convertCfnAPNSSandboxChannelPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAPNSSandboxChannelPropsValidator(properties).assertSuccess(),{ApplicationId:cdk().stringToCloudFormation(properties.applicationId),BundleId:cdk().stringToCloudFormation(properties.bundleId),Certificate:cdk().stringToCloudFormation(properties.certificate),DefaultAuthenticationMethod:cdk().stringToCloudFormation(properties.defaultAuthenticationMethod),Enabled:cdk().booleanToCloudFormation(properties.enabled),PrivateKey:cdk().stringToCloudFormation(properties.privateKey),TeamId:cdk().stringToCloudFormation(properties.teamId),TokenKey:cdk().stringToCloudFormation(properties.tokenKey),TokenKeyId:cdk().stringToCloudFormation(properties.tokenKeyId)}):properties}function CfnAPNSSandboxChannelPropsFromCloudFormation(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("applicationId","ApplicationId",properties.ApplicationId!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationId):void 0),ret.addPropertyResult("bundleId","BundleId",properties.BundleId!=null?cfn_parse().FromCloudFormation.getString(properties.BundleId):void 0),ret.addPropertyResult("certificate","Certificate",properties.Certificate!=null?cfn_parse().FromCloudFormation.getString(properties.Certificate):void 0),ret.addPropertyResult("defaultAuthenticationMethod","DefaultAuthenticationMethod",properties.DefaultAuthenticationMethod!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultAuthenticationMethod):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("privateKey","PrivateKey",properties.PrivateKey!=null?cfn_parse().FromCloudFormation.getString(properties.PrivateKey):void 0),ret.addPropertyResult("teamId","TeamId",properties.TeamId!=null?cfn_parse().FromCloudFormation.getString(properties.TeamId):void 0),ret.addPropertyResult("tokenKey","TokenKey",properties.TokenKey!=null?cfn_parse().FromCloudFormation.getString(properties.TokenKey):void 0),ret.addPropertyResult("tokenKeyId","TokenKeyId",properties.TokenKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.TokenKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAPNSVoipChannel extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_pinpoint.CfnAPNSVoipChannel",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Pinpoint::APNSVoipChannel";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAPNSVoipChannelPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAPNSVoipChannel(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 isCfnAPNSVoipChannel(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAPNSVoipChannel.CFN_RESOURCE_TYPE_NAME}_applicationId;_bundleId;_certificate;_defaultAuthenticationMethod;_enabled;_privateKey;_teamId;_tokenKey;_tokenKeyId;constructor(scope,id,props){super(scope,id,{type:CfnAPNSVoipChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_pinpoint_CfnAPNSVoipChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAPNSVoipChannel),error}cdk().requireProperty(props,"applicationId",this),this._applicationId=props.applicationId,this._bundleId=props.bundleId,this._certificate=props.certificate,this._defaultAuthenticationMethod=props.defaultAuthenticationMethod,this._enabled=props.enabled,this._privateKey=props.privateKey,this._teamId=props.teamId,this._tokenKey=props.tokenKey,this._tokenKeyId=props.tokenKeyId}get apnsVoipChannelRef(){return{apnsVoipChannelId:this.ref}}get applicationId(){return this._applicationId}set applicationId(value){cdk().traceProperty(this.node,"ApplicationId"),this._applicationId=value}get bundleId(){return this._bundleId}set bundleId(value){cdk().traceProperty(this.node,"BundleId"),this._bundleId=value}get certificate(){return this._certificate}set certificate(value){cdk().traceProperty(this.node,"Certificate"),this._certificate=value}get defaultAuthenticationMethod(){return this._defaultAuthenticationMethod}set defaultAuthenticationMethod(value){cdk().traceProperty(this.node,"DefaultAuthenticationMethod"),this._defaultAuthenticationMethod=value}get enabled(){return this._enabled}set enabled(value){cdk().traceProperty(this.node,"Enabled"),this._enabled=value}get privateKey(){return this._privateKey}set privateKey(value){cdk().traceProperty(this.node,"PrivateKey"),this._privateKey=value}get teamId(){return this._teamId}set teamId(value){cdk().traceProperty(this.node,"TeamId"),this._teamId=value}get tokenKey(){return this._tokenKey}set tokenKey(value){cdk().traceProperty(this.node,"TokenKey"),this._tokenKey=value}get tokenKeyId(){return this._tokenKeyId}set tokenKeyId(value){cdk().traceProperty(this.node,"TokenKeyId"),this._tokenKeyId=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{applicationId:this._applicationId,bundleId:this._bundleId,certificate:this._certificate,defaultAuthenticationMethod:this._defaultAuthenticationMethod,enabled:this._enabled,privateKey:this._privateKey,teamId:this._teamId,tokenKey:this._tokenKey,tokenKeyId:this._tokenKeyId}}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",CfnAPNSVoipChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAPNSVoipChannelPropsToCloudFormation(props)}}exports.CfnAPNSVoipChannel=CfnAPNSVoipChannel;function CfnAPNSVoipChannelPropsValidator(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("applicationId",cdk().requiredValidator)(properties.applicationId)),errors.collect(cdk().propertyValidator("applicationId",cdk().validateString)(properties.applicationId)),errors.collect(cdk().propertyValidator("bundleId",cdk().validateString)(properties.bundleId)),errors.collect(cdk().propertyValidator("certificate",cdk().validateString)(properties.certificate)),errors.collect(cdk().propertyValidator("defaultAuthenticationMethod",cdk().validateString)(properties.defaultAuthenticationMethod)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("privateKey",cdk().validateString)(properties.privateKey)),errors.collect(cdk().propertyValidator("teamId",cdk().validateString)(properties.teamId)),errors.collect(cdk().propertyValidator("tokenKey",cdk().validateString)(properties.tokenKey)),errors.collect(cdk().propertyValidator("tokenKeyId",cdk().validateString)(properties.tokenKeyId)),errors.wrap('supplied properties not correct for "CfnAPNSVoipChannelProps"')}function convertCfnAPNSVoipChannelPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAPNSVoipChannelPropsValidator(properties).assertSuccess(),{ApplicationId:cdk().stringToCloudFormation(properties.applicationId),BundleId:cdk().stringToCloudFormation(properties.bundleId),Certificate:cdk().stringToCloudFormation(properties.certificate),DefaultAuthenticationMethod:cdk().stringToCloudFormation(properties.defaultAuthenticationMethod),Enabled:cdk().booleanToCloudFormation(properties.enabled),PrivateKey:cdk().stringToCloudFormation(properties.privateKey),TeamId:cdk().stringToCloudFormation(properties.teamId),TokenKey:cdk().stringToCloudFormation(properties.tokenKey),TokenKeyId:cdk().stringToCloudFormation(properties.tokenKeyId)}):properties}function CfnAPNSVoipChannelPropsFromCloudFormation(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("applicationId","ApplicationId",properties.ApplicationId!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationId):void 0),ret.addPropertyResult("bundleId","BundleId",properties.BundleId!=null?cfn_parse().FromCloudFormation.getString(properties.BundleId):void 0),ret.addPropertyResult("certificate","Certificate",properties.Certificate!=null?cfn_parse().FromCloudFormation.getString(properties.Certificate):void 0),ret.addPropertyResult("defaultAuthenticationMethod","DefaultAuthenticationMethod",properties.DefaultAuthenticationMethod!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultAuthenticationMethod):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("privateKey","PrivateKey",properties.PrivateKey!=null?cfn_parse().FromCloudFormation.getString(properties.PrivateKey):void 0),ret.addPropertyResult("teamId","TeamId",properties.TeamId!=null?cfn_parse().FromCloudFormation.getString(properties.TeamId):void 0),ret.addPropertyResult("tokenKey","TokenKey",properties.TokenKey!=null?cfn_parse().FromCloudFormation.getString(properties.TokenKey):void 0),ret.addPropertyResult("tokenKeyId","TokenKeyId",properties.TokenKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.TokenKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnAPNSVoipSandboxChannel extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_pinpoint.CfnAPNSVoipSandboxChannel",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Pinpoint::APNSVoipSandboxChannel";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAPNSVoipSandboxChannelPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAPNSVoipSandboxChannel(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 isCfnAPNSVoipSandboxChannel(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAPNSVoipSandboxChannel.CFN_RESOURCE_TYPE_NAME}_applicationId;_bundleId;_certificate;_defaultAuthenticationMethod;_enabled;_privateKey;_teamId;_tokenKey;_tokenKeyId;constructor(scope,id,props){super(scope,id,{type:CfnAPNSVoipSandboxChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_pinpoint_CfnAPNSVoipSandboxChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAPNSVoipSandboxChannel),error}cdk().requireProperty(props,"applicationId",this),this._applicationId=props.applicationId,this._bundleId=props.bundleId,this._certificate=props.certificate,this._defaultAuthenticationMethod=props.defaultAuthenticationMethod,this._enabled=props.enabled,this._privateKey=props.privateKey,this._teamId=props.teamId,this._tokenKey=props.tokenKey,this._tokenKeyId=props.tokenKeyId}get apnsVoipSandboxChannelRef(){return{apnsVoipSandboxChannelId:this.ref}}get applicationId(){return this._applicationId}set applicationId(value){cdk().traceProperty(this.node,"ApplicationId"),this._applicationId=value}get bundleId(){return this._bundleId}set bundleId(value){cdk().traceProperty(this.node,"BundleId"),this._bundleId=value}get certificate(){return this._certificate}set certificate(value){cdk().traceProperty(this.node,"Certificate"),this._certificate=value}get defaultAuthenticationMethod(){return this._defaultAuthenticationMethod}set defaultAuthenticationMethod(value){cdk().traceProperty(this.node,"DefaultAuthenticationMethod"),this._defaultAuthenticationMethod=value}get enabled(){return this._enabled}set enabled(value){cdk().traceProperty(this.node,"Enabled"),this._enabled=value}get privateKey(){return this._privateKey}set privateKey(value){cdk().traceProperty(this.node,"PrivateKey"),this._privateKey=value}get teamId(){return this._teamId}set teamId(value){cdk().traceProperty(this.node,"TeamId"),this._teamId=value}get tokenKey(){return this._tokenKey}set tokenKey(value){cdk().traceProperty(this.node,"TokenKey"),this._tokenKey=value}get tokenKeyId(){return this._tokenKeyId}set tokenKeyId(value){cdk().traceProperty(this.node,"TokenKeyId"),this._tokenKeyId=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{applicationId:this._applicationId,bundleId:this._bundleId,certificate:this._certificate,defaultAuthenticationMethod:this._defaultAuthenticationMethod,enabled:this._enabled,privateKey:this._privateKey,teamId:this._teamId,tokenKey:this._tokenKey,tokenKeyId:this._tokenKeyId}}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",CfnAPNSVoipSandboxChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAPNSVoipSandboxChannelPropsToCloudFormation(props)}}exports.CfnAPNSVoipSandboxChannel=CfnAPNSVoipSandboxChannel;function CfnAPNSVoipSandboxChannelPropsValidator(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("applicationId",cdk().requiredValidator)(properties.applicationId)),errors.collect(cdk().propertyValidator("applicationId",cdk().validateString)(properties.applicationId)),errors.collect(cdk().propertyValidator("bundleId",cdk().validateString)(properties.bundleId)),errors.collect(cdk().propertyValidator("certificate",cdk().validateString)(properties.certificate)),errors.collect(cdk().propertyValidator("defaultAuthenticationMethod",cdk().validateString)(properties.defaultAuthenticationMethod)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("privateKey",cdk().validateString)(properties.privateKey)),errors.collect(cdk().propertyValidator("teamId",cdk().validateString)(properties.teamId)),errors.collect(cdk().propertyValidator("tokenKey",cdk().validateString)(properties.tokenKey)),errors.collect(cdk().propertyValidator("tokenKeyId",cdk().validateString)(properties.tokenKeyId)),errors.wrap('supplied properties not correct for "CfnAPNSVoipSandboxChannelProps"')}function convertCfnAPNSVoipSandboxChannelPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAPNSVoipSandboxChannelPropsValidator(properties).assertSuccess(),{ApplicationId:cdk().stringToCloudFormation(properties.applicationId),BundleId:cdk().stringToCloudFormation(properties.bundleId),Certificate:cdk().stringToCloudFormation(properties.certificate),DefaultAuthenticationMethod:cdk().stringToCloudFormation(properties.defaultAuthenticationMethod),Enabled:cdk().booleanToCloudFormation(properties.enabled),PrivateKey:cdk().stringToCloudFormation(properties.privateKey),TeamId:cdk().stringToCloudFormation(properties.teamId),TokenKey:cdk().stringToCloudFormation(properties.tokenKey),TokenKeyId:cdk().stringToCloudFormation(properties.tokenKeyId)}):properties}function CfnAPNSVoipSandboxChannelPropsFromCloudFormation(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("applicationId","ApplicationId",properties.ApplicationId!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationId):void 0),ret.addPropertyResult("bundleId","BundleId",properties.BundleId!=null?cfn_parse().FromCloudFormation.getString(properties.BundleId):void 0),ret.addPropertyResult("certificate","Certificate",properties.Certificate!=null?cfn_parse().FromCloudFormation.getString(properties.Certificate):void 0),ret.addPropertyResult("defaultAuthenticationMethod","DefaultAuthenticationMethod",properties.DefaultAuthenticationMethod!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultAuthenticationMethod):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("privateKey","PrivateKey",properties.PrivateKey!=null?cfn_parse().FromCloudFormation.getString(properties.PrivateKey):void 0),ret.addPropertyResult("teamId","TeamId",properties.TeamId!=null?cfn_parse().FromCloudFormation.getString(properties.TeamId):void 0),ret.addPropertyResult("tokenKey","TokenKey",properties.TokenKey!=null?cfn_parse().FromCloudFormation.getString(properties.TokenKey):void 0),ret.addPropertyResult("tokenKeyId","TokenKeyId",properties.TokenKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.TokenKeyId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnApp extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_pinpoint.CfnApp",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Pinpoint::App";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAppPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnApp(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 isCfnApp(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnApp.CFN_RESOURCE_TYPE_NAME}static fromAppArn(scope,id,arn){class Import extends cdk().Resource{appRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:mobiletargeting:${Region}:${Account}:apps/${AppId}").parse(arn2);this.appRef={appId:variables.AppId,appArn:arn2}}}return new Import(scope,id,arn)}static fromAppId(scope,id,appId){class Import extends cdk().Resource{appRef;constructor(scope2,id2,appId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:mobiletargeting:${Region}:${Account}:apps/${AppId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,AppId:appId2});super(scope2,id2,{environmentFromArn:arn}),this.appRef={appId:appId2,appArn:arn}}}return new Import(scope,id,appId)}static arnForApp(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_pinpoint_IAppRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForApp),error}return resource.appRef.appArn}_name;tags;_tagsRaw;constructor(scope,id,props){super(scope,id,{type:CfnApp.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_pinpoint_CfnAppProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnApp),error}cdk().requireProperty(props,"name",this),this._name=props.name,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::Pinpoint::App",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get appRef(){return{appId:this.ref,appArn:this.attrArn}}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{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",CfnApp.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnAppPropsToCloudFormation(props)}}exports.CfnApp=CfnApp;function CfnAppPropsValidator(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("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("tags",cdk().validateObject)(properties.tags)),errors.wrap('supplied properties not correct for "CfnAppProps"')}function convertCfnAppPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnAppPropsValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),Tags:cdk().objectToCloudFormation(properties.tags)}):properties}function CfnAppPropsFromCloudFormation(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("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getAny(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnApplicationSettings extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_pinpoint.CfnApplicationSettings",version:"2.251.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Pinpoint::ApplicationSettings";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnApplicationSettingsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnApplicationSettings(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 isCfnApplicationSettings(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnApplicationSettings.CFN_RESOURCE_TYPE_NAME}_applicationId;_campaignHook;_cloudWatchMetricsEnabled;_limits;_quietTime;constructor(scope,id,props){super(scope,id,{type:CfnApplicationSettings.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_pinpoint_CfnApplicationSettingsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnApplicationSettings),error}cdk().requireProperty(props,"applicationId",this),this._applicationId=props.applicationId,this._campaignHook=props.campaignHook,this._cloudWatchMetricsEnabled=props.cloudWatchMetricsEnabled,this._limits=props.limits,this._quietTime=props.quietTime}get applicationSettingsRef(){return{applicationSettingsId:this.ref}}get applicationId(){return this._applicationId}set applicationId(value){cdk().traceProperty(this.node,"ApplicationId"),this._applicationId=value}get campaignHook(){return this._campaignHook}set campaignHook(value){cdk().traceProperty(this.node,"CampaignHook"),this._campaignHook=value}get cloudWatchMetricsEnabled(){return this._cloudWatchMetricsEnabled}set cloudWatchMetricsEnabled(value){cdk().traceProperty(this.node,"CloudWatchMetricsEnabled"),this._cloudWatchMetricsEnabled=value}get limits(){return this._limits}set limits(value){cdk().traceProperty(this.node,"Limits"),this._limits=value}get quietTime(){return this._quietTime}set quietTime(value){cdk().traceProperty(this.node,"QuietTime"),this._quietTime=value}get attrId(){return cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING))}get cfnProperties(){return{applicationId:this._applicationId,campaignHook:this._campaignHook,cloudWatchMetricsEnabled:this._cloudWatchMetricsEnabled,limits:this._limits,quietTime:this._quietTime}}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",CfnApplicationSettings.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:logicalId",this._synthesizeLogicalId()),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnApplicationSettingsPropsToCloudFormation(props)}}exports.CfnApplicationSettings=CfnApplicationSettings;function CfnApplicationSettingsQuietTimePropertyValidator(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("end",cdk().requiredValidator)(properties.end)),errors.collect(cdk().propertyValidator("end",cdk().validateString)(properties.end)),errors.collect(cdk().propertyValidator("start",cdk().requiredValidator)(properties.start)),errors.collect(cdk().propertyValidator("start",cdk().validateString)(properties.start)),errors.wrap('supplied properties not correct for "QuietTimeProperty"')}function convertCfnApplicationSettingsQuietTimePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApplicationSettingsQuietTimePropertyValidator(properties).assertSuccess(),{End:cdk().stringToCloudFormation(properties.end),Start:cdk().stringToCloudFormation(properties.start)}):properties}function CfnApplicationSettingsQuietTimePropertyFromCloudFormation(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("end","End",properties.End!=null?cfn_parse().FromCloudFormation.getString(properties.End):void 0),ret.addPropertyResult("start","Start",properties.Start!=null?cfn_parse().FromCloudFormation.getString(properties.Start):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnApplicationSettingsLimitsPropertyValidator(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: