interface CfnStateMachineProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.SAM.CfnStateMachineProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssam#CfnStateMachineProps |
Java | software.amazon.awscdk.services.sam.CfnStateMachineProps |
Python | aws_cdk.aws_sam.CfnStateMachineProps |
TypeScript | aws-cdk-lib » aws_sam » CfnStateMachineProps |
Properties for defining a CfnStateMachine.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
declare const definition: any;
const cfnStateMachineProps: sam.CfnStateMachineProps = {
definition: definition,
definitionSubstitutions: {
definitionSubstitutionsKey: 'definitionSubstitutions',
},
definitionUri: 'definitionUri',
events: {
eventsKey: {
properties: {
method: 'method',
path: 'path',
// the properties below are optional
restApiId: 'restApiId',
},
type: 'type',
},
},
logging: {
destinations: [{
cloudWatchLogsLogGroup: {
logGroupArn: 'logGroupArn',
},
}],
includeExecutionData: false,
level: 'level',
},
name: 'name',
permissionsBoundaries: 'permissionsBoundaries',
policies: 'policies',
role: 'role',
tags: {
tagsKey: 'tags',
},
tracing: {
enabled: false,
},
type: 'type',
};
Properties
| Name | Type | Description |
|---|---|---|
| definition? | any | |
| definition | { [string]: string } | IResolvable | |
| definition | string | IResolvable | S3 | |
| events? | IResolvable | { [string]: IResolvable | Event } | |
| logging? | IResolvable | Logging | |
| name? | string | |
| permissions | string | |
| policies? | string | IResolvable | IAMPolicy | (string | IResolvable | IAMPolicy | SAMPolicy)[] | |
| role? | string | |
| tags? | { [string]: string } | |
| tracing? | IResolvable | Tracing | |
| type? | string |
definition?
Type:
any
(optional)
definitionSubstitutions?
Type:
{ [string]: string } | IResolvable
(optional)
definitionUri?
Type:
string | IResolvable | S3
(optional)
events?
Type:
IResolvable | { [string]: IResolvable | Event }
(optional)
logging?
Type:
IResolvable | Logging
(optional)
name?
Type:
string
(optional)
permissionsBoundaries?
Type:
string
(optional)
policies?
Type:
string | IResolvable | IAMPolicy | (string | IResolvable | IAMPolicy | SAMPolicy)[]
(optional)
role?
Type:
string
(optional)
tags?
Type:
{ [string]: string }
(optional)
tracing?
Type:
IResolvable | Tracing
(optional)
type?
Type:
string
(optional)

.NET
Go
Java
Python
TypeScript