# S3LocationProperty

- 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_sam as sam } from 'aws-cdk-lib';
const s3LocationProperty: sam.CfnStateMachine.S3LocationProperty = {
  bucket: 'bucket',
  key: 'key',

  // the properties below are optional
  version: 123,
};
```

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_sam as sam

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

    # the properties below are optional
    version=123
)
```

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.sam.*;

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

        // the properties below are optional
        .version(123)
        .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.SAM;

var s3LocationProperty = new S3LocationProperty {
    Bucket = "bucket",
    Key = "key",

    // the properties below are optional
    Version = 123
};
```

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.Number(123),
}
```

## Properties

- `bucket`: string (required)

- `key`: string (required)

- `version`: number
