"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CallApiGatewayRestApiEndpoint=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../../core"),base_1=require("./base");class CallApiGatewayRestApiEndpoint extends base_1.CallApiGatewayEndpointBase{constructor(scope,id,props){super(scope,id,props),this.props=props;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_tasks_CallApiGatewayRestApiEndpointProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.constructor),error}this.apiEndpoint=this.getApiEndpoint(),this.arnForExecuteApi=props.api.arnForExecuteApi(props.method,props.apiPath,props.stageName),this.stageName=props.stageName,this.taskPolicies=this.createPolicyStatements()}getApiEndpoint(){const apiStack=cdk.Stack.of(this.props.api);return`${this.props.api.restApiId}.execute-api.${apiStack.region}.${apiStack.urlSuffix}`}}exports.CallApiGatewayRestApiEndpoint=CallApiGatewayRestApiEndpoint,_a=JSII_RTTI_SYMBOL_1,CallApiGatewayRestApiEndpoint[_a]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.CallApiGatewayRestApiEndpoint",version:"2.24.1"};
//# sourceMappingURL=call-rest-api.js.map
