amazonka-opensearch-2.0: Amazon OpenSearch Service 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.OpenSearch.CreateDomain

Description

Creates an Amazon OpenSearch Service domain. For more information, see Creating and managing Amazon OpenSearch Service domains.

Synopsis

Creating a Request

data CreateDomain Source #

See: newCreateDomain smart constructor.

Constructors

CreateDomain' 

Fields

Instances

Instances details
ToJSON CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.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

AWSRequest CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Associated Types

type AWSResponse CreateDomain #

Generic CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Associated Types

type Rep CreateDomain :: Type -> Type #

Show CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

NFData CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Methods

rnf :: CreateDomain -> () #

Eq CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Hashable CreateDomain Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

type AWSResponse 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" "amazonka-opensearch-2.0-GNoaWlqGXH04P8GBIHM78L" 'False) (C1 ('MetaCons "CreateDomain'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "accessPolicies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "advancedOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "advancedSecurityOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AdvancedSecurityOptionsInput)) :*: S1 ('MetaSel ('Just "autoTuneOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AutoTuneOptionsInput)))) :*: ((S1 ('MetaSel ('Just "clusterConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ClusterConfig)) :*: S1 ('MetaSel ('Just "cognitoOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CognitoOptions))) :*: (S1 ('MetaSel ('Just "domainEndpointOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DomainEndpointOptions)) :*: S1 ('MetaSel ('Just "eBSOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EBSOptions))))) :*: (((S1 ('MetaSel ('Just "encryptionAtRestOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncryptionAtRestOptions)) :*: S1 ('MetaSel ('Just "engineVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "logPublishingOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap LogType LogPublishingOption))) :*: S1 ('MetaSel ('Just "nodeToNodeEncryptionOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NodeToNodeEncryptionOptions)))) :*: ((S1 ('MetaSel ('Just "snapshotOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnapshotOptions)) :*: S1 ('MetaSel ('Just "tagList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "vPCOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VPCOptions)) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

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:

CreateDomain, createDomain_accessPolicies - Identity and Access Management (IAM) policy document specifying the access policies for the new domain.

CreateDomain, createDomain_advancedOptions - Key-value pairs to specify advanced configuration options. The following key-value pairs are supported:

  • "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of a string rather than a boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP requests. If you want to configure access policies for domain sub-resources, such as specific indexes and domain APIs, you must disable this property. Default is true.
  • "indices.fielddata.cache.size": "80" - Note the use of a string rather than a boolean. Specifies the percentage of heap space allocated to field data. Default is unbounded.
  • "indices.query.bool.max_clause_count": "1024" - Note the use of a string rather than a boolean. Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. Queries with more than the permitted number of clauses result in a TooManyClauses error.
  • "override_main_response_version": "true" | "false" - Note the use of a string rather than a boolean. Specifies whether the domain reports its version as 7.10 to allow Elasticsearch OSS clients and plugins to continue working with it. Default is false when creating a domain and true when upgrading a domain.

For more information, see Advanced cluster parameters.

CreateDomain, createDomain_advancedSecurityOptions - Options for fine-grained access control.

CreateDomain, createDomain_autoTuneOptions - Options for Auto-Tune.

CreateDomain, createDomain_clusterConfig - Container for the cluster configuration of a domain.

CreateDomain, createDomain_cognitoOptions - Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.

CreateDomain, createDomain_domainEndpointOptions - Additional options for the domain endpoint, such as whether to require HTTPS for all traffic.

CreateDomain, createDomain_eBSOptions - Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain.

CreateDomain, createDomain_encryptionAtRestOptions - Key-value pairs to enable encryption at rest.

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

CreateDomain, createDomain_logPublishingOptions - Key-value pairs to configure slow log publishing.

CreateDomain, createDomain_nodeToNodeEncryptionOptions - Enables node-to-node encryption.

CreateDomain, createDomain_snapshotOptions - DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes.

$sel:tagList:CreateDomain', createDomain_tagList - List of tags to add to the domain upon creation.

CreateDomain, createDomain_vPCOptions - Container for the values required to configure VPC access domains. If you don't specify these values, OpenSearch Service creates the domain with a public endpoint. For more information, see Launching your Amazon OpenSearch Service domains using a VPC.

CreateDomain, createDomain_domainName - Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an account within an Amazon Web Services Region.

Request Lenses

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

Identity and Access Management (IAM) policy document specifying the access policies for the new domain.

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

Key-value pairs to specify advanced configuration options. The following key-value pairs are supported:

  • "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of a string rather than a boolean. Specifies whether explicit references to indexes are allowed inside the body of HTTP requests. If you want to configure access policies for domain sub-resources, such as specific indexes and domain APIs, you must disable this property. Default is true.
  • "indices.fielddata.cache.size": "80" - Note the use of a string rather than a boolean. Specifies the percentage of heap space allocated to field data. Default is unbounded.
  • "indices.query.bool.max_clause_count": "1024" - Note the use of a string rather than a boolean. Specifies the maximum number of clauses allowed in a Lucene boolean query. Default is 1,024. Queries with more than the permitted number of clauses result in a TooManyClauses error.
  • "override_main_response_version": "true" | "false" - Note the use of a string rather than a boolean. Specifies whether the domain reports its version as 7.10 to allow Elasticsearch OSS clients and plugins to continue working with it. Default is false when creating a domain and true when upgrading a domain.

For more information, see Advanced cluster parameters.

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

Container for the cluster configuration of a domain.

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

Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.

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

Additional options for the domain endpoint, such as whether to require HTTPS for all traffic.

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

Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain.

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

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

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

Key-value pairs to configure slow log publishing.

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

DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes.

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

List of tags to add to the domain upon creation.

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

Container for the values required to configure VPC access domains. If you don't specify these values, OpenSearch Service creates the domain with a public endpoint. For more information, see Launching your Amazon OpenSearch Service domains using a VPC.

createDomain_domainName :: Lens' CreateDomain Text Source #

Name of the OpenSearch Service domain to create. Domain names are unique across the domains owned by an account within an Amazon Web Services Region.

Destructuring the Response

data CreateDomainResponse Source #

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

See: newCreateDomainResponse smart constructor.

Constructors

CreateDomainResponse' 

Fields

Instances

Instances details
Generic CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Associated Types

type Rep CreateDomainResponse :: Type -> Type #

Read CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Show CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

NFData CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

Methods

rnf :: CreateDomainResponse -> () #

Eq CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

type Rep CreateDomainResponse Source # 
Instance details

Defined in Amazonka.OpenSearch.CreateDomain

type Rep CreateDomainResponse = D1 ('MetaData "CreateDomainResponse" "Amazonka.OpenSearch.CreateDomain" "amazonka-opensearch-2.0-GNoaWlqGXH04P8GBIHM78L" '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