Class CfnCollection.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnCollection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCollection>
- Enclosing class:
CfnCollection
@Stability(Stable)
public static final class CfnCollection.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCollection>
A fluent builder for
CfnCollection
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnCollection.Builder
description
(String description) A description of the collection.The name of the collection.An arbitrary set of tags (key–value pairs) to associate with the collection.The type of collection.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnCollection.Builder
.
-
name
The name of the collection.Collection names must meet the following criteria:
- Starts with a lowercase letter
- Unique to your account and AWS Region
- Contains between 3 and 28 characters
- Contains only lowercase letters a-z, the numbers 0-9, and the hyphen (-)
- Parameters:
name
- The name of the collection. This parameter is required.- Returns:
this
-
description
A description of the collection.- Parameters:
description
- A description of the collection. This parameter is required.- Returns:
this
-
tags
An arbitrary set of tags (key–value pairs) to associate with the collection.For more information, see Tag .
- Parameters:
tags
- An arbitrary set of tags (key–value pairs) to associate with the collection. This parameter is required.- Returns:
this
-
type
The type of collection.Possible values are
SEARCH
andTIMESERIES
. For more information, see Choosing a collection type .- Parameters:
type
- The type of collection. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCollection>
- Returns:
- a newly built instance of
CfnCollection
.
-