pub struct Builder { /* private fields */ }
Expand description

Implementations§

IAM policy document specifying the access policies for the new Elasticsearch domain.

IAM policy document specifying the access policies for the new Elasticsearch domain.

Examples found in repository?
src/json_deser.rs (lines 11901-11907)
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",
            ),
        ),
    }
}

Additional options for the domain endpoint.

Additional options for the domain endpoint.

Examples found in repository?
src/json_deser.rs (lines 11910-11912)
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",
            ),
        ),
    }
}

Unique identifier for an Elasticsearch domain.

Unique identifier for an Elasticsearch domain.

Examples found in repository?
src/json_deser.rs (lines 11915-11921)
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",
            ),
        ),
    }
}

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).

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?
src/json_deser.rs (lines 11924-11930)
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",
            ),
        ),
    }
}

Domain-specific endpoint used to submit index, search, and data upload requests to an Elasticsearch domain.

The endpoint is a service URL.

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?
src/json_deser.rs (lines 11933-11939)
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",
            ),
        ),
    }
}

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.

The key-value pair that exists if the Elasticsearch domain uses VPC endpoints.

Examples found in repository?
src/json_deser.rs (lines 11942-11944)
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",
            ),
        ),
    }
}

OpenSearch version.

OpenSearch version.

Examples found in repository?
src/json_deser.rs (lines 11947-11953)
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",
            ),
        ),
    }
}

Information about an OpenSearch cluster configuration.

Information about an OpenSearch cluster configuration.

Examples found in repository?
src/json_deser.rs (lines 11956-11958)
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",
            ),
        ),
    }
}

Details about the configuration for encryption at rest.

Details about the configuration for encryption at rest.

Examples found in repository?
src/json_deser.rs (lines 11961-11963)
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",
            ),
        ),
    }
}

Configures the CloudWatch Logs to publish for the Elasticsearch domain.

Configures the CloudWatch Logs to publish for the Elasticsearch domain.

Examples found in repository?
src/json_deser.rs (lines 11966-11968)
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",
            ),
        ),
    }
}

Details about the configuration for node-to-node encryption.

Details about the configuration for node-to-node encryption.

Examples found in repository?
src/json_deser.rs (lines 11971-11973)
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",
            ),
        ),
    }
}

Information about the status of a domain relative to the latest service software.

Information about the status of a domain relative to the latest service software.

Examples found in repository?
src/json_deser.rs (lines 11976-11978)
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",
            ),
        ),
    }
}

Information that OpenSearch derives based on VPCOptions for the domain.

Information that OpenSearch derives based on VPCOptions for the domain.

Examples found in repository?
src/json_deser.rs (lines 11981-11983)
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",
            ),
        ),
    }
}

Consumes the builder and constructs a AwsElasticsearchDomainDetails.

Examples found in repository?
src/json_deser.rs (line 11998)
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",
            ),
        ),
    }
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more