Class CallAwsService
A StepFunctions task to call an AWS service API.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CallAwsService : TaskStateBase, IChainable, INextable
Syntax (vb)
Public Class CallAwsService Inherits TaskStateBase Implements IChainable, INextable
Remarks
ExampleMetadata: infused
Examples
Bucket myBucket;
var getObject = new CallAwsService(this, "GetObject", new CallAwsServiceProps {
Service = "s3",
Action = "getObject",
Parameters = new Dictionary<string, object> {
{ "Bucket", myBucket.BucketName },
{ "Key", JsonPath.StringAt("$.key") }
},
IamResources = new [] { myBucket.ArnForObjects("*") }
});
Synopsis
Constructors
| CallAwsService(Construct, string, ICallAwsServiceProps) | A StepFunctions task to call an AWS service API. |
Properties
| TaskMetrics | A StepFunctions task to call an AWS service API. |
| TaskPolicies | A StepFunctions task to call an AWS service API. |
Methods
| JsonPath(Construct, string, ICallAwsServiceJsonPathProps) | A StepFunctions task using JSONPath to call an AWS service API. |
| Jsonata(Construct, string, ICallAwsServiceJsonataProps) | A StepFunctions task using JSONata to call an AWS service API. |
Constructors
CallAwsService(Construct, string, ICallAwsServiceProps)
A StepFunctions task to call an AWS service API.
public CallAwsService(Construct scope, string id, ICallAwsServiceProps props)
Parameters
- scope Construct
- id string
Descriptive identifier for this chainable.
- props ICallAwsServiceProps
Remarks
ExampleMetadata: infused
Properties
TaskMetrics
A StepFunctions task to call an AWS service API.
protected override ITaskMetricsConfig? TaskMetrics { get; }
Property Value
Overrides
Remarks
ExampleMetadata: infused
TaskPolicies
A StepFunctions task to call an AWS service API.
protected override PolicyStatement[]? TaskPolicies { get; }
Property Value
Overrides
Remarks
ExampleMetadata: infused
Methods
JsonPath(Construct, string, ICallAwsServiceJsonPathProps)
A StepFunctions task using JSONPath to call an AWS service API.
public static CallAwsService JsonPath(Construct scope, string id, ICallAwsServiceJsonPathProps props)
Parameters
- scope Construct
- id string
- props ICallAwsServiceJsonPathProps
Returns
Remarks
ExampleMetadata: infused
Jsonata(Construct, string, ICallAwsServiceJsonataProps)
A StepFunctions task using JSONata to call an AWS service API.
public static CallAwsService Jsonata(Construct scope, string id, ICallAwsServiceJsonataProps props)
Parameters
- scope Construct
- id string
- props ICallAwsServiceJsonataProps
Returns
Remarks
ExampleMetadata: infused