#[non_exhaustive]pub struct CreateDomainInputBuilder { /* private fields */ }
Expand description
A builder for CreateDomainInput
.
Implementations§
source§impl CreateDomainInputBuilder
impl CreateDomainInputBuilder
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
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.
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
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.
sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
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.
sourcepub fn cluster_config(self, input: ClusterConfig) -> Self
pub fn cluster_config(self, input: ClusterConfig) -> Self
Container for the cluster configuration of a domain.
sourcepub fn set_cluster_config(self, input: Option<ClusterConfig>) -> Self
pub fn set_cluster_config(self, input: Option<ClusterConfig>) -> Self
Container for the cluster configuration of a domain.
sourcepub fn get_cluster_config(&self) -> &Option<ClusterConfig>
pub fn get_cluster_config(&self) -> &Option<ClusterConfig>
Container for the cluster configuration of a domain.
sourcepub fn ebs_options(self, input: EbsOptions) -> Self
pub fn ebs_options(self, input: EbsOptions) -> Self
Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain.
sourcepub fn set_ebs_options(self, input: Option<EbsOptions>) -> Self
pub fn set_ebs_options(self, input: Option<EbsOptions>) -> Self
Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain.
sourcepub fn get_ebs_options(&self) -> &Option<EbsOptions>
pub fn get_ebs_options(&self) -> &Option<EbsOptions>
Container for the parameters required to enable EBS-based storage for an OpenSearch Service domain.
sourcepub fn access_policies(self, input: impl Into<String>) -> Self
pub fn access_policies(self, input: impl Into<String>) -> Self
Identity and Access Management (IAM) policy document specifying the access policies for the new domain.
sourcepub fn set_access_policies(self, input: Option<String>) -> Self
pub fn set_access_policies(self, input: Option<String>) -> Self
Identity and Access Management (IAM) policy document specifying the access policies for the new domain.
sourcepub fn get_access_policies(&self) -> &Option<String>
pub fn get_access_policies(&self) -> &Option<String>
Identity and Access Management (IAM) policy document specifying the access policies for the new domain.
sourcepub fn snapshot_options(self, input: SnapshotOptions) -> Self
pub fn snapshot_options(self, input: SnapshotOptions) -> Self
DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes.
sourcepub fn set_snapshot_options(self, input: Option<SnapshotOptions>) -> Self
pub fn set_snapshot_options(self, input: Option<SnapshotOptions>) -> Self
DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes.
sourcepub fn get_snapshot_options(&self) -> &Option<SnapshotOptions>
pub fn get_snapshot_options(&self) -> &Option<SnapshotOptions>
DEPRECATED. Container for the parameters required to configure automated snapshots of domain indexes.
sourcepub fn vpc_options(self, input: VpcOptions) -> Self
pub fn vpc_options(self, input: VpcOptions) -> Self
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.
sourcepub fn set_vpc_options(self, input: Option<VpcOptions>) -> Self
pub fn set_vpc_options(self, input: Option<VpcOptions>) -> Self
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.
sourcepub fn get_vpc_options(&self) -> &Option<VpcOptions>
pub fn get_vpc_options(&self) -> &Option<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.
sourcepub fn cognito_options(self, input: CognitoOptions) -> Self
pub fn cognito_options(self, input: CognitoOptions) -> Self
Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.
sourcepub fn set_cognito_options(self, input: Option<CognitoOptions>) -> Self
pub fn set_cognito_options(self, input: Option<CognitoOptions>) -> Self
Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.
sourcepub fn get_cognito_options(&self) -> &Option<CognitoOptions>
pub fn get_cognito_options(&self) -> &Option<CognitoOptions>
Key-value pairs to configure Amazon Cognito authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.
sourcepub fn encryption_at_rest_options(self, input: EncryptionAtRestOptions) -> Self
pub fn encryption_at_rest_options(self, input: EncryptionAtRestOptions) -> Self
Key-value pairs to enable encryption at rest.
sourcepub fn set_encryption_at_rest_options(
self,
input: Option<EncryptionAtRestOptions>
) -> Self
pub fn set_encryption_at_rest_options( self, input: Option<EncryptionAtRestOptions> ) -> Self
Key-value pairs to enable encryption at rest.
sourcepub fn get_encryption_at_rest_options(&self) -> &Option<EncryptionAtRestOptions>
pub fn get_encryption_at_rest_options(&self) -> &Option<EncryptionAtRestOptions>
Key-value pairs to enable encryption at rest.
sourcepub fn node_to_node_encryption_options(
self,
input: NodeToNodeEncryptionOptions
) -> Self
pub fn node_to_node_encryption_options( self, input: NodeToNodeEncryptionOptions ) -> Self
Enables node-to-node encryption.
sourcepub fn set_node_to_node_encryption_options(
self,
input: Option<NodeToNodeEncryptionOptions>
) -> Self
pub fn set_node_to_node_encryption_options( self, input: Option<NodeToNodeEncryptionOptions> ) -> Self
Enables node-to-node encryption.
sourcepub fn get_node_to_node_encryption_options(
&self
) -> &Option<NodeToNodeEncryptionOptions>
pub fn get_node_to_node_encryption_options( &self ) -> &Option<NodeToNodeEncryptionOptions>
Enables node-to-node encryption.
sourcepub fn advanced_options(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn advanced_options( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to advanced_options
.
To override the contents of this collection use set_advanced_options
.
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 aTooManyClauses
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.
sourcepub fn set_advanced_options(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_advanced_options( self, input: Option<HashMap<String, String>> ) -> Self
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 aTooManyClauses
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.
sourcepub fn get_advanced_options(&self) -> &Option<HashMap<String, String>>
pub fn get_advanced_options(&self) -> &Option<HashMap<String, String>>
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 aTooManyClauses
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.
sourcepub fn log_publishing_options(self, k: LogType, v: LogPublishingOption) -> Self
pub fn log_publishing_options(self, k: LogType, v: LogPublishingOption) -> Self
Adds a key-value pair to log_publishing_options
.
To override the contents of this collection use set_log_publishing_options
.
Key-value pairs to configure log publishing.
sourcepub fn set_log_publishing_options(
self,
input: Option<HashMap<LogType, LogPublishingOption>>
) -> Self
pub fn set_log_publishing_options( self, input: Option<HashMap<LogType, LogPublishingOption>> ) -> Self
Key-value pairs to configure log publishing.
sourcepub fn get_log_publishing_options(
&self
) -> &Option<HashMap<LogType, LogPublishingOption>>
pub fn get_log_publishing_options( &self ) -> &Option<HashMap<LogType, LogPublishingOption>>
Key-value pairs to configure log publishing.
sourcepub fn domain_endpoint_options(self, input: DomainEndpointOptions) -> Self
pub fn domain_endpoint_options(self, input: DomainEndpointOptions) -> Self
Additional options for the domain endpoint, such as whether to require HTTPS for all traffic.
sourcepub fn set_domain_endpoint_options(
self,
input: Option<DomainEndpointOptions>
) -> Self
pub fn set_domain_endpoint_options( self, input: Option<DomainEndpointOptions> ) -> Self
Additional options for the domain endpoint, such as whether to require HTTPS for all traffic.
sourcepub fn get_domain_endpoint_options(&self) -> &Option<DomainEndpointOptions>
pub fn get_domain_endpoint_options(&self) -> &Option<DomainEndpointOptions>
Additional options for the domain endpoint, such as whether to require HTTPS for all traffic.
sourcepub fn advanced_security_options(
self,
input: AdvancedSecurityOptionsInput
) -> Self
pub fn advanced_security_options( self, input: AdvancedSecurityOptionsInput ) -> Self
Options for fine-grained access control.
sourcepub fn set_advanced_security_options(
self,
input: Option<AdvancedSecurityOptionsInput>
) -> Self
pub fn set_advanced_security_options( self, input: Option<AdvancedSecurityOptionsInput> ) -> Self
Options for fine-grained access control.
sourcepub fn get_advanced_security_options(
&self
) -> &Option<AdvancedSecurityOptionsInput>
pub fn get_advanced_security_options( &self ) -> &Option<AdvancedSecurityOptionsInput>
Options for fine-grained access control.
sourcepub fn tag_list(self, input: Tag) -> Self
pub fn tag_list(self, input: Tag) -> Self
Appends an item to tag_list
.
To override the contents of this collection use set_tag_list
.
List of tags to add to the domain upon creation.
sourcepub fn set_tag_list(self, input: Option<Vec<Tag>>) -> Self
pub fn set_tag_list(self, input: Option<Vec<Tag>>) -> Self
List of tags to add to the domain upon creation.
sourcepub fn get_tag_list(&self) -> &Option<Vec<Tag>>
pub fn get_tag_list(&self) -> &Option<Vec<Tag>>
List of tags to add to the domain upon creation.
sourcepub fn auto_tune_options(self, input: AutoTuneOptionsInput) -> Self
pub fn auto_tune_options(self, input: AutoTuneOptionsInput) -> Self
Options for Auto-Tune.
sourcepub fn set_auto_tune_options(self, input: Option<AutoTuneOptionsInput>) -> Self
pub fn set_auto_tune_options(self, input: Option<AutoTuneOptionsInput>) -> Self
Options for Auto-Tune.
sourcepub fn get_auto_tune_options(&self) -> &Option<AutoTuneOptionsInput>
pub fn get_auto_tune_options(&self) -> &Option<AutoTuneOptionsInput>
Options for Auto-Tune.
sourcepub fn off_peak_window_options(self, input: OffPeakWindowOptions) -> Self
pub fn off_peak_window_options(self, input: OffPeakWindowOptions) -> Self
Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on the domain, including service software updates and Auto-Tune enhancements that require a blue/green deployment. If no options are specified, the default start time of 10:00 P.M. local time (for the Region that the domain is created in) is used.
sourcepub fn set_off_peak_window_options(
self,
input: Option<OffPeakWindowOptions>
) -> Self
pub fn set_off_peak_window_options( self, input: Option<OffPeakWindowOptions> ) -> Self
Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on the domain, including service software updates and Auto-Tune enhancements that require a blue/green deployment. If no options are specified, the default start time of 10:00 P.M. local time (for the Region that the domain is created in) is used.
sourcepub fn get_off_peak_window_options(&self) -> &Option<OffPeakWindowOptions>
pub fn get_off_peak_window_options(&self) -> &Option<OffPeakWindowOptions>
Specifies a daily 10-hour time block during which OpenSearch Service can perform configuration changes on the domain, including service software updates and Auto-Tune enhancements that require a blue/green deployment. If no options are specified, the default start time of 10:00 P.M. local time (for the Region that the domain is created in) is used.
sourcepub fn software_update_options(self, input: SoftwareUpdateOptions) -> Self
pub fn software_update_options(self, input: SoftwareUpdateOptions) -> Self
Software update options for the domain.
sourcepub fn set_software_update_options(
self,
input: Option<SoftwareUpdateOptions>
) -> Self
pub fn set_software_update_options( self, input: Option<SoftwareUpdateOptions> ) -> Self
Software update options for the domain.
sourcepub fn get_software_update_options(&self) -> &Option<SoftwareUpdateOptions>
pub fn get_software_update_options(&self) -> &Option<SoftwareUpdateOptions>
Software update options for the domain.
sourcepub fn build(self) -> Result<CreateDomainInput, BuildError>
pub fn build(self) -> Result<CreateDomainInput, BuildError>
Consumes the builder and constructs a CreateDomainInput
.
source§impl CreateDomainInputBuilder
impl CreateDomainInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDomainOutput, SdkError<CreateDomainError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDomainOutput, SdkError<CreateDomainError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDomainInputBuilder
impl Clone for CreateDomainInputBuilder
source§fn clone(&self) -> CreateDomainInputBuilder
fn clone(&self) -> CreateDomainInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDomainInputBuilder
impl Debug for CreateDomainInputBuilder
source§impl Default for CreateDomainInputBuilder
impl Default for CreateDomainInputBuilder
source§fn default() -> CreateDomainInputBuilder
fn default() -> CreateDomainInputBuilder
source§impl PartialEq<CreateDomainInputBuilder> for CreateDomainInputBuilder
impl PartialEq<CreateDomainInputBuilder> for CreateDomainInputBuilder
source§fn eq(&self, other: &CreateDomainInputBuilder) -> bool
fn eq(&self, other: &CreateDomainInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.