2 lines
160 KiB
JavaScript
2 lines
160 KiB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnUser=exports.CfnStackUserAssociation=exports.CfnStackFleetAssociation=exports.CfnStack=exports.CfnImageBuilder=exports.CfnFleet=exports.CfnEntitlement=exports.CfnDirectoryConfig=exports.CfnApplicationFleetAssociation=exports.CfnApplicationEntitlementAssociation=exports.CfnApplication=exports.CfnAppBlockBuilder=exports.CfnAppBlock=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 CfnAppBlock extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_appstream.CfnAppBlock",version:"2.257.0"};static CFN_RESOURCE_TYPE_NAME="AWS::AppStream::AppBlock";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnAppBlockPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError(cfn_parse().lit`UnexpectedIResolvable`,"Unexpected IResolvable",scope);const ret=new CfnAppBlock(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 isCfnAppBlock(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnAppBlock.CFN_RESOURCE_TYPE_NAME}static arnForAppBlock(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_appstream_IAppBlockRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForAppBlock),error}return resource.appBlockRef.appBlockArn}_description;_displayName;_name;_packagingType;_postSetupScriptDetails;_setupScriptDetails;_sourceS3Location;tags;_tagsRaw;cfnPropertyNames={description:"Description",displayName:"DisplayName",name:"Name",packagingType:"PackagingType",postSetupScriptDetails:"PostSetupScriptDetails",setupScriptDetails:"SetupScriptDetails",sourceS3Location:"SourceS3Location",tags:"Tags"};constructor(scope,id,props){super(scope,id,{type:CfnAppBlock.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_appstream_CfnAppBlockProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnAppBlock),error}cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"sourceS3Location",this),this._description=props.description,this._displayName=props.displayName,this._name=props.name,this._packagingType=props.packagingType,this._postSetupScriptDetails=props.postSetupScriptDetails,this._setupScriptDetails=props.setupScriptDetails,this._sourceS3Location=props.sourceS3Location,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::AppStream::AppBlock",props.tags,{tagPropertyName:"tags"}),this._tagsRaw=props.tags}get appBlockRef(){return{appBlockArn:this.ref}}get description(){return this._description}set description(value){cdk().traceProperty(this.node,"Description"),this._description=value}get displayName(){return this._displayName}set displayName(value){cdk().traceProperty(this.node,"DisplayName"),this._displayName=value}get name(){return this._name}set name(value){cdk().traceProperty(this.node,"Name"),this._name=value}get packagingType(){return this._packagingType}set packagingType(value){cdk().traceProperty(this.node,"PackagingType"),this._packagingType=value}get postSetupScriptDetails(){return this._postSetupScriptDetails}set postSetupScriptDetails(value){cdk().traceProperty(this.node,"PostSetupScriptDetails"),this._postSetupScriptDetails=value}get setupScriptDetails(
|