# AWS::OpenSearchServerless::Collection Amazon OpenSearchServerless collection resource ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::OpenSearchServerless::Collection", "Properties" : { "Description" : String, "Name" : String, "Tags" : [ Tag, ... ], "Type" : String } }### YAML
Type: AWS::OpenSearchServerless::Collection Properties: Description: String Name: String Tags: - Tag Type: String## Properties #### Description The description of the collection _Required_: No _Type_: String _Maximum Length_:
1000
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Name
The name of the collection.
The name must meet the following criteria:
Unique to your account and AWS Region
Starts with a lowercase letter
Contains only lowercase letters a-z, the numbers 0-9 and the hyphen (-)
Contains between 3 and 32 characters
_Required_: Yes
_Type_: String
_Minimum Length_: 3
_Maximum Length_: 32
_Pattern_: ^[a-z][a-z0-9-]{2,31}$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Tags
List of tags to be added to the resource
_Required_: No
_Type_: List of Tag
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Type
The possible types for the collection
_Required_: No
_Type_: String
_Allowed Values_: SEARCH
| TIMESERIES
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the Id.
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function 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 the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### Id
The identifier of the collection
#### Arn
The Amazon Resource Name (ARN) of the collection.
#### CollectionEndpoint
The endpoint for the collection.
#### DashboardEndpoint
The OpenSearch Dashboards endpoint for the collection.