Class CfnStream.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisvideo.CfnStream.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStream>
- Enclosing class:
CfnStream
@Stability(Stable)
public static final class CfnStream.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStream>
A fluent builder for
CfnStream
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnStream.Builder
dataRetentionInHours
(Number dataRetentionInHours) How long the stream retains data, in hours.deviceName
(String deviceName) The name of the device that is associated with the stream.The ID of the AWS Key Management Service ( AWS KMS ) key that Kinesis Video Streams uses to encrypt data on the stream.TheMediaType
of the stream.The name of the stream.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnStream.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnStream.Builder
.
-
dataRetentionInHours
How long the stream retains data, in hours.- Parameters:
dataRetentionInHours
- How long the stream retains data, in hours. This parameter is required.- Returns:
this
- See Also:
-
deviceName
The name of the device that is associated with the stream.- Parameters:
deviceName
- The name of the device that is associated with the stream. This parameter is required.- Returns:
this
- See Also:
-
kmsKeyId
The ID of the AWS Key Management Service ( AWS KMS ) key that Kinesis Video Streams uses to encrypt data on the stream.- Parameters:
kmsKeyId
- The ID of the AWS Key Management Service ( AWS KMS ) key that Kinesis Video Streams uses to encrypt data on the stream. This parameter is required.- Returns:
this
- See Also:
-
mediaType
TheMediaType
of the stream.- Parameters:
mediaType
- TheMediaType
of the stream. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the stream.- Parameters:
name
- The name of the stream. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
build
-