amazonka-opensearchserverless-2.0: Amazon OpenSearch Service Serverless SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.OpenSearchServerless.CreateCollection

Description

Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.

Synopsis

Creating a Request

data CreateCollection Source #

See: newCreateCollection smart constructor.

Constructors

CreateCollection' 

Fields

Instances

Instances details
ToJSON CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

ToHeaders CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

ToPath CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

ToQuery CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

AWSRequest CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

Associated Types

type AWSResponse CreateCollection #

Generic CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

Associated Types

type Rep CreateCollection :: Type -> Type #

Read CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

Show CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

NFData CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

Methods

rnf :: CreateCollection -> () #

Eq CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

Hashable CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

type AWSResponse CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

type Rep CreateCollection Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

type Rep CreateCollection = D1 ('MetaData "CreateCollection" "Amazonka.OpenSearchServerless.CreateCollection" "amazonka-opensearchserverless-2.0-HnbMYszmsxrAMKjbvSoFws" 'False) (C1 ('MetaCons "CreateCollection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CollectionType)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateCollection Source #

Create a value of CreateCollection with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clientToken:CreateCollection', createCollection_clientToken - Unique, case-sensitive identifier to ensure idempotency of the request.

CreateCollection, createCollection_description - Description of the collection.

$sel:tags:CreateCollection', createCollection_tags - An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.

CreateCollection, createCollection_type - The type of collection.

CreateCollection, createCollection_name - Name of the collection.

Request Lenses

createCollection_clientToken :: Lens' CreateCollection (Maybe Text) Source #

Unique, case-sensitive identifier to ensure idempotency of the request.

createCollection_tags :: Lens' CreateCollection (Maybe [Tag]) Source #

An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.

Destructuring the Response

data CreateCollectionResponse Source #

See: newCreateCollectionResponse smart constructor.

Constructors

CreateCollectionResponse' 

Fields

Instances

Instances details
Generic CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

Associated Types

type Rep CreateCollectionResponse :: Type -> Type #

Read CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

Show CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

NFData CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

Eq CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

type Rep CreateCollectionResponse Source # 
Instance details

Defined in Amazonka.OpenSearchServerless.CreateCollection

type Rep CreateCollectionResponse = D1 ('MetaData "CreateCollectionResponse" "Amazonka.OpenSearchServerless.CreateCollection" "amazonka-opensearchserverless-2.0-HnbMYszmsxrAMKjbvSoFws" 'False) (C1 ('MetaCons "CreateCollectionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "createCollectionDetail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CreateCollectionDetail)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateCollectionResponse Source #

Create a value of CreateCollectionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:createCollectionDetail:CreateCollectionResponse', createCollectionResponse_createCollectionDetail - Details about the collection.

$sel:httpStatus:CreateCollectionResponse', createCollectionResponse_httpStatus - The response's http status code.

Response Lenses