FileLocationProperty Struct Added in v2.276.0
Example
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
# 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
// 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();
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"
}
};
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
s3LocationoptionalIResolvable | CfnOTAUpdate.S3LocationPropertys3_locationoptionaltyping.Union[IResolvable, S3LocationProperty]s3LocationoptionalIResolvableS3LocationoptionalIResolvableS3Locationoptionalinterface{}#streamoptionalIResolvable | CfnOTAUpdate.StreamPropertystreamoptionaltyping.Union[IResolvable, StreamProperty]streamoptionalIResolvableStreamoptionalIResolvableStreamoptionalinterface{}#