agent-claw: automated task changes
This commit is contained in:
78
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.d.ts
generated
vendored
Normal file
78
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
import type * as sfn from '../../../aws-stepfunctions';
|
||||
/** Http Methods that API Gateway supports */
|
||||
export declare enum HttpMethod {
|
||||
/** Retrieve data from a server at the specified resource */
|
||||
GET = "GET",
|
||||
/** Send data to the API endpoint to create or udpate a resource */
|
||||
POST = "POST",
|
||||
/** Send data to the API endpoint to update or create a resource */
|
||||
PUT = "PUT",
|
||||
/** Delete the resource at the specified endpoint */
|
||||
DELETE = "DELETE",
|
||||
/** Apply partial modifications to the resource */
|
||||
PATCH = "PATCH",
|
||||
/** Retrieve data from a server at the specified resource without the response body */
|
||||
HEAD = "HEAD",
|
||||
/** Return data describing what other methods and operations the server supports */
|
||||
OPTIONS = "OPTIONS"
|
||||
}
|
||||
/**
|
||||
* The authentication method used to call the endpoint
|
||||
*/
|
||||
export declare enum AuthType {
|
||||
/** Call the API direclty with no authorization method */
|
||||
NO_AUTH = "NO_AUTH",
|
||||
/** Use the IAM role associated with the current state machine for authorization */
|
||||
IAM_ROLE = "IAM_ROLE",
|
||||
/** Use the resource policy of the API for authorization */
|
||||
RESOURCE_POLICY = "RESOURCE_POLICY"
|
||||
}
|
||||
/**
|
||||
* Base CallApiGatewayEdnpoint Task Props
|
||||
*/
|
||||
export interface CallApiGatewayEndpointBaseOptions {
|
||||
/**
|
||||
* Http method for the API
|
||||
*/
|
||||
readonly method: HttpMethod;
|
||||
/**
|
||||
* HTTP request information that does not relate to contents of the request
|
||||
* @default - No headers
|
||||
*/
|
||||
readonly headers?: sfn.TaskInput;
|
||||
/**
|
||||
* Path parameters appended after API endpoint
|
||||
* @default - No path
|
||||
*/
|
||||
readonly apiPath?: string;
|
||||
/**
|
||||
* Query strings attached to end of request
|
||||
* @default - No query parameters
|
||||
*/
|
||||
readonly queryParameters?: sfn.TaskInput;
|
||||
/**
|
||||
* HTTP Request body
|
||||
* @default - No request body
|
||||
*/
|
||||
readonly requestBody?: sfn.TaskInput;
|
||||
/**
|
||||
* Authentication methods
|
||||
* @default AuthType.NO_AUTH
|
||||
*/
|
||||
readonly authType?: AuthType;
|
||||
}
|
||||
/**
|
||||
* Base CallApiGatewayEndpoint Task Props
|
||||
*/
|
||||
export interface CallApiGatewayEndpointJsonPathBaseProps extends sfn.TaskStateJsonPathBaseProps, CallApiGatewayEndpointBaseOptions {
|
||||
}
|
||||
/**
|
||||
* Base CallApiGatewayEndpoint Task Props
|
||||
*/
|
||||
export interface CallApiGatewayEndpointJsonataBaseProps extends sfn.TaskStateJsonataBaseProps, CallApiGatewayEndpointBaseOptions {
|
||||
}
|
||||
/**
|
||||
* Base CallApiGatewayEndpoint Task Props
|
||||
*/
|
||||
export interface CallApiGatewayEndpointBaseProps extends sfn.TaskStateBaseProps, CallApiGatewayEndpointBaseOptions {
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base-types.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuthType=exports.HttpMethod=void 0;var HttpMethod;(function(HttpMethod2){HttpMethod2.GET="GET",HttpMethod2.POST="POST",HttpMethod2.PUT="PUT",HttpMethod2.DELETE="DELETE",HttpMethod2.PATCH="PATCH",HttpMethod2.HEAD="HEAD",HttpMethod2.OPTIONS="OPTIONS"})(HttpMethod||(exports.HttpMethod=HttpMethod={}));var AuthType;(function(AuthType2){AuthType2.NO_AUTH="NO_AUTH",AuthType2.IAM_ROLE="IAM_ROLE",AuthType2.RESOURCE_POLICY="RESOURCE_POLICY"})(AuthType||(exports.AuthType=AuthType={}));
|
||||
22
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base.d.ts
generated
vendored
Normal file
22
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type { CallApiGatewayEndpointBaseProps } from './base-types';
|
||||
import * as iam from '../../../aws-iam';
|
||||
import * as sfn from '../../../aws-stepfunctions';
|
||||
/**
|
||||
* Base CallApiGatewayEndpoint Task
|
||||
* @internal
|
||||
*/
|
||||
export declare abstract class CallApiGatewayEndpointBase extends sfn.TaskStateBase {
|
||||
private static readonly SUPPORTED_INTEGRATION_PATTERNS;
|
||||
private readonly baseProps;
|
||||
private readonly integrationPattern;
|
||||
protected abstract readonly apiEndpoint: string;
|
||||
protected abstract readonly arnForExecuteApi: string;
|
||||
protected abstract readonly stageName?: string;
|
||||
constructor(scope: Construct, id: string, props: CallApiGatewayEndpointBaseProps);
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
protected _renderTask(topLevelQueryLanguage?: sfn.QueryLanguage): any;
|
||||
protected createPolicyStatements(): iam.PolicyStatement[];
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/base.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CallApiGatewayEndpointBase=void 0;var base_types_1=()=>{var tmp=require("./base-types");return base_types_1=()=>tmp,tmp},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},task_utils_1=()=>{var tmp=require("../private/task-utils");return task_utils_1=()=>tmp,tmp};class CallApiGatewayEndpointBase extends sfn().TaskStateBase{static SUPPORTED_INTEGRATION_PATTERNS=[sfn().IntegrationPattern.REQUEST_RESPONSE,sfn().IntegrationPattern.WAIT_FOR_TASK_TOKEN];baseProps;integrationPattern;constructor(scope,id,props){if(super(scope,id,props),this.baseProps=props,this.integrationPattern=props.integrationPattern??sfn().IntegrationPattern.REQUEST_RESPONSE,(0,task_utils_1().validatePatternSupported)(this.integrationPattern,CallApiGatewayEndpointBase.SUPPORTED_INTEGRATION_PATTERNS),this.integrationPattern===sfn().IntegrationPattern.WAIT_FOR_TASK_TOKEN&&!sfn().FieldUtils.containsTaskToken(this.baseProps.headers))throw new(core_1()).ValidationError((0,literal_string_1().lit)`IsRequiredTaskTokenRequired`,"Task Token is required in `headers` for WAIT_FOR_TASK_TOKEN pattern. Use JsonPath.taskToken to set the token.",this)}_renderTask(topLevelQueryLanguage){const queryLanguage=sfn()._getActualQueryLanguage(topLevelQueryLanguage,this.baseProps.queryLanguage);return{Resource:(0,task_utils_1().integrationResourceArn)("apigateway","invoke",this.integrationPattern),...this._renderParametersOrArguments({ApiEndpoint:this.apiEndpoint,Method:this.baseProps.method,Headers:this.baseProps.headers?.value,Stage:this.stageName,Path:this.baseProps.apiPath,QueryParameters:this.baseProps.queryParameters?.value,RequestBody:this.baseProps.requestBody?.value,AuthType:this.baseProps.authType?this.baseProps.authType:"NO_AUTH"},queryLanguage)}}createPolicyStatements(){return this.baseProps.authType===base_types_1().AuthType.NO_AUTH?[]:[new(iam()).PolicyStatement({resources:[this.arnForExecuteApi],actions:["execute-api:Invoke"]})]}}exports.CallApiGatewayEndpointBase=CallApiGatewayEndpointBase;
|
||||
71
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-http-api.d.ts
generated
vendored
Normal file
71
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-http-api.d.ts
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import { CallApiGatewayEndpointBase } from './base';
|
||||
import type { CallApiGatewayEndpointBaseProps, CallApiGatewayEndpointJsonataBaseProps, CallApiGatewayEndpointJsonPathBaseProps } from './base-types';
|
||||
import type * as iam from '../../../aws-iam';
|
||||
import * as sfn from '../../../aws-stepfunctions';
|
||||
import * as cdk from '../../../core';
|
||||
/**
|
||||
* Base properties for calling an HTTP API Endpoint
|
||||
*/
|
||||
export interface CallApiGatewayHttpApiEndpointOptions {
|
||||
/**
|
||||
* The Id of the API to call
|
||||
*/
|
||||
readonly apiId: string;
|
||||
/**
|
||||
* The Stack in which the API is defined
|
||||
*/
|
||||
readonly apiStack: cdk.Stack;
|
||||
/**
|
||||
* Name of the stage where the API is deployed to in API Gateway
|
||||
* @default '$default'
|
||||
*/
|
||||
readonly stageName?: string;
|
||||
}
|
||||
/**
|
||||
* Properties for calling an HTTP API Endpoint using JSONPath
|
||||
*/
|
||||
export interface CallApiGatewayHttpApiEndpointJsonPathProps extends CallApiGatewayEndpointJsonPathBaseProps, CallApiGatewayHttpApiEndpointOptions {
|
||||
}
|
||||
/**
|
||||
* Properties for calling an HTTP API Endpoint using JSONata
|
||||
*/
|
||||
export interface CallApiGatewayHttpApiEndpointJsonataProps extends CallApiGatewayEndpointJsonataBaseProps, CallApiGatewayHttpApiEndpointOptions {
|
||||
}
|
||||
/**
|
||||
* Properties for calling an HTTP API Endpoint
|
||||
*/
|
||||
export interface CallApiGatewayHttpApiEndpointProps extends CallApiGatewayEndpointBaseProps, CallApiGatewayHttpApiEndpointOptions {
|
||||
}
|
||||
/**
|
||||
* Call HTTP API endpoint as a Task
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-api-gateway.html
|
||||
*/
|
||||
export declare class CallApiGatewayHttpApiEndpoint extends CallApiGatewayEndpointBase {
|
||||
private readonly props;
|
||||
/**
|
||||
* Uniquely identifies this class.
|
||||
*/
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* Call HTTP API endpoint as a Task using JSONPath
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-api-gateway.html
|
||||
*/
|
||||
static jsonPath(scope: Construct, id: string, props: CallApiGatewayHttpApiEndpointJsonPathProps): CallApiGatewayHttpApiEndpoint;
|
||||
/**
|
||||
* Call HTTP API endpoint as a Task using JSONata
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-api-gateway.html
|
||||
*/
|
||||
static jsonata(scope: Construct, id: string, props: CallApiGatewayHttpApiEndpointJsonataProps): CallApiGatewayHttpApiEndpoint;
|
||||
protected readonly taskMetrics?: sfn.TaskMetricsConfig | undefined;
|
||||
protected readonly taskPolicies?: iam.PolicyStatement[] | undefined;
|
||||
protected readonly apiEndpoint: string;
|
||||
protected readonly arnForExecuteApi: string;
|
||||
protected readonly stageName?: string;
|
||||
constructor(scope: Construct, id: string, props: CallApiGatewayHttpApiEndpointProps);
|
||||
private getApiEndpoint;
|
||||
private getArnForExecuteApi;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-http-api.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-http-api.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
128
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-rest-api.d.ts
generated
vendored
Normal file
128
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-rest-api.d.ts
generated
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import { CallApiGatewayEndpointBase } from './base';
|
||||
import type { CallApiGatewayEndpointBaseProps, CallApiGatewayEndpointJsonataBaseProps, CallApiGatewayEndpointJsonPathBaseProps } from './base-types';
|
||||
import type * as apigateway from '../../../aws-apigateway';
|
||||
import type * as iam from '../../../aws-iam';
|
||||
import * as sfn from '../../../aws-stepfunctions';
|
||||
/**
|
||||
* Base properties for calling an REST API Endpoint
|
||||
*/
|
||||
export interface CallApiGatewayRestApiEndpointOptions {
|
||||
/**
|
||||
* API to call
|
||||
*/
|
||||
readonly api: apigateway.IRestApi;
|
||||
/**
|
||||
* Name of the stage where the API is deployed to in API Gateway
|
||||
*/
|
||||
readonly stageName: string;
|
||||
/**
|
||||
* Specify a custom Region where the API is deployed, e.g. 'us-east-1'.
|
||||
*
|
||||
* @default - Uses the Region of the stack containing the `api`.
|
||||
*/
|
||||
readonly region?: string;
|
||||
}
|
||||
/**
|
||||
* Properties for calling an REST API Endpoint using JSONPath
|
||||
*/
|
||||
export interface CallApiGatewayRestApiEndpointJsonPathProps extends CallApiGatewayEndpointJsonPathBaseProps, CallApiGatewayRestApiEndpointOptions {
|
||||
}
|
||||
/**
|
||||
* Properties for calling an REST API Endpoint using JSONata
|
||||
*/
|
||||
export interface CallApiGatewayRestApiEndpointJsonataProps extends CallApiGatewayEndpointJsonataBaseProps, CallApiGatewayRestApiEndpointOptions {
|
||||
}
|
||||
/**
|
||||
* Properties for calling an REST API Endpoint
|
||||
*/
|
||||
export interface CallApiGatewayRestApiEndpointProps extends CallApiGatewayEndpointBaseProps, CallApiGatewayRestApiEndpointOptions {
|
||||
}
|
||||
/**
|
||||
* Call REST API endpoint as a Task
|
||||
*
|
||||
* Be aware that the header values must be arrays. When passing the Task Token
|
||||
* in the headers field `WAIT_FOR_TASK_TOKEN` integration, use
|
||||
* `JsonPath.array()` to wrap the token in an array:
|
||||
*
|
||||
* ```ts
|
||||
* import * as apigateway from 'aws-cdk-lib/aws-apigateway';
|
||||
* declare const api: apigateway.RestApi;
|
||||
*
|
||||
* new tasks.CallApiGatewayRestApiEndpoint(this, 'Endpoint', {
|
||||
* api,
|
||||
* stageName: 'Stage',
|
||||
* method: tasks.HttpMethod.PUT,
|
||||
* integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
|
||||
* headers: sfn.TaskInput.fromObject({
|
||||
* TaskToken: sfn.JsonPath.array(sfn.JsonPath.taskToken),
|
||||
* }),
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-api-gateway.html
|
||||
*/
|
||||
export declare class CallApiGatewayRestApiEndpoint extends CallApiGatewayEndpointBase {
|
||||
private readonly props;
|
||||
/**
|
||||
* Uniquely identifies this class.
|
||||
*/
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* Call REST API endpoint as a Task using JSONPath
|
||||
*
|
||||
* Be aware that the header values must be arrays. When passing the Task Token
|
||||
* in the headers field `WAIT_FOR_TASK_TOKEN` integration, use
|
||||
* `JsonPath.array()` to wrap the token in an array:
|
||||
*
|
||||
* ```ts
|
||||
* import * as apigateway from 'aws-cdk-lib/aws-apigateway';
|
||||
* declare const api: apigateway.RestApi;
|
||||
*
|
||||
* tasks.CallApiGatewayRestApiEndpoint.jsonPath(this, 'Endpoint', {
|
||||
* api,
|
||||
* stageName: 'Stage',
|
||||
* method: tasks.HttpMethod.PUT,
|
||||
* integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
|
||||
* headers: sfn.TaskInput.fromObject({
|
||||
* TaskToken: sfn.JsonPath.array(sfn.JsonPath.taskToken),
|
||||
* }),
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-api-gateway.html
|
||||
*/
|
||||
static jsonPath(scope: Construct, id: string, props: CallApiGatewayRestApiEndpointJsonPathProps): CallApiGatewayRestApiEndpoint;
|
||||
/**
|
||||
* Call REST API endpoint as a Task using JSONata
|
||||
*
|
||||
* Be aware that the header values must be arrays. When passing the Task Token
|
||||
* in the headers field `WAIT_FOR_TASK_TOKEN` integration, use
|
||||
* `JsonPath.array()` to wrap the token in an array:
|
||||
*
|
||||
* ```ts
|
||||
* import * as apigateway from 'aws-cdk-lib/aws-apigateway';
|
||||
* declare const api: apigateway.RestApi;
|
||||
*
|
||||
* tasks.CallApiGatewayRestApiEndpoint.jsonata(this, 'Endpoint', {
|
||||
* api,
|
||||
* stageName: 'Stage',
|
||||
* method: tasks.HttpMethod.PUT,
|
||||
* integrationPattern: sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
|
||||
* headers: sfn.TaskInput.fromObject({
|
||||
* TaskToken: '{% States.Array($states.context.taskToken) %}',
|
||||
* }),
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/step-functions/latest/dg/connect-api-gateway.html
|
||||
*/
|
||||
static jsonata(scope: Construct, id: string, props: CallApiGatewayRestApiEndpointJsonataProps): CallApiGatewayRestApiEndpoint;
|
||||
protected readonly taskMetrics?: sfn.TaskMetricsConfig | undefined;
|
||||
protected readonly taskPolicies?: iam.PolicyStatement[] | undefined;
|
||||
protected readonly apiEndpoint: string;
|
||||
protected readonly arnForExecuteApi: string;
|
||||
protected readonly stageName?: string;
|
||||
constructor(scope: Construct, id: string, props: CallApiGatewayRestApiEndpointProps);
|
||||
private getApiEndpoint;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-rest-api.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/call-rest-api.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __esDecorate=exports&&exports.__esDecorate||function(ctor,descriptorIn,decorators,contextIn,initializers,extraInitializers){function accept(f){if(f!==void 0&&typeof f!="function")throw new TypeError("Function expected");return f}for(var kind=contextIn.kind,key=kind==="getter"?"get":kind==="setter"?"set":"value",target=!descriptorIn&&ctor?contextIn.static?ctor:ctor.prototype:null,descriptor=descriptorIn||(target?Object.getOwnPropertyDescriptor(target,contextIn.name):{}),_,done=!1,i=decorators.length-1;i>=0;i--){var context={};for(var p in contextIn)context[p]=p==="access"?{}:contextIn[p];for(var p in contextIn.access)context.access[p]=contextIn.access[p];context.addInitializer=function(f){if(done)throw new TypeError("Cannot add initializers after decoration has completed");extraInitializers.push(accept(f||null))};var result=(0,decorators[i])(kind==="accessor"?{get:descriptor.get,set:descriptor.set}:descriptor[key],context);if(kind==="accessor"){if(result===void 0)continue;if(result===null||typeof result!="object")throw new TypeError("Object expected");(_=accept(result.get))&&(descriptor.get=_),(_=accept(result.set))&&(descriptor.set=_),(_=accept(result.init))&&initializers.unshift(_)}else(_=accept(result))&&(kind==="field"?initializers.unshift(_):descriptor[key]=_)}target&&Object.defineProperty(target,contextIn.name,descriptor),done=!0},__runInitializers=exports&&exports.__runInitializers||function(thisArg,initializers,value){for(var useValue=arguments.length>2,i=0;i<initializers.length;i++)value=useValue?initializers[i].call(thisArg,value):initializers[i].call(thisArg);return useValue?value:void 0};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CallApiGatewayRestApiEndpoint=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},sfn=()=>{var tmp=require("../../../aws-stepfunctions");return sfn=()=>tmp,tmp},cdk=()=>{var tmp=require("../../../core");return cdk=()=>tmp,tmp},prop_injectable_1=()=>{var tmp=require("../../../core/lib/prop-injectable");return prop_injectable_1=()=>tmp,tmp};let CallApiGatewayRestApiEndpoint=(()=>{let _classDecorators=[prop_injectable_1().propertyInjectable],_classDescriptor,_classExtraInitializers=[],_classThis,_classSuper=base_1().CallApiGatewayEndpointBase;var CallApiGatewayRestApiEndpoint2=class extends _classSuper{static{_classThis=this}static{const _metadata=typeof Symbol=="function"&&Symbol.metadata?Object.create(_classSuper[Symbol.metadata]??null):void 0;__esDecorate(null,_classDescriptor={value:_classThis},_classDecorators,{kind:"class",name:_classThis.name,metadata:_metadata},null,_classExtraInitializers),CallApiGatewayRestApiEndpoint2=_classThis=_classDescriptor.value,_metadata&&Object.defineProperty(_classThis,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:_metadata})}props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.CallApiGatewayRestApiEndpoint",version:"2.252.0"};static PROPERTY_INJECTION_ID="aws-cdk-lib.aws-stepfunctions-tasks.CallApiGatewayRestApiEndpoint";static jsonPath(scope,id,props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_tasks_CallApiGatewayRestApiEndpointJsonPathProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.jsonPath),error}return new CallApiGatewayRestApiEndpoint2(scope,id,props)}static jsonata(scope,id,props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_tasks_CallApiGatewayRestApiEndpointJsonataProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.jsonata),error}return new CallApiGatewayRestApiEndpoint2(scope,id,{...props,queryLanguage:sfn().QueryLanguage.JSONATA})}taskMetrics;taskPolicies;apiEndpoint;arnForExecuteApi;stageName;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,CallApiGatewayRestApiEndpoint2),error}this.apiEndpoint=this.getApiEndpoint(props.region),this.arnForExecuteApi=props.api.arnForExecuteApi(props.method,props.apiPath,props.stageName),this.stageName=props.stageName,this.taskPolicies=this.createPolicyStatements()}getApiEndpoint(region){const apiStack=cdk().Stack.of(this.props.api);return`${this.props.api.restApiId}.execute-api.${region??apiStack.region}.${apiStack.urlSuffix}`}static{__runInitializers(_classThis,_classExtraInitializers)}};return CallApiGatewayRestApiEndpoint2=_classThis})();exports.CallApiGatewayRestApiEndpoint=CallApiGatewayRestApiEndpoint;
|
||||
3
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/index.d.ts
generated
vendored
Normal file
3
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './base-types';
|
||||
export * from './call-rest-api';
|
||||
export * from './call-http-api';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-stepfunctions-tasks/lib/apigateway/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.HttpMethod=void 0,Object.defineProperty(exports,_noFold="HttpMethod",{enumerable:!0,configurable:!0,get:()=>{var value=require("./base-types").HttpMethod;return Object.defineProperty(exports,_noFold="HttpMethod",{enumerable:!0,configurable:!0,value}),value}}),exports.AuthType=void 0,Object.defineProperty(exports,_noFold="AuthType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./base-types").AuthType;return Object.defineProperty(exports,_noFold="AuthType",{enumerable:!0,configurable:!0,value}),value}}),exports.CallApiGatewayRestApiEndpoint=void 0,Object.defineProperty(exports,_noFold="CallApiGatewayRestApiEndpoint",{enumerable:!0,configurable:!0,get:()=>{var value=require("./call-rest-api").CallApiGatewayRestApiEndpoint;return Object.defineProperty(exports,_noFold="CallApiGatewayRestApiEndpoint",{enumerable:!0,configurable:!0,value}),value}}),exports.CallApiGatewayHttpApiEndpoint=void 0,Object.defineProperty(exports,_noFold="CallApiGatewayHttpApiEndpoint",{enumerable:!0,configurable:!0,get:()=>{var value=require("./call-http-api").CallApiGatewayHttpApiEndpoint;return Object.defineProperty(exports,_noFold="CallApiGatewayHttpApiEndpoint",{enumerable:!0,configurable:!0,value}),value}});
|
||||
Reference in New Issue
Block a user