Class CfnStreamProps
Properties for defining a CfnStream.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnStreamProps : ICfnStreamProps
Syntax (vb)
Public Class CfnStreamProps Implements ICfnStreamProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-stream.html
ExampleMetadata: fixture=_generated
Examples
// 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 cfnStreamProps = new CfnStreamProps {
Files = new [] { new StreamFileProperty {
FileId = 123,
S3Location = new S3LocationProperty {
Bucket = "bucket",
Key = "key",
Version = "version"
}
} },
RoleArn = "roleArn",
StreamId = "streamId",
// the properties below are optional
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
| CfnStreamProps() | Properties for defining a |
Properties
| Description | The description of the stream. |
| Files | The files to stream. |
| RoleArn | An IAM role that allows the IoT service principal to access your S3 files. |
| StreamId | The stream ID. |
| Tags | Metadata which can be used to manage streams. |
Constructors
CfnStreamProps()
Properties for defining a CfnStream.
public CfnStreamProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-stream.html
ExampleMetadata: fixture=_generated
Examples
// 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 cfnStreamProps = new CfnStreamProps {
Files = new [] { new StreamFileProperty {
FileId = 123,
S3Location = new S3LocationProperty {
Bucket = "bucket",
Key = "key",
Version = "version"
}
} },
RoleArn = "roleArn",
StreamId = "streamId",
// the properties below are optional
Description = "description",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
Description
The description of the stream.
public string? Description { get; set; }
Property Value
Remarks
Files
The files to stream.
public object Files { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnStream.IStreamFileProperty)[]
RoleArn
An IAM role that allows the IoT service principal to access your S3 files.
public string RoleArn { get; set; }
Property Value
Remarks
StreamId
The stream ID.
public string StreamId { get; set; }
Property Value
Remarks
Tags
Metadata which can be used to manage streams.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]