UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 22.9 kB
"use strict";var _a,_b,_c,_d;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnStreamKey=exports.CfnRecordingConfiguration=exports.CfnPlaybackKeyPair=exports.CfnChannel=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnChannelPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("authorized",cdk.validateBoolean)(properties.authorized)),errors.collect(cdk.propertyValidator("latencyMode",cdk.validateString)(properties.latencyMode)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("recordingConfigurationArn",cdk.validateString)(properties.recordingConfigurationArn)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnChannelProps"')}function cfnChannelPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnChannelPropsValidator(properties).assertSuccess(),{Authorized:cdk.booleanToCloudFormation(properties.authorized),LatencyMode:cdk.stringToCloudFormation(properties.latencyMode),Name:cdk.stringToCloudFormation(properties.name),RecordingConfigurationArn:cdk.stringToCloudFormation(properties.recordingConfigurationArn),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnChannelPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("authorized","Authorized",properties.Authorized!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Authorized):void 0),ret.addPropertyResult("latencyMode","LatencyMode",properties.LatencyMode!=null?cfn_parse.FromCloudFormation.getString(properties.LatencyMode):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("recordingConfigurationArn","RecordingConfigurationArn",properties.RecordingConfigurationArn!=null?cfn_parse.FromCloudFormation.getString(properties.RecordingConfigurationArn):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnChannel extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnChannel.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ivs_CfnChannelProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnChannel),error}this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrIngestEndpoint=cdk.Token.asString(this.getAtt("IngestEndpoint",cdk.ResolutionTypeHint.STRING)),this.attrPlaybackUrl=cdk.Token.asString(this.getAtt("PlaybackUrl",cdk.ResolutionTypeHint.STRING)),this.authorized=props.authorized,this.latencyMode=props.latencyMode,this.name=props.name,this.recordingConfigurationArn=props.recordingConfigurationArn,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::IVS::Channel",props.tags,{tagPropertyName:"tags"}),this.type=props.type}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnChannelPropsFromCloudFormation(resourceProperties),ret=new CfnChannel(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}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",CfnChannel.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{authorized:this.authorized,latencyMode:this.latencyMode,name:this.name,recordingConfigurationArn:this.recordingConfigurationArn,tags:this.tags.renderTags(),type:this.type}}renderProperties(props){return cfnChannelPropsToCloudFormation(props)}}exports.CfnChannel=CfnChannel,_a=JSII_RTTI_SYMBOL_1,CfnChannel[_a]={fqn:"aws-cdk-lib.aws_ivs.CfnChannel",version:"2.70.0"},CfnChannel.CFN_RESOURCE_TYPE_NAME="AWS::IVS::Channel";function CfnPlaybackKeyPairPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("publicKeyMaterial",cdk.validateString)(properties.publicKeyMaterial)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnPlaybackKeyPairProps"')}function cfnPlaybackKeyPairPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnPlaybackKeyPairPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),PublicKeyMaterial:cdk.stringToCloudFormation(properties.publicKeyMaterial),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnPlaybackKeyPairPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")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("publicKeyMaterial","PublicKeyMaterial",properties.PublicKeyMaterial!=null?cfn_parse.FromCloudFormation.getString(properties.PublicKeyMaterial):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 CfnPlaybackKeyPair extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnPlaybackKeyPair.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ivs_CfnPlaybackKeyPairProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnPlaybackKeyPair),error}this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrFingerprint=cdk.Token.asString(this.getAtt("Fingerprint",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.publicKeyMaterial=props.publicKeyMaterial,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::IVS::PlaybackKeyPair",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnPlaybackKeyPairPropsFromCloudFormation(resourceProperties),ret=new CfnPlaybackKeyPair(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}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",CfnPlaybackKeyPair.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,publicKeyMaterial:this.publicKeyMaterial,tags:this.tags.renderTags()}}renderProperties(props){return cfnPlaybackKeyPairPropsToCloudFormation(props)}}exports.CfnPlaybackKeyPair=CfnPlaybackKeyPair,_b=JSII_RTTI_SYMBOL_1,CfnPlaybackKeyPair[_b]={fqn:"aws-cdk-lib.aws_ivs.CfnPlaybackKeyPair",version:"2.70.0"},CfnPlaybackKeyPair.CFN_RESOURCE_TYPE_NAME="AWS::IVS::PlaybackKeyPair";function CfnRecordingConfigurationPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("destinationConfiguration",cdk.requiredValidator)(properties.destinationConfiguration)),errors.collect(cdk.propertyValidator("destinationConfiguration",CfnRecordingConfiguration_DestinationConfigurationPropertyValidator)(properties.destinationConfiguration)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("recordingReconnectWindowSeconds",cdk.validateNumber)(properties.recordingReconnectWindowSeconds)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.collect(cdk.propertyValidator("thumbnailConfiguration",CfnRecordingConfiguration_ThumbnailConfigurationPropertyValidator)(properties.thumbnailConfiguration)),errors.wrap('supplied properties not correct for "CfnRecordingConfigurationProps"')}function cfnRecordingConfigurationPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRecordingConfigurationPropsValidator(properties).assertSuccess(),{DestinationConfiguration:cfnRecordingConfigurationDestinationConfigurationPropertyToCloudFormation(properties.destinationConfiguration),Name:cdk.stringToCloudFormation(properties.name),RecordingReconnectWindowSeconds:cdk.numberToCloudFormation(properties.recordingReconnectWindowSeconds),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags),ThumbnailConfiguration:cfnRecordingConfigurationThumbnailConfigurationPropertyToCloudFormation(properties.thumbnailConfiguration)}):properties}function CfnRecordingConfigurationPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("destinationConfiguration","DestinationConfiguration",CfnRecordingConfigurationDestinationConfigurationPropertyFromCloudFormation(properties.DestinationConfiguration)),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("recordingReconnectWindowSeconds","RecordingReconnectWindowSeconds",properties.RecordingReconnectWindowSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.RecordingReconnectWindowSeconds):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("thumbnailConfiguration","ThumbnailConfiguration",properties.ThumbnailConfiguration!=null?CfnRecordingConfigurationThumbnailConfigurationPropertyFromCloudFormation(properties.ThumbnailConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRecordingConfiguration extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnRecordingConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ivs_CfnRecordingConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRecordingConfiguration),error}cdk.requireProperty(props,"destinationConfiguration",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrState=cdk.Token.asString(this.getAtt("State",cdk.ResolutionTypeHint.STRING)),this.destinationConfiguration=props.destinationConfiguration,this.name=props.name,this.recordingReconnectWindowSeconds=props.recordingReconnectWindowSeconds,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::IVS::RecordingConfiguration",props.tags,{tagPropertyName:"tags"}),this.thumbnailConfiguration=props.thumbnailConfiguration}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRecordingConfigurationPropsFromCloudFormation(resourceProperties),ret=new CfnRecordingConfiguration(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}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",CfnRecordingConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{destinationConfiguration:this.destinationConfiguration,name:this.name,recordingReconnectWindowSeconds:this.recordingReconnectWindowSeconds,tags:this.tags.renderTags(),thumbnailConfiguration:this.thumbnailConfiguration}}renderProperties(props){return cfnRecordingConfigurationPropsToCloudFormation(props)}}exports.CfnRecordingConfiguration=CfnRecordingConfiguration,_c=JSII_RTTI_SYMBOL_1,CfnRecordingConfiguration[_c]={fqn:"aws-cdk-lib.aws_ivs.CfnRecordingConfiguration",version:"2.70.0"},CfnRecordingConfiguration.CFN_RESOURCE_TYPE_NAME="AWS::IVS::RecordingConfiguration";function CfnRecordingConfiguration_DestinationConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("s3",cdk.requiredValidator)(properties.s3)),errors.collect(cdk.propertyValidator("s3",CfnRecordingConfiguration_S3DestinationConfigurationPropertyValidator)(properties.s3)),errors.wrap('supplied properties not correct for "DestinationConfigurationProperty"')}function cfnRecordingConfigurationDestinationConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRecordingConfiguration_DestinationConfigurationPropertyValidator(properties).assertSuccess(),{S3:cfnRecordingConfigurationS3DestinationConfigurationPropertyToCloudFormation(properties.s3)}):properties}function CfnRecordingConfigurationDestinationConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("s3","S3",CfnRecordingConfigurationS3DestinationConfigurationPropertyFromCloudFormation(properties.S3)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRecordingConfiguration_S3DestinationConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("bucketName",cdk.requiredValidator)(properties.bucketName)),errors.collect(cdk.propertyValidator("bucketName",cdk.validateString)(properties.bucketName)),errors.wrap('supplied properties not correct for "S3DestinationConfigurationProperty"')}function cfnRecordingConfigurationS3DestinationConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRecordingConfiguration_S3DestinationConfigurationPropertyValidator(properties).assertSuccess(),{BucketName:cdk.stringToCloudFormation(properties.bucketName)}):properties}function CfnRecordingConfigurationS3DestinationConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bucketName","BucketName",cfn_parse.FromCloudFormation.getString(properties.BucketName)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRecordingConfiguration_ThumbnailConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("recordingMode",cdk.requiredValidator)(properties.recordingMode)),errors.collect(cdk.propertyValidator("recordingMode",cdk.validateString)(properties.recordingMode)),errors.collect(cdk.propertyValidator("targetIntervalSeconds",cdk.validateNumber)(properties.targetIntervalSeconds)),errors.wrap('supplied properties not correct for "ThumbnailConfigurationProperty"')}function cfnRecordingConfigurationThumbnailConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRecordingConfiguration_ThumbnailConfigurationPropertyValidator(properties).assertSuccess(),{RecordingMode:cdk.stringToCloudFormation(properties.recordingMode),TargetIntervalSeconds:cdk.numberToCloudFormation(properties.targetIntervalSeconds)}):properties}function CfnRecordingConfigurationThumbnailConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("recordingMode","RecordingMode",cfn_parse.FromCloudFormation.getString(properties.RecordingMode)),ret.addPropertyResult("targetIntervalSeconds","TargetIntervalSeconds",properties.TargetIntervalSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.TargetIntervalSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnStreamKeyPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&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("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnStreamKeyProps"')}function cfnStreamKeyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnStreamKeyPropsValidator(properties).assertSuccess(),{ChannelArn:cdk.stringToCloudFormation(properties.channelArn),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnStreamKeyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("channelArn","ChannelArn",cfn_parse.FromCloudFormation.getString(properties.ChannelArn)),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnStreamKey extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnStreamKey.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_ivs_CfnStreamKeyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnStreamKey),error}cdk.requireProperty(props,"channelArn",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrValue=cdk.Token.asString(this.getAtt("Value",cdk.ResolutionTypeHint.STRING)),this.channelArn=props.channelArn,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::IVS::StreamKey",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnStreamKeyPropsFromCloudFormation(resourceProperties),ret=new CfnStreamKey(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}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",CfnStreamKey.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{channelArn:this.channelArn,tags:this.tags.renderTags()}}renderProperties(props){return cfnStreamKeyPropsToCloudFormation(props)}}exports.CfnStreamKey=CfnStreamKey,_d=JSII_RTTI_SYMBOL_1,CfnStreamKey[_d]={fqn:"aws-cdk-lib.aws_ivs.CfnStreamKey",version:"2.70.0"},CfnStreamKey.CFN_RESOURCE_TYPE_NAME="AWS::IVS::StreamKey";