pub struct Builder { /* private fields */ }
Expand description
A builder for AwsElasticsearchDomainDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn access_policies(self, input: impl Into<String>) -> Self
pub fn access_policies(self, input: impl Into<String>) -> Self
IAM policy document specifying the access policies for the new Elasticsearch domain.
sourcepub fn set_access_policies(self, input: Option<String>) -> Self
pub fn set_access_policies(self, input: Option<String>) -> Self
IAM policy document specifying the access policies for the new Elasticsearch domain.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn domain_endpoint_options(
self,
input: AwsElasticsearchDomainDomainEndpointOptions
) -> Self
pub fn domain_endpoint_options(
self,
input: AwsElasticsearchDomainDomainEndpointOptions
) -> Self
Additional options for the domain endpoint.
sourcepub fn set_domain_endpoint_options(
self,
input: Option<AwsElasticsearchDomainDomainEndpointOptions>
) -> Self
pub fn set_domain_endpoint_options(
self,
input: Option<AwsElasticsearchDomainDomainEndpointOptions>
) -> Self
Additional options for the domain endpoint.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn domain_id(self, input: impl Into<String>) -> Self
pub fn domain_id(self, input: impl Into<String>) -> Self
Unique identifier for an Elasticsearch domain.
sourcepub fn set_domain_id(self, input: Option<String>) -> Self
pub fn set_domain_id(self, input: Option<String>) -> Self
Unique identifier for an Elasticsearch domain.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
Name of an Elasticsearch domain.
Domain names are unique across all domains owned by the same account within an Amazon Web Services Region.
Domain names must start with a lowercase letter and must be between 3 and 28 characters.
Valid characters are a-z (lowercase only), 0-9, and – (hyphen).
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
Name of an Elasticsearch domain.
Domain names are unique across all domains owned by the same account within an Amazon Web Services Region.
Domain names must start with a lowercase letter and must be between 3 and 28 characters.
Valid characters are a-z (lowercase only), 0-9, and – (hyphen).
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn endpoint(self, input: impl Into<String>) -> Self
pub fn endpoint(self, input: impl Into<String>) -> Self
Domain-specific endpoint used to submit index, search, and data upload requests to an Elasticsearch domain.
The endpoint is a service URL.
sourcepub fn set_endpoint(self, input: Option<String>) -> Self
pub fn set_endpoint(self, input: Option<String>) -> Self
Domain-specific endpoint used to submit index, search, and data upload requests to an Elasticsearch domain.
The endpoint is a service URL.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn endpoints(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn endpoints(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to endpoints
.
To override the contents of this collection use set_endpoints
.
The key-value pair that exists if the Elasticsearch domain uses VPC endpoints.
sourcepub fn set_endpoints(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_endpoints(self, input: Option<HashMap<String, String>>) -> Self
The key-value pair that exists if the Elasticsearch domain uses VPC endpoints.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn elasticsearch_version(self, input: impl Into<String>) -> Self
pub fn elasticsearch_version(self, input: impl Into<String>) -> Self
OpenSearch version.
sourcepub fn set_elasticsearch_version(self, input: Option<String>) -> Self
pub fn set_elasticsearch_version(self, input: Option<String>) -> Self
OpenSearch version.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn elasticsearch_cluster_config(
self,
input: AwsElasticsearchDomainElasticsearchClusterConfigDetails
) -> Self
pub fn elasticsearch_cluster_config(
self,
input: AwsElasticsearchDomainElasticsearchClusterConfigDetails
) -> Self
Information about an OpenSearch cluster configuration.
sourcepub fn set_elasticsearch_cluster_config(
self,
input: Option<AwsElasticsearchDomainElasticsearchClusterConfigDetails>
) -> Self
pub fn set_elasticsearch_cluster_config(
self,
input: Option<AwsElasticsearchDomainElasticsearchClusterConfigDetails>
) -> Self
Information about an OpenSearch cluster configuration.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn encryption_at_rest_options(
self,
input: AwsElasticsearchDomainEncryptionAtRestOptions
) -> Self
pub fn encryption_at_rest_options(
self,
input: AwsElasticsearchDomainEncryptionAtRestOptions
) -> Self
Details about the configuration for encryption at rest.
sourcepub fn set_encryption_at_rest_options(
self,
input: Option<AwsElasticsearchDomainEncryptionAtRestOptions>
) -> Self
pub fn set_encryption_at_rest_options(
self,
input: Option<AwsElasticsearchDomainEncryptionAtRestOptions>
) -> Self
Details about the configuration for encryption at rest.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn log_publishing_options(
self,
input: AwsElasticsearchDomainLogPublishingOptions
) -> Self
pub fn log_publishing_options(
self,
input: AwsElasticsearchDomainLogPublishingOptions
) -> Self
Configures the CloudWatch Logs to publish for the Elasticsearch domain.
sourcepub fn set_log_publishing_options(
self,
input: Option<AwsElasticsearchDomainLogPublishingOptions>
) -> Self
pub fn set_log_publishing_options(
self,
input: Option<AwsElasticsearchDomainLogPublishingOptions>
) -> Self
Configures the CloudWatch Logs to publish for the Elasticsearch domain.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn node_to_node_encryption_options(
self,
input: AwsElasticsearchDomainNodeToNodeEncryptionOptions
) -> Self
pub fn node_to_node_encryption_options(
self,
input: AwsElasticsearchDomainNodeToNodeEncryptionOptions
) -> Self
Details about the configuration for node-to-node encryption.
sourcepub fn set_node_to_node_encryption_options(
self,
input: Option<AwsElasticsearchDomainNodeToNodeEncryptionOptions>
) -> Self
pub fn set_node_to_node_encryption_options(
self,
input: Option<AwsElasticsearchDomainNodeToNodeEncryptionOptions>
) -> Self
Details about the configuration for node-to-node encryption.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn service_software_options(
self,
input: AwsElasticsearchDomainServiceSoftwareOptions
) -> Self
pub fn service_software_options(
self,
input: AwsElasticsearchDomainServiceSoftwareOptions
) -> Self
Information about the status of a domain relative to the latest service software.
sourcepub fn set_service_software_options(
self,
input: Option<AwsElasticsearchDomainServiceSoftwareOptions>
) -> Self
pub fn set_service_software_options(
self,
input: Option<AwsElasticsearchDomainServiceSoftwareOptions>
) -> Self
Information about the status of a domain relative to the latest service software.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn vpc_options(self, input: AwsElasticsearchDomainVpcOptions) -> Self
pub fn vpc_options(self, input: AwsElasticsearchDomainVpcOptions) -> Self
Information that OpenSearch derives based on VPCOptions
for the domain.
sourcepub fn set_vpc_options(
self,
input: Option<AwsElasticsearchDomainVpcOptions>
) -> Self
pub fn set_vpc_options(
self,
input: Option<AwsElasticsearchDomainVpcOptions>
) -> Self
Information that OpenSearch derives based on VPCOptions
for the domain.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> AwsElasticsearchDomainDetails
pub fn build(self) -> AwsElasticsearchDomainDetails
Consumes the builder and constructs a AwsElasticsearchDomainDetails
.
Examples found in repository?
11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006
pub(crate) fn deser_structure_crate_model_aws_elasticsearch_domain_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsElasticsearchDomainDetails>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::aws_elasticsearch_domain_details::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"AccessPolicies" => {
builder = builder.set_access_policies(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainEndpointOptions" => {
builder = builder.set_domain_endpoint_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_domain_endpoint_options(tokens)?
);
}
"DomainId" => {
builder = builder.set_domain_id(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"DomainName" => {
builder = builder.set_domain_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoint" => {
builder = builder.set_endpoint(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"Endpoints" => {
builder = builder.set_endpoints(
crate::json_deser::deser_map_com_amazonaws_securityhub_field_map(tokens)?
);
}
"ElasticsearchVersion" => {
builder = builder.set_elasticsearch_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"ElasticsearchClusterConfig" => {
builder = builder.set_elasticsearch_cluster_config(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_elasticsearch_cluster_config_details(tokens)?
);
}
"EncryptionAtRestOptions" => {
builder = builder.set_encryption_at_rest_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_encryption_at_rest_options(tokens)?
);
}
"LogPublishingOptions" => {
builder = builder.set_log_publishing_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_log_publishing_options(tokens)?
);
}
"NodeToNodeEncryptionOptions" => {
builder = builder.set_node_to_node_encryption_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_node_to_node_encryption_options(tokens)?
);
}
"ServiceSoftwareOptions" => {
builder = builder.set_service_software_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_service_software_options(tokens)?
);
}
"VPCOptions" => {
builder = builder.set_vpc_options(
crate::json_deser::deser_structure_crate_model_aws_elasticsearch_domain_vpc_options(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}