"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CallApiGatewayHttpApiEndpoint=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var base_1=()=>{var tmp=require("./base");return base_1=()=>tmp,tmp},cdk=()=>{var tmp=require("../../../core");return cdk=()=>tmp,tmp};class CallApiGatewayHttpApiEndpoint extends base_1().CallApiGatewayEndpointBase{constructor(scope,id,props){super(scope,id,props),this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_tasks_CallApiGatewayHttpApiEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CallApiGatewayHttpApiEndpoint),error}this.apiEndpoint=this.getApiEndpoint(),this.arnForExecuteApi=this.getArnForExecuteApi(),this.stageName=props.stageName,this.taskPolicies=this.createPolicyStatements()}getApiEndpoint(){const apiStack=this.props.apiStack;return`${this.props.apiId}.execute-api.${apiStack.region}.${apiStack.urlSuffix}`}getArnForExecuteApi(){const{apiId,stageName,method,apiPath}=this.props;return this.props.apiStack.formatArn({service:"execute-api",resource:apiId,arnFormat:cdk().ArnFormat.SLASH_RESOURCE_NAME,resourceName:`${stageName}/${method}${apiPath}`})}}exports.CallApiGatewayHttpApiEndpoint=CallApiGatewayHttpApiEndpoint,_a=JSII_RTTI_SYMBOL_1,CallApiGatewayHttpApiEndpoint[_a]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.CallApiGatewayHttpApiEndpoint",version:"2.148.1"};
