AWS::Rekognition::Collection - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Rekognition::Collection

The AWS::Rekognition::Collection type creates a server-side container called a collection. You can use a collection to store information about detected faces and search for known faces in images, stored videos, and streaming videos.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::Rekognition::Collection", "Properties" : { "CollectionId" : String, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::Rekognition::Collection Properties: CollectionId: String Tags: - Tag

Properties

CollectionId

ID for the collection that you are creating.

Required: Yes

Type: String

Minimum: 1

Maximum: 255

Pattern: [a-zA-Z0-9_.\-]+

Update requires: Replacement

Tags

A set of tags (key-value pairs) that you want to attach to the collection.

Required: No

Type: List of Tag

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the collection ID. For example:

{ "Ref": "MyCollection" }

For more information about using the Reffunction, see Ref.

Fn::GetAtt

Fn::GetAtt returns a value for a specified attribute of this type. The following are the available attributes and sample return values. For more information about using Fn::GetAtt, see Fn::GetAtt.

Arn

Returns the Amazon Resource Name of the collection.