Skip to content
v2.278.0

DefinitionConfig Struct ​

Partial object from the StateMachine L1 construct properties containing definition information.

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 definition: any;
const definitionConfig: stepfunctions.DefinitionConfig = {
  definition: definition,
  definitionS3Location: {
    bucket: 'bucket',
    key: 'key',

    // the properties below are optional
    version: 'version',
  },
  definitionString: 'definitionString',
};
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

# definition: Any

definition_config = stepfunctions.DefinitionConfig(
    definition=definition,
    definition_s3_location=stepfunctions.CfnStateMachine.S3LocationProperty(
        bucket="bucket",
        key="key",

        # the properties below are optional
        version="version"
    ),
    definition_string="definitionString"
)
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.*;

Object definition;

DefinitionConfig definitionConfig = DefinitionConfig.builder()
        .definition(definition)
        .definitionS3Location(S3LocationProperty.builder()
                .bucket("bucket")
                .key("key")

                // the properties below are optional
                .version("version")
                .build())
        .definitionString("definitionString")
        .build();
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;

var definition;

var definitionConfig = new DefinitionConfig {
    Definition = definition,
    DefinitionS3Location = new S3LocationProperty {
        Bucket = "bucket",
        Key = "key",

        // the properties below are optional
        Version = "version"
    },
    DefinitionString = "definitionString"
};
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 definition interface{}

definitionConfig := &DefinitionConfig{
	Definition: definition,
	DefinitionS3Location: &S3LocationProperty{
		Bucket: jsii.String("bucket"),
		Key: jsii.String("key"),

		// the properties below are optional
		Version: jsii.String("version"),
	},
	DefinitionString: jsii.String("definitionString"),
}

Properties ​

definitionoptionalanydefinitionoptionalAnydefinitionoptionalObjectDefinitionoptionalobjectDefinitionoptionalinterface{} #
definitionS3LocationoptionalCfnStateMachine.S3LocationPropertydefinition_s3_locationoptionalS3LocationPropertydefinitionS3LocationoptionalS3LocationPropertyDefinitionS3LocationoptionalS3LocationPropertyDefinitionS3LocationoptionalS3LocationProperty #
definitionStringoptionalstringdefinition_stringoptionalstrdefinitionStringoptionalStringDefinitionStringoptionalstringDefinitionStringoptional*string #