Struct aws_sdk_opensearch::input::CreateDomainInput
source · #[non_exhaustive]pub struct CreateDomainInput { /* private fields */ }
Implementations§
source§impl CreateDomainInput
impl CreateDomainInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDomain, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateDomain, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateDomain
>
Examples found in repository?
958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateDomain,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateDomainError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateDomainOutput,
aws_smithy_http::result::SdkError<crate::error::CreateDomainError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateDomainInput
.
source§impl CreateDomainInput
impl CreateDomainInput
sourcepub fn domain_name(&self) -> Option<&str>
pub fn domain_name(&self) -> Option<&str>
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).
sourcepub fn engine_version(&self) -> Option<&str>
pub fn engine_version(&self) -> Option<&str>
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 .
sourcepub fn cluster_config(&self) -> Option<&ClusterConfig>
pub fn cluster_config(&self) -> Option<&ClusterConfig>
Configuration options for a domain. Specifies the instance type and number of instances in the domain.
sourcepub fn ebs_options(&self) -> Option<&EbsOptions>
pub fn ebs_options(&self) -> Option<&EbsOptions>
Options to enable, disable, and specify the type and size of EBS storage volumes.
sourcepub fn access_policies(&self) -> Option<&str>
pub fn access_policies(&self) -> Option<&str>
IAM access policy as a JSON-formatted string.
sourcepub fn snapshot_options(&self) -> Option<&SnapshotOptions>
pub fn snapshot_options(&self) -> Option<&SnapshotOptions>
Option to set time, in UTC format, of the daily automated snapshot. Default value is 0 hours.
sourcepub fn vpc_options(&self) -> Option<&VpcOptions>
pub fn vpc_options(&self) -> Option<&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 .
sourcepub fn cognito_options(&self) -> Option<&CognitoOptions>
pub fn cognito_options(&self) -> Option<&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.
sourcepub fn encryption_at_rest_options(&self) -> Option<&EncryptionAtRestOptions>
pub fn encryption_at_rest_options(&self) -> Option<&EncryptionAtRestOptions>
Options for encryption of data at rest.
sourcepub fn node_to_node_encryption_options(
&self
) -> Option<&NodeToNodeEncryptionOptions>
pub fn node_to_node_encryption_options(
&self
) -> Option<&NodeToNodeEncryptionOptions>
Node-to-node encryption options.
sourcepub fn advanced_options(&self) -> Option<&HashMap<String, String>>
pub fn advanced_options(&self) -> Option<&HashMap<String, String>>
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.
sourcepub fn log_publishing_options(
&self
) -> Option<&HashMap<LogType, LogPublishingOption>>
pub fn log_publishing_options(
&self
) -> Option<&HashMap<LogType, LogPublishingOption>>
Map of LogType
and LogPublishingOption
, each containing options to publish a given type of OpenSearch log.
sourcepub fn domain_endpoint_options(&self) -> Option<&DomainEndpointOptions>
pub fn domain_endpoint_options(&self) -> Option<&DomainEndpointOptions>
Options to specify configurations that will be applied to the domain endpoint.
sourcepub fn advanced_security_options(&self) -> Option<&AdvancedSecurityOptionsInput>
pub fn advanced_security_options(&self) -> Option<&AdvancedSecurityOptionsInput>
Specifies advanced security options.
sourcepub fn auto_tune_options(&self) -> Option<&AutoTuneOptionsInput>
pub fn auto_tune_options(&self) -> Option<&AutoTuneOptionsInput>
Specifies Auto-Tune options.
Trait Implementations§
source§impl Clone for CreateDomainInput
impl Clone for CreateDomainInput
source§fn clone(&self) -> CreateDomainInput
fn clone(&self) -> CreateDomainInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more