FileDefinitionBody 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 fileDefinitionBody = stepfunctions.FileDefinitionBody.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
file_definition_body = stepfunctions.FileDefinitionBody.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 fileDefinitionBody = FileDefinitionBody.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 fileDefinitionBody = FileDefinitionBody.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
fileDefinitionBody := awscdk.Aws_stepfunctions.FileDefinitionBody_FromChainable(chainable)
Initializer
ts
new FileDefinitionBody(path: string, options?: AssetOptions)
python
FileDefinitionBody(path: str, options: typing.Optional[AssetOptions] = None)
java
new FileDefinitionBody(String path, AssetOptions options)
csharp
new FileDefinitionBody(string path, AssetOptions? options = null)
go
NewFileDefinitionBody(Path *string, Options AssetOptions)
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#