# S3LocationProperty

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

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `bucket`: string (required) — The name of the S3 bucket where the state machine definition JSON or YAML file is stored.

- `key`: string (required) — The name of the state machine definition file (Amazon S3 object name).

- `version`: string — For versioning-enabled buckets, a specific version of the state machine definition.
