"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.DynamoDeleteItem=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),iam=require("../../../aws-iam"),sfn=require("../../../aws-stepfunctions"),core_1=require("../../../core"),utils_1=require("./private/utils");class DynamoDeleteItem extends sfn.TaskStateBase{constructor(scope,id,props){super(scope,id,props),this.props=props;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_tasks_DynamoDeleteItemProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.constructor),error}this.taskPolicies=[new iam.PolicyStatement({resources:[core_1.Stack.of(this).formatArn({service:"dynamodb",resource:"table",resourceName:props.table.tableName})],actions:[`dynamodb:${utils_1.DynamoMethod.DELETE}Item`]})]}_renderTask(){return{Resource:utils_1.getDynamoResourceArn(utils_1.DynamoMethod.DELETE),Parameters:sfn.FieldUtils.renderObject({Key:utils_1.transformAttributeValueMap(this.props.key),TableName:this.props.table.tableName,ConditionExpression:this.props.conditionExpression,ExpressionAttributeNames:this.props.expressionAttributeNames,ExpressionAttributeValues:utils_1.transformAttributeValueMap(this.props.expressionAttributeValues),ReturnConsumedCapacity:this.props.returnConsumedCapacity,ReturnItemCollectionMetrics:this.props.returnItemCollectionMetrics,ReturnValues:this.props.returnValues})}}}exports.DynamoDeleteItem=DynamoDeleteItem,_a=JSII_RTTI_SYMBOL_1,DynamoDeleteItem[_a]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.DynamoDeleteItem",version:"2.24.1"};
//# sourceMappingURL=delete-item.js.map
