# S3LocationProperty

Struct · External

The S3 location of the app block.

- 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_appstream as appstream } from 'aws-cdk-lib';
const s3LocationProperty: appstream.CfnAppBlock.S3LocationProperty = {
  s3Bucket: 's3Bucket',

  // the properties below are optional
  s3Key: 's3Key',
};
```

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_appstream as appstream

s3_location_property = appstream.CfnAppBlock.S3LocationProperty(
    s3_bucket="s3Bucket",

    # the properties below are optional
    s3_key="s3Key"
)
```

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

S3LocationProperty s3LocationProperty = S3LocationProperty.builder()
        .s3Bucket("s3Bucket")

        // the properties below are optional
        .s3Key("s3Key")
        .build();
```

C#:

```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.AppStream;

var s3LocationProperty = new S3LocationProperty {
    S3Bucket = "s3Bucket",

    // the properties below are optional
    S3Key = "s3Key"
};
```

Go:

```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{
	S3Bucket: jsii.String("s3Bucket"),

	// the properties below are optional
	S3Key: jsii.String("s3Key"),
}
```

## Properties

- `s3Bucket`: string (required) — The S3 bucket of the app block.

- `s3Key`: string — The S3 key of the S3 object of the virtual hard disk.

  This is required when it's used by `SetupScriptDetails` and `PostSetupScriptDetails` .
