ChainDefinitionBody Class
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';
declare const chainable: stepfunctions.IChainable;
const chainDefinitionBody = stepfunctions.ChainDefinitionBody.fromChainable(chainable);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_stepfunctions as stepfunctions
# chainable: stepfunctions.IChainable
chain_definition_body = stepfunctions.ChainDefinitionBody.from_chainable(chainable)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.stepfunctions.*;
IChainable chainable;
DefinitionBody chainDefinitionBody = ChainDefinitionBody.fromChainable(chainable);
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions;
IChainable chainable;
var chainDefinitionBody = ChainDefinitionBody.FromChainable(chainable);
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var chainable IChainable
chainDefinitionBody := awscdk.Aws_stepfunctions.ChainDefinitionBody_FromChainable(chainable)
Initializer
ts
new ChainDefinitionBody(chainable: IChainable)
python
ChainDefinitionBody(chainable: IChainable)
java
new ChainDefinitionBody(IChainable chainable)
csharp
new ChainDefinitionBody(IChainable chainable)
go
NewChainDefinitionBody(Chainable IChainable)
Properties
Methods
bind(scope: Construct, _sfnPrincipal: IPrincipal, sfnProps: StateMachineProps, graph?: StateGraph): DefinitionConfigdef bind(self, scope: Construct, _sfn_principal: IPrincipal, sfn_props: StateMachineProps, graph: typing.Optional[StateGraph] = None) -> DefinitionConfigpublic DefinitionConfig bind(Construct scope, IPrincipal _sfnPrincipal, StateMachineProps sfnProps, StateGraph graph)public DefinitionConfig Bind(Construct scope, IPrincipal _sfnPrincipal, StateMachineProps sfnProps, StateGraph? graph = null)func Bind(Scope Construct, _sfnPrincipal IPrincipal, SfnProps StateMachineProps, Graph StateGraph) DefinitionConfig#fromChainable(chainable: IChainable): DefinitionBody@staticmethod def from_chainable(chainable: IChainable) -> DefinitionBodypublic static DefinitionBody fromChainable(IChainable chainable)public static DefinitionBody FromChainable(IChainable chainable)func FromChainable(Chainable IChainable) DefinitionBodystatic#fromFile(path: string, options?: AssetOptions): DefinitionBody@staticmethod def from_file(path: str, options: typing.Optional[AssetOptions] = None) -> DefinitionBodypublic static DefinitionBody fromFile(String path, AssetOptions options)public static DefinitionBody FromFile(string path, AssetOptions? options = null)func FromFile(Path *string, Options AssetOptions) DefinitionBodystatic#fromString(definition: string): DefinitionBody@staticmethod def from_string(definition: str) -> DefinitionBodypublic static DefinitionBody fromString(String definition)public static DefinitionBody FromString(string definition)func FromString(Definition *string) DefinitionBodystatic#