Skip to content
v2.276.0

StreamProperty 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 streamProperty: iot.CfnOTAUpdate.StreamProperty = {
  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

stream_property = 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.*;

StreamProperty streamProperty = StreamProperty.builder()
        .fileId(123)
        .streamId("streamId")
        .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 streamProperty = 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"

streamProperty := &StreamProperty{
	FileId: jsii.Number(123),
	StreamId: jsii.String("streamId"),
}

Properties ​

fileIdoptionalnumberfile_idoptionalint | floatfileIdoptionalNumberFileIdoptionaldoubleFileIdoptional*float64#
The ID of a file associated with a stream.
streamIdoptionalstringstream_idoptionalstrstreamIdoptionalStringStreamIdoptionalstringStreamIdoptional*string#
The stream ID.