Skip to content
v2.278.0

S3LocationProperty Struct ​

Defines the S3 bucket location where a state machine definition is stored.

The state machine definition must be a JSON or YAML file.

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';
const s3LocationProperty: stepfunctions.CfnStateMachine.S3LocationProperty = {
  bucket: 'bucket',
  key: 'key',

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

s3_location_property = stepfunctions.CfnStateMachine.S3LocationProperty(
    bucket="bucket",
    key="key",

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

S3LocationProperty s3LocationProperty = S3LocationProperty.builder()
        .bucket("bucket")
        .key("key")

        // the properties below are optional
        .version("version")
        .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 s3LocationProperty = new S3LocationProperty {
    Bucket = "bucket",
    Key = "key",

    // the properties below are optional
    Version = "version"
};
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"

s3LocationProperty := &S3LocationProperty{
	Bucket: jsii.String("bucket"),
	Key: jsii.String("key"),

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

Properties ​

bucketstringbucketstrbucketStringBucketstringBucket*string required #
The name of the S3 bucket where the state machine definition JSON or YAML file is stored.
keystringkeystrkeyStringKeystringKey*string required #
The name of the state machine definition file (Amazon S3 object name).
versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string #
For versioning-enabled buckets, a specific version of the state machine definition.