agent-claw: automated task changes
This commit is contained in:
80
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/sqs/send-message.d.ts
generated
vendored
Normal file
80
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/sqs/send-message.d.ts
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import * as iam from '../../../aws-iam';
|
||||
import type * as sqs from '../../../aws-sqs';
|
||||
import * as sfn from '../../../aws-stepfunctions';
|
||||
import * as cdk from '../../../core';
|
||||
interface SqsSendMessageOptions {
|
||||
/**
|
||||
* The SQS queue that messages will be sent to
|
||||
*/
|
||||
readonly queue: sqs.IQueue;
|
||||
/**
|
||||
* The text message to send to the queue.
|
||||
*/
|
||||
readonly messageBody: sfn.TaskInput;
|
||||
/**
|
||||
* The length of time, for which to delay a message.
|
||||
* Messages that you send to the queue remain invisible to consumers for the duration
|
||||
* of the delay period. The maximum allowed delay is 15 minutes.
|
||||
*
|
||||
* @default - delay set on the queue. If a delay is not set on the queue,
|
||||
* messages are sent immediately (0 seconds).
|
||||
*/
|
||||
readonly delay?: cdk.Duration;
|
||||
/**
|
||||
* The token used for deduplication of sent messages.
|
||||
* Any messages sent with the same deduplication ID are accepted successfully,
|
||||
* but aren't delivered during the 5-minute deduplication interval.
|
||||
*
|
||||
* @default - None
|
||||
*/
|
||||
readonly messageDeduplicationId?: string;
|
||||
/**
|
||||
* The tag that specifies that a message belongs to a specific message group.
|
||||
*
|
||||
* Messages that belong to the same message group are processed in a FIFO manner.
|
||||
* Messages in different message groups might be processed out of order.
|
||||
*
|
||||
* @default - None
|
||||
*/
|
||||
readonly messageGroupId?: string;
|
||||
}
|
||||
/**
|
||||
* Properties for sending a message to an SQS queue using JSONPath
|
||||
*/
|
||||
export interface SqsSendMessageJsonPathProps extends sfn.TaskStateJsonPathBaseProps, SqsSendMessageOptions {
|
||||
}
|
||||
/**
|
||||
* Properties for sending a message to an SQS queue using JSONata
|
||||
*/
|
||||
export interface SqsSendMessageJsonataProps extends sfn.TaskStateJsonataBaseProps, SqsSendMessageOptions {
|
||||
}
|
||||
/**
|
||||
* Properties for sending a message to an SQS queue
|
||||
*/
|
||||
export interface SqsSendMessageProps extends sfn.TaskStateBaseProps, SqsSendMessageOptions {
|
||||
}
|
||||
/**
|
||||
* A StepFunctions Task to send messages to SQS queue.
|
||||
*/
|
||||
export declare class SqsSendMessage extends sfn.TaskStateBase {
|
||||
private readonly props;
|
||||
/**
|
||||
* A StepFunctions Task to send messages to SQS queue using JSONPath.
|
||||
*/
|
||||
static jsonPath(scope: Construct, id: string, props: SqsSendMessageJsonPathProps): SqsSendMessage;
|
||||
/**
|
||||
* A StepFunctions Task to send messages to SQS queue using JSONata.
|
||||
*/
|
||||
static jsonata(scope: Construct, id: string, props: SqsSendMessageJsonataProps): SqsSendMessage;
|
||||
private static readonly SUPPORTED_INTEGRATION_PATTERNS;
|
||||
protected readonly taskMetrics?: sfn.TaskMetricsConfig;
|
||||
protected readonly taskPolicies?: iam.PolicyStatement[];
|
||||
private readonly integrationPattern;
|
||||
constructor(scope: Construct, id: string, props: SqsSendMessageProps);
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
protected _renderTask(topLevelQueryLanguage?: sfn.QueryLanguage): any;
|
||||
}
|
||||
export {};
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/sqs/send-message.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/sqs/send-message.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SqsSendMessage=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},sfn=()=>{var tmp=require("../../../aws-stepfunctions");return sfn=()=>tmp,tmp},cdk=()=>{var tmp=require("../../../core");return cdk=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp},task_utils_1=()=>{var tmp=require("../private/task-utils");return task_utils_1=()=>tmp,tmp};class SqsSendMessage extends sfn().TaskStateBase{props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.SqsSendMessage",version:"2.252.0"};static jsonPath(scope,id,props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_tasks_SqsSendMessageJsonPathProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.jsonPath),error}return new SqsSendMessage(scope,id,props)}static jsonata(scope,id,props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_tasks_SqsSendMessageJsonataProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.jsonata),error}return new SqsSendMessage(scope,id,{...props,queryLanguage:sfn().QueryLanguage.JSONATA})}static SUPPORTED_INTEGRATION_PATTERNS=[sfn().IntegrationPattern.REQUEST_RESPONSE,sfn().IntegrationPattern.WAIT_FOR_TASK_TOKEN];taskMetrics;taskPolicies;integrationPattern;constructor(scope,id,props){super(scope,id,props),this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_tasks_SqsSendMessageProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,SqsSendMessage),error}if(this.integrationPattern=props.integrationPattern??sfn().IntegrationPattern.REQUEST_RESPONSE,(0,task_utils_1().validatePatternSupported)(this.integrationPattern,SqsSendMessage.SUPPORTED_INTEGRATION_PATTERNS),props.integrationPattern===sfn().IntegrationPattern.WAIT_FOR_TASK_TOKEN&&!sfn().FieldUtils.containsTaskToken(props.messageBody))throw new(cdk()).ValidationError((0,literal_string_1().lit)`TaskTokenRequired`,"Task Token is required in `messageBody` Use JsonPath.taskToken to set the token.",this);this.taskPolicies=[new(iam()).PolicyStatement({actions:["sqs:SendMessage"],resources:[this.props.queue.queueArn]})],this.props.queue.encryptionMasterKey&&this.taskPolicies.push(new(iam()).PolicyStatement({actions:["kms:Decrypt","kms:GenerateDataKey*"],resources:[this.props.queue.encryptionMasterKey.keyArn]}))}_renderTask(topLevelQueryLanguage){const queryLanguage=sfn()._getActualQueryLanguage(topLevelQueryLanguage,this.props.queryLanguage);return{Resource:(0,task_utils_1().integrationResourceArn)("sqs","sendMessage",this.integrationPattern),...this._renderParametersOrArguments({QueueUrl:this.props.queue.queueUrl,MessageBody:this.props.messageBody.value,DelaySeconds:this.props.delay?.toSeconds(),MessageDeduplicationId:this.props.messageDeduplicationId,MessageGroupId:this.props.messageGroupId},queryLanguage)}}}exports.SqsSendMessage=SqsSendMessage;
|
||||
3
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/sqs/send-to-queue.d.ts
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/sqs/send-to-queue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import type * as sqs from '../../../aws-sqs';
|
||||
import * as sfn from '../../../aws-stepfunctions';
|
||||
import type { Duration } from '../../../core';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/sqs/send-to-queue.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/sqs/send-to-queue.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SendToQueue=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},sfn=()=>{var tmp=require("../../../aws-stepfunctions");return sfn=()=>tmp,tmp},core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp},resource_arn_suffix_1=()=>{var tmp=require("../resource-arn-suffix");return resource_arn_suffix_1=()=>tmp,tmp};class SendToQueue{queue;props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.SendToQueue",version:"2.252.0"};integrationPattern;constructor(queue,props){if(this.queue=queue,this.props=props,this.integrationPattern=props.integrationPattern||sfn().ServiceIntegrationPattern.FIRE_AND_FORGET,![sfn().ServiceIntegrationPattern.FIRE_AND_FORGET,sfn().ServiceIntegrationPattern.WAIT_FOR_TASK_TOKEN].includes(this.integrationPattern))throw new(core_1()).ValidationError((0,literal_string_1().lit)`InvalidServiceIntegrationPattern`,`Invalid Service Integration Pattern: ${this.integrationPattern} is not supported to call SQS.`,queue);if(props.integrationPattern===sfn().ServiceIntegrationPattern.WAIT_FOR_TASK_TOKEN&&!sfn().FieldUtils.containsTaskToken(props.messageBody))throw new(core_1()).ValidationError((0,literal_string_1().lit)`TaskTokenMissingMessageBody`,"Task Token is missing in messageBody (pass JsonPath.taskToken somewhere in messageBody)",queue)}bind(_task){return{resourceArn:(0,resource_arn_suffix_1().getResourceArn)("sqs","sendMessage",this.integrationPattern),policyStatements:[new(iam()).PolicyStatement({actions:["sqs:SendMessage"],resources:[this.queue.queueArn]})],parameters:{QueueUrl:this.queue.queueUrl,MessageBody:this.props.messageBody.value,DelaySeconds:this.props.delay&&this.props.delay.toSeconds(),MessageDeduplicationId:this.props.messageDeduplicationId,MessageGroupId:this.props.messageGroupId}}}}exports.SendToQueue=SendToQueue;
|
||||
Reference in New Issue
Block a user