# FileLocationProperty

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const fileLocationProperty: iot.CfnOTAUpdate.FileLocationProperty = {
  s3Location: {
    bucket: 'bucket',
    key: 'key',
    version: 'version',
  },
  stream: {
    fileId: 123,
    streamId: 'streamId',
  },
};
```

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_iot as iot

file_location_property = iot.CfnOTAUpdate.FileLocationProperty(
    s3_location=iot.CfnOTAUpdate.S3LocationProperty(
        bucket="bucket",
        key="key",
        version="version"
    ),
    stream=iot.CfnOTAUpdate.StreamProperty(
        file_id=123,
        stream_id="streamId"
    )
)
```

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

FileLocationProperty fileLocationProperty = FileLocationProperty.builder()
        .s3Location(S3LocationProperty.builder()
                .bucket("bucket")
                .key("key")
                .version("version")
                .build())
        .stream(StreamProperty.builder()
                .fileId(123)
                .streamId("streamId")
                .build())
        .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.IoT;

var fileLocationProperty = new FileLocationProperty {
    S3Location = new S3LocationProperty {
        Bucket = "bucket",
        Key = "key",
        Version = "version"
    },
    Stream = new StreamProperty {
        FileId = 123,
        StreamId = "streamId"
    }
};
```

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"

fileLocationProperty := &FileLocationProperty{
	S3Location: &S3LocationProperty{
		Bucket: jsii.String("bucket"),
		Key: jsii.String("key"),
		Version: jsii.String("version"),
	},
	Stream: &StreamProperty{
		FileId: jsii.Number(123),
		StreamId: jsii.String("streamId"),
	},
}
```

## Properties

- `s3Location`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnOTAUpdate.S3LocationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnOTAUpdate.S3LocationProperty.html)

- `stream`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnOTAUpdate.StreamProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnOTAUpdate.StreamProperty.html)
