Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.rekognition
import cloudshift.awscdk.common.CdkDslMarker
import cloudshift.awscdk.common.MapBuilder
import cloudshift.awscdk.dsl.CfnTagDsl
import kotlin.Any
import kotlin.String
import kotlin.Unit
import kotlin.collections.Collection
import kotlin.collections.MutableList
import software.amazon.awscdk.CfnTag
import software.amazon.awscdk.IResolvable
import software.amazon.awscdk.services.rekognition.CfnStreamProcessor
import software.constructs.Construct
/**
* The `AWS::Rekognition::StreamProcessor` type creates a stream processor used to detect and
* recognize faces or to detect connected home labels in a streaming video.
*
* Amazon Rekognition Video is a consumer of live video from Amazon Kinesis Video Streams. There are
* two different settings for stream processors in Amazon Rekognition, one for detecting faces and one
* for connected home features.
*
* If you are creating a stream processor for detecting faces, you provide a Kinesis video stream
* (input) and a Kinesis data stream (output). You also specify the face recognition criteria in
* FaceSearchSettings. For example, the collection containing faces that you want to recognize.
*
* If you are creating a stream processor for detection of connected home labels, you provide a
* Kinesis video stream for input, and for output an Amazon S3 bucket and an Amazon SNS topic. You can
* also provide a KMS key ID to encrypt the data sent to your Amazon S3 bucket. You specify what you
* want to detect in ConnectedHomeSettings, such as people, packages, and pets.
*
* You can also specify where in the frame you want Amazon Rekognition to monitor with
* BoundingBoxRegionsOfInterest and PolygonRegionsOfInterest. The Name is used to manage the stream
* processor and it is the identifier for the stream processor. The `AWS::Rekognition::StreamProcessor`
* resource creates a stream processor in the same Region where you create the Amazon CloudFormation
* stack.
*
* For more information, see
* [CreateStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor)
* .
*
* Example:
*
* ```
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import software.amazon.awscdk.services.rekognition.*;
* Object polygonRegionsOfInterest;
* CfnStreamProcessor cfnStreamProcessor = CfnStreamProcessor.Builder.create(this,
* "MyCfnStreamProcessor")
* .kinesisVideoStream(KinesisVideoStreamProperty.builder()
* .arn("arn")
* .build())
* .roleArn("roleArn")
* // the properties below are optional
* .boundingBoxRegionsOfInterest(List.of(BoundingBoxProperty.builder()
* .height(123)
* .left(123)
* .top(123)
* .width(123)
* .build()))
* .connectedHomeSettings(ConnectedHomeSettingsProperty.builder()
* .labels(List.of("labels"))
* // the properties below are optional
* .minConfidence(123)
* .build())
* .dataSharingPreference(DataSharingPreferenceProperty.builder()
* .optIn(false)
* .build())
* .faceSearchSettings(FaceSearchSettingsProperty.builder()
* .collectionId("collectionId")
* // the properties below are optional
* .faceMatchThreshold(123)
* .build())
* .kinesisDataStream(KinesisDataStreamProperty.builder()
* .arn("arn")
* .build())
* .kmsKeyId("kmsKeyId")
* .name("name")
* .notificationChannel(NotificationChannelProperty.builder()
* .arn("arn")
* .build())
* .polygonRegionsOfInterest(polygonRegionsOfInterest)
* .s3Destination(S3DestinationProperty.builder()
* .bucketName("bucketName")
* // the properties below are optional
* .objectKeyPrefix("objectKeyPrefix")
* .build())
* .tags(List.of(CfnTag.builder()
* .key("key")
* .value("value")
* .build()))
* .build();
* ```
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html)
*/
@CdkDslMarker
public class CfnStreamProcessorDsl(
scope: Construct,
id: String,
) {
private val cdkBuilder: CfnStreamProcessor.Builder = CfnStreamProcessor.Builder.create(scope, id)
private val _boundingBoxRegionsOfInterest: MutableList = mutableListOf()
private val _tags: MutableList = mutableListOf()
/**
* List of BoundingBox objects, each of which denotes a region of interest on screen.
*
* For more information, see the BoundingBox field of
* [RegionOfInterest](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RegionOfInterest)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-boundingboxregionsofinterest)
* @param boundingBoxRegionsOfInterest List of BoundingBox objects, each of which denotes a region
* of interest on screen.
*/
public fun boundingBoxRegionsOfInterest(vararg boundingBoxRegionsOfInterest: Any) {
_boundingBoxRegionsOfInterest.addAll(listOf(*boundingBoxRegionsOfInterest))
}
/**
* List of BoundingBox objects, each of which denotes a region of interest on screen.
*
* For more information, see the BoundingBox field of
* [RegionOfInterest](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RegionOfInterest)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-boundingboxregionsofinterest)
* @param boundingBoxRegionsOfInterest List of BoundingBox objects, each of which denotes a region
* of interest on screen.
*/
public fun boundingBoxRegionsOfInterest(boundingBoxRegionsOfInterest: Collection) {
_boundingBoxRegionsOfInterest.addAll(boundingBoxRegionsOfInterest)
}
/**
* List of BoundingBox objects, each of which denotes a region of interest on screen.
*
* For more information, see the BoundingBox field of
* [RegionOfInterest](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RegionOfInterest)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-boundingboxregionsofinterest)
* @param boundingBoxRegionsOfInterest List of BoundingBox objects, each of which denotes a region
* of interest on screen.
*/
public fun boundingBoxRegionsOfInterest(boundingBoxRegionsOfInterest: IResolvable) {
cdkBuilder.boundingBoxRegionsOfInterest(boundingBoxRegionsOfInterest)
}
/**
* Connected home settings to use on a streaming video.
*
* You can use a stream processor for connected home features and select what you want the stream
* processor to detect, such as people or pets. When the stream processor has started, one
* notification is sent for each object class specified. For more information, see the ConnectedHome
* section of
* [StreamProcessorSettings](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessorSettings)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-connectedhomesettings)
* @param connectedHomeSettings Connected home settings to use on a streaming video.
*/
public fun connectedHomeSettings(connectedHomeSettings: IResolvable) {
cdkBuilder.connectedHomeSettings(connectedHomeSettings)
}
/**
* Connected home settings to use on a streaming video.
*
* You can use a stream processor for connected home features and select what you want the stream
* processor to detect, such as people or pets. When the stream processor has started, one
* notification is sent for each object class specified. For more information, see the ConnectedHome
* section of
* [StreamProcessorSettings](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessorSettings)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-connectedhomesettings)
* @param connectedHomeSettings Connected home settings to use on a streaming video.
*/
public
fun connectedHomeSettings(connectedHomeSettings: CfnStreamProcessor.ConnectedHomeSettingsProperty) {
cdkBuilder.connectedHomeSettings(connectedHomeSettings)
}
/**
* Allows you to opt in or opt out to share data with Rekognition to improve model performance.
*
* You can choose this option at the account level or on a per-stream basis. Note that if you opt
* out at the account level this setting is ignored on individual streams. For more information, see
* [StreamProcessorDataSharingPreference](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessorDataSharingPreference)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-datasharingpreference)
* @param dataSharingPreference Allows you to opt in or opt out to share data with Rekognition to
* improve model performance.
*/
public fun dataSharingPreference(dataSharingPreference: IResolvable) {
cdkBuilder.dataSharingPreference(dataSharingPreference)
}
/**
* Allows you to opt in or opt out to share data with Rekognition to improve model performance.
*
* You can choose this option at the account level or on a per-stream basis. Note that if you opt
* out at the account level this setting is ignored on individual streams. For more information, see
* [StreamProcessorDataSharingPreference](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessorDataSharingPreference)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-datasharingpreference)
* @param dataSharingPreference Allows you to opt in or opt out to share data with Rekognition to
* improve model performance.
*/
public
fun dataSharingPreference(dataSharingPreference: CfnStreamProcessor.DataSharingPreferenceProperty) {
cdkBuilder.dataSharingPreference(dataSharingPreference)
}
/**
* The input parameters used to recognize faces in a streaming video analyzed by an Amazon
* Rekognition stream processor.
*
* For more information regarding the contents of the parameters, see
* [FaceSearchSettings](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_FaceSearchSettings)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-facesearchsettings)
* @param faceSearchSettings The input parameters used to recognize faces in a streaming video
* analyzed by an Amazon Rekognition stream processor.
*/
public fun faceSearchSettings(faceSearchSettings: IResolvable) {
cdkBuilder.faceSearchSettings(faceSearchSettings)
}
/**
* The input parameters used to recognize faces in a streaming video analyzed by an Amazon
* Rekognition stream processor.
*
* For more information regarding the contents of the parameters, see
* [FaceSearchSettings](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_FaceSearchSettings)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-facesearchsettings)
* @param faceSearchSettings The input parameters used to recognize faces in a streaming video
* analyzed by an Amazon Rekognition stream processor.
*/
public fun faceSearchSettings(faceSearchSettings: CfnStreamProcessor.FaceSearchSettingsProperty) {
cdkBuilder.faceSearchSettings(faceSearchSettings)
}
/**
* Amazon Rekognition's Video Stream Processor takes a Kinesis video stream as input.
*
* This is the Amazon Kinesis Data Streams instance to which the Amazon Rekognition stream
* processor streams the analysis results. This must be created within the constraints specified at
* [KinesisDataStream](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_KinesisDataStream)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-kinesisdatastream)
* @param kinesisDataStream Amazon Rekognition's Video Stream Processor takes a Kinesis video
* stream as input.
*/
public fun kinesisDataStream(kinesisDataStream: IResolvable) {
cdkBuilder.kinesisDataStream(kinesisDataStream)
}
/**
* Amazon Rekognition's Video Stream Processor takes a Kinesis video stream as input.
*
* This is the Amazon Kinesis Data Streams instance to which the Amazon Rekognition stream
* processor streams the analysis results. This must be created within the constraints specified at
* [KinesisDataStream](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_KinesisDataStream)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-kinesisdatastream)
* @param kinesisDataStream Amazon Rekognition's Video Stream Processor takes a Kinesis video
* stream as input.
*/
public fun kinesisDataStream(kinesisDataStream: CfnStreamProcessor.KinesisDataStreamProperty) {
cdkBuilder.kinesisDataStream(kinesisDataStream)
}
/**
* The Kinesis video stream that provides the source of the streaming video for an Amazon
* Rekognition Video stream processor.
*
* For more information, see
* [KinesisVideoStream](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_KinesisVideoStream)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-kinesisvideostream)
* @param kinesisVideoStream The Kinesis video stream that provides the source of the streaming
* video for an Amazon Rekognition Video stream processor.
*/
public fun kinesisVideoStream(kinesisVideoStream: IResolvable) {
cdkBuilder.kinesisVideoStream(kinesisVideoStream)
}
/**
* The Kinesis video stream that provides the source of the streaming video for an Amazon
* Rekognition Video stream processor.
*
* For more information, see
* [KinesisVideoStream](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_KinesisVideoStream)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-kinesisvideostream)
* @param kinesisVideoStream The Kinesis video stream that provides the source of the streaming
* video for an Amazon Rekognition Video stream processor.
*/
public fun kinesisVideoStream(kinesisVideoStream: CfnStreamProcessor.KinesisVideoStreamProperty) {
cdkBuilder.kinesisVideoStream(kinesisVideoStream)
}
/**
* The identifier for your Amazon Key Management Service key (Amazon KMS key).
*
* Optional parameter for connected home stream processors used to encrypt results and data
* published to your Amazon S3 bucket. For more information, see the KMSKeyId section of
* [CreateStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-kmskeyid)
* @param kmsKeyId The identifier for your Amazon Key Management Service key (Amazon KMS key).
*/
public fun kmsKeyId(kmsKeyId: String) {
cdkBuilder.kmsKeyId(kmsKeyId)
}
/**
* The Name attribute specifies the name of the stream processor and it must be within the
* constraints described in the Name section of
* [StreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessor)
* . If you don't specify a name, Amazon CloudFormation generates a unique ID and uses that ID for
* the stream processor name.
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-name)
* @param name The Name attribute specifies the name of the stream processor and it must be within
* the constraints described in the Name section of
* [StreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessor)
* . If you don't specify a name, Amazon CloudFormation generates a unique ID and uses that ID for
* the stream processor name.
*/
public fun name(name: String) {
cdkBuilder.name(name)
}
/**
* The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object
* detection results and completion status of a video analysis operation.
*
* Amazon Rekognition publishes a notification the first time an object of interest or a person is
* detected in the video stream. Amazon Rekognition also publishes an end-of-session notification
* with a summary when the stream processing session is complete. For more information, see
* [StreamProcessorNotificationChannel](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessorNotificationChannel)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-notificationchannel)
* @param notificationChannel The Amazon Simple Notification Service topic to which Amazon
* Rekognition publishes the object detection results and completion status of a video analysis
* operation.
*/
public fun notificationChannel(notificationChannel: IResolvable) {
cdkBuilder.notificationChannel(notificationChannel)
}
/**
* The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the object
* detection results and completion status of a video analysis operation.
*
* Amazon Rekognition publishes a notification the first time an object of interest or a person is
* detected in the video stream. Amazon Rekognition also publishes an end-of-session notification
* with a summary when the stream processing session is complete. For more information, see
* [StreamProcessorNotificationChannel](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessorNotificationChannel)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-notificationchannel)
* @param notificationChannel The Amazon Simple Notification Service topic to which Amazon
* Rekognition publishes the object detection results and completion status of a video analysis
* operation.
*/
public
fun notificationChannel(notificationChannel: CfnStreamProcessor.NotificationChannelProperty) {
cdkBuilder.notificationChannel(notificationChannel)
}
/**
* A set of ordered lists of
* [Point](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_Point) objects. Each entry
* of the set contains a polygon denoting a region of interest on the screen. Each polygon is an
* ordered list of [Point](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_Point)
* objects. For more information, see the Polygon field of
* [RegionOfInterest](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RegionOfInterest)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-polygonregionsofinterest)
* @param polygonRegionsOfInterest A set of ordered lists of
* [Point](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_Point) objects. Each entry
* of the set contains a polygon denoting a region of interest on the screen. Each polygon is an
* ordered list of [Point](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_Point)
* objects. For more information, see the Polygon field of
* [RegionOfInterest](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RegionOfInterest)
* .
*/
public fun polygonRegionsOfInterest(polygonRegionsOfInterest: MapBuilder.() -> Unit = {}) {
val builder = MapBuilder()
builder.apply(polygonRegionsOfInterest)
cdkBuilder.polygonRegionsOfInterest(builder.map)
}
/**
* A set of ordered lists of
* [Point](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_Point) objects. Each entry
* of the set contains a polygon denoting a region of interest on the screen. Each polygon is an
* ordered list of [Point](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_Point)
* objects. For more information, see the Polygon field of
* [RegionOfInterest](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RegionOfInterest)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-polygonregionsofinterest)
* @param polygonRegionsOfInterest A set of ordered lists of
* [Point](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_Point) objects. Each entry
* of the set contains a polygon denoting a region of interest on the screen. Each polygon is an
* ordered list of [Point](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_Point)
* objects. For more information, see the Polygon field of
* [RegionOfInterest](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_RegionOfInterest)
* .
*/
public fun polygonRegionsOfInterest(polygonRegionsOfInterest: Any) {
cdkBuilder.polygonRegionsOfInterest(polygonRegionsOfInterest)
}
/**
* The ARN of the IAM role that allows access to the stream processor.
*
* The IAM role provides Rekognition read permissions to the Kinesis stream. It also provides
* write permissions to an Amazon S3 bucket and Amazon Simple Notification Service topic for a
* connected home stream processor. This is required for both face search and connected home stream
* processors. For information about constraints, see the RoleArn section of
* [CreateStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-rolearn)
* @param roleArn The ARN of the IAM role that allows access to the stream processor.
*/
public fun roleArn(roleArn: String) {
cdkBuilder.roleArn(roleArn)
}
/**
* The Amazon S3 bucket location to which Amazon Rekognition publishes the detailed inference
* results of a video analysis operation.
*
* For more information, see the S3Destination section of
* [StreamProcessorOutput](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessorOutput)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-s3destination)
* @param s3Destination The Amazon S3 bucket location to which Amazon Rekognition publishes the
* detailed inference results of a video analysis operation.
*/
public fun s3Destination(s3Destination: IResolvable) {
cdkBuilder.s3Destination(s3Destination)
}
/**
* The Amazon S3 bucket location to which Amazon Rekognition publishes the detailed inference
* results of a video analysis operation.
*
* For more information, see the S3Destination section of
* [StreamProcessorOutput](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_StreamProcessorOutput)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-s3destination)
* @param s3Destination The Amazon S3 bucket location to which Amazon Rekognition publishes the
* detailed inference results of a video analysis operation.
*/
public fun s3Destination(s3Destination: CfnStreamProcessor.S3DestinationProperty) {
cdkBuilder.s3Destination(s3Destination)
}
/**
* A set of tags (key-value pairs) that you want to attach to the stream processor.
*
* For more information, see the Tags section of
* [CreateStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-tags)
* @param tags A set of tags (key-value pairs) that you want to attach to the stream processor.
*/
public fun tags(tags: CfnTagDsl.() -> Unit) {
_tags.add(CfnTagDsl().apply(tags).build())
}
/**
* A set of tags (key-value pairs) that you want to attach to the stream processor.
*
* For more information, see the Tags section of
* [CreateStreamProcessor](https://docs.aws.amazon.com/rekognition/latest/APIReference/API_CreateStreamProcessor)
* .
*
* [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rekognition-streamprocessor.html#cfn-rekognition-streamprocessor-tags)
* @param tags A set of tags (key-value pairs) that you want to attach to the stream processor.
*/
public fun tags(tags: Collection) {
_tags.addAll(tags)
}
public fun build(): CfnStreamProcessor {
if(_boundingBoxRegionsOfInterest.isNotEmpty())
cdkBuilder.boundingBoxRegionsOfInterest(_boundingBoxRegionsOfInterest)
if(_tags.isNotEmpty()) cdkBuilder.tags(_tags)
return cdkBuilder.build()
}
}