libZSservicesZSamazonka-opensearchZSamazonka-opensearch
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.OpenSearch.CreateDomain

Description

Creates a new Amazon OpenSearch Service domain. For more information, see Creating and managing Amazon OpenSearch Service domains in the Amazon OpenSearch Service Developer Guide.

Synopsis

Creating a Request

data CreateDomain Source #

See: newCreateDomain smart constructor.

Constructors

CreateDomain' 

Fields

Instances

Instances details
Eq CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Show CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Generic CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Associated Types

type Rep CreateDomain :: Type -> Type #

NFData CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Methods

rnf :: CreateDomain -> () #

Hashable CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

ToJSON CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

AWSRequest CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Associated Types

type AWSResponse CreateDomain #

ToHeaders CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

ToPath CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

ToQuery CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

type Rep CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

type Rep CreateDomain = D1 ('MetaData "CreateDomain" "Amazonka.OpenSearch.CreateDomain" "libZSservicesZSamazonka-opensearchZSamazonka-opensearch" 'False) (C1 ('MetaCons "CreateDomain'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "eBSOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EBSOptions)) :*: S1 ('MetaSel ('Just "engineVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nodeToNodeEncryptionOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NodeToNodeEncryptionOptions)) :*: S1 ('MetaSel ('Just "accessPolicies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "autoTuneOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoTuneOptionsInput)) :*: S1 ('MetaSel ('Just "logPublishingOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap LogType LogPublishingOption)))) :*: (S1 ('MetaSel ('Just "clusterConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ClusterConfig)) :*: S1 ('MetaSel ('Just "advancedSecurityOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AdvancedSecurityOptionsInput))))) :*: (((S1 ('MetaSel ('Just "tagList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "snapshotOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnapshotOptions))) :*: (S1 ('MetaSel ('Just "cognitoOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CognitoOptions)) :*: S1 ('MetaSel ('Just "encryptionAtRestOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncryptionAtRestOptions)))) :*: ((S1 ('MetaSel ('Just "vPCOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VPCOptions)) :*: S1 ('MetaSel ('Just "domainEndpointOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DomainEndpointOptions))) :*: (S1 ('MetaSel ('Just "advancedOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))
type AWSResponse CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

newCreateDomain Source #

Create a value of CreateDomain 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:eBSOptions:CreateDomain', createDomain_eBSOptions - Options to enable, disable, and specify the type and size of EBS storage volumes.

$sel:engineVersion:CreateDomain', createDomain_engineVersion - String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the Amazon OpenSearch Service domain. For example, "OpenSearch_1.0" or "Elasticsearch_7.9". For more information, see Creating and managing Amazon OpenSearch Service domains .

$sel:nodeToNodeEncryptionOptions:CreateDomain', createDomain_nodeToNodeEncryptionOptions - Node-to-node encryption options.

$sel:accessPolicies:CreateDomain', createDomain_accessPolicies - IAM access policy as a JSON-formatted string.

$sel:autoTuneOptions:CreateDomain', createDomain_autoTuneOptions - Specifies Auto-Tune options.

$sel:logPublishingOptions:CreateDomain', createDomain_logPublishingOptions - Map of LogType and LogPublishingOption, each containing options to publish a given type of OpenSearch log.

$sel:clusterConfig:CreateDomain', createDomain_clusterConfig - Configuration options for a domain. Specifies the instance type and number of instances in the domain.

$sel:advancedSecurityOptions:CreateDomain', createDomain_advancedSecurityOptions - Specifies advanced security options.

$sel:tagList:CreateDomain', createDomain_tagList - A list of Tag added during domain creation.

$sel:snapshotOptions:CreateDomain', createDomain_snapshotOptions - Option to set time, in UTC format, of the daily automated snapshot. Default value is 0 hours.

$sel:cognitoOptions:CreateDomain', createDomain_cognitoOptions - Options to specify the Cognito user and identity pools for OpenSearch Dashboards authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.

$sel:encryptionAtRestOptions:CreateDomain', createDomain_encryptionAtRestOptions - Options for encryption of data at rest.

$sel:vPCOptions:CreateDomain', createDomain_vPCOptions - Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your Amazon OpenSearch Service domains using a VPC .

$sel:domainEndpointOptions:CreateDomain', createDomain_domainEndpointOptions - Options to specify configurations that will be applied to the domain endpoint.

$sel:advancedOptions:CreateDomain', createDomain_advancedOptions - Option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. See Advanced cluster parameters for more information.

$sel:domainName:CreateDomain', createDomain_domainName - The name of the Amazon OpenSearch Service domain you're creating. Domain names are unique across the domains owned by an account within an AWS region. Domain names must start with a lowercase letter and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

Request Lenses

createDomain_eBSOptions :: Lens' CreateDomain (Maybe EBSOptions) Source #

Options to enable, disable, and specify the type and size of EBS storage volumes.

createDomain_engineVersion :: Lens' CreateDomain (Maybe Text) Source #

String of format Elasticsearch_X.Y or OpenSearch_X.Y to specify the engine version for the Amazon OpenSearch Service domain. For example, "OpenSearch_1.0" or "Elasticsearch_7.9". For more information, see Creating and managing Amazon OpenSearch Service domains .

createDomain_accessPolicies :: Lens' CreateDomain (Maybe Text) Source #

IAM access policy as a JSON-formatted string.

createDomain_logPublishingOptions :: Lens' CreateDomain (Maybe (HashMap LogType LogPublishingOption)) Source #

Map of LogType and LogPublishingOption, each containing options to publish a given type of OpenSearch log.

createDomain_clusterConfig :: Lens' CreateDomain (Maybe ClusterConfig) Source #

Configuration options for a domain. Specifies the instance type and number of instances in the domain.

createDomain_tagList :: Lens' CreateDomain (Maybe [Tag]) Source #

A list of Tag added during domain creation.

createDomain_snapshotOptions :: Lens' CreateDomain (Maybe SnapshotOptions) Source #

Option to set time, in UTC format, of the daily automated snapshot. Default value is 0 hours.

createDomain_cognitoOptions :: Lens' CreateDomain (Maybe CognitoOptions) Source #

Options to specify the Cognito user and identity pools for OpenSearch Dashboards authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.

createDomain_vPCOptions :: Lens' CreateDomain (Maybe VPCOptions) Source #

Options to specify the subnets and security groups for a VPC endpoint. For more information, see Launching your Amazon OpenSearch Service domains using a VPC .

createDomain_domainEndpointOptions :: Lens' CreateDomain (Maybe DomainEndpointOptions) Source #

Options to specify configurations that will be applied to the domain endpoint.

createDomain_advancedOptions :: Lens' CreateDomain (Maybe (HashMap Text Text)) Source #

Option to allow references to indices in an HTTP request body. Must be false when configuring access to individual sub-resources. By default, the value is true. See Advanced cluster parameters for more information.

createDomain_domainName :: Lens' CreateDomain Text Source #

The name of the Amazon OpenSearch Service domain you're creating. Domain names are unique across the domains owned by an account within an AWS region. Domain names must start with a lowercase letter and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

Destructuring the Response

data CreateDomainResponse Source #

The result of a CreateDomain operation. Contains the status of the newly created Amazon OpenSearch Service domain.

See: newCreateDomainResponse smart constructor.

Constructors

CreateDomainResponse' 

Fields

Instances

Instances details
Eq CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Read CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Show CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Generic CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Associated Types

type Rep CreateDomainResponse :: Type -> Type #

NFData CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Methods

rnf :: CreateDomainResponse -> () #

type Rep CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

type Rep CreateDomainResponse = D1 ('MetaData "CreateDomainResponse" "Amazonka.OpenSearch.CreateDomain" "libZSservicesZSamazonka-opensearchZSamazonka-opensearch" 'False) (C1 ('MetaCons "CreateDomainResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "domainStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DomainStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDomainResponse Source #

Create a value of CreateDomainResponse 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:domainStatus:CreateDomainResponse', createDomainResponse_domainStatus - The status of the newly created domain.

$sel:httpStatus:CreateDomainResponse', createDomainResponse_httpStatus - The response's http status code.

Response Lenses