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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
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
-
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
-
mediaType
TheMediaType
of the stream.- Parameters:
mediaType
- TheMediaType
of the stream. This parameter is required.- Returns:
this
-
name
The name of the stream.- Parameters:
name
- The name of the stream. This parameter is required.- Returns:
this
-
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
-
build
-