"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServiceCatalogDeployActionBeta1=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var codepipeline=()=>{var tmp=require("../../../aws-codepipeline");return codepipeline=()=>tmp,tmp},iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},action_1=()=>{var tmp=require("../action");return action_1=()=>tmp,tmp};class ServiceCatalogDeployActionBeta1 extends action_1().Action{constructor(props){super({...props,provider:"ServiceCatalog",category:codepipeline().ActionCategory.DEPLOY,artifactBounds:{minInputs:1,maxInputs:1,minOutputs:0,maxOutputs:0},inputs:[props.templatePath.artifact]});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_actions_ServiceCatalogDeployActionBeta1Props(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,ServiceCatalogDeployActionBeta1),error}this.templatePath=props.templatePath.fileName,this.productVersionName=props.productVersionName,this.productVersionDescription=props.productVersionDescription,this.productId=props.productId,this.productType="CLOUD_FORMATION_TEMPLATE"}bound(_scope,_stage,options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_IStage(_stage),jsiiDeprecationWarnings().aws_cdk_lib_aws_codepipeline_ActionBindOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bound),error}return options.role.addManagedPolicy(iam().ManagedPolicy.fromAwsManagedPolicyName("AWSServiceCatalogAdminFullAccess")),options.bucket.grantRead(options.role),{configuration:{TemplateFilePath:this.templatePath,ProductVersionName:this.productVersionName,ProductVersionDescription:this.productVersionDescription,ProductType:this.productType,ProductId:this.productId}}}}exports.ServiceCatalogDeployActionBeta1=ServiceCatalogDeployActionBeta1,_a=JSII_RTTI_SYMBOL_1,ServiceCatalogDeployActionBeta1[_a]={fqn:"aws-cdk-lib.aws_codepipeline_actions.ServiceCatalogDeployActionBeta1",version:"2.159.0"};
