#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct AcceptInboundCrossClusterSearchConnection {
_private: (),
}
impl AcceptInboundCrossClusterSearchConnection {
pub fn builder() -> crate::input::accept_inbound_cross_cluster_search_connection_input::Builder
{
crate::input::accept_inbound_cross_cluster_search_connection_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for AcceptInboundCrossClusterSearchConnection {
type Output = std::result::Result<
crate::output::AcceptInboundCrossClusterSearchConnectionOutput,
crate::error::AcceptInboundCrossClusterSearchConnectionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_accept_inbound_cross_cluster_search_connection_error(
response,
)
} else {
crate::operation_deser::parse_accept_inbound_cross_cluster_search_connection_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct AddTags {
_private: (),
}
impl AddTags {
pub fn builder() -> crate::input::add_tags_input::Builder {
crate::input::add_tags_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for AddTags {
type Output = std::result::Result<crate::output::AddTagsOutput, crate::error::AddTagsError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_add_tags_error(response)
} else {
crate::operation_deser::parse_add_tags_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct AssociatePackage {
_private: (),
}
impl AssociatePackage {
pub fn builder() -> crate::input::associate_package_input::Builder {
crate::input::associate_package_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for AssociatePackage {
type Output = std::result::Result<
crate::output::AssociatePackageOutput,
crate::error::AssociatePackageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_associate_package_error(response)
} else {
crate::operation_deser::parse_associate_package_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct AuthorizeVpcEndpointAccess {
_private: (),
}
impl AuthorizeVpcEndpointAccess {
pub fn builder() -> crate::input::authorize_vpc_endpoint_access_input::Builder {
crate::input::authorize_vpc_endpoint_access_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for AuthorizeVpcEndpointAccess {
type Output = std::result::Result<
crate::output::AuthorizeVpcEndpointAccessOutput,
crate::error::AuthorizeVpcEndpointAccessError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_authorize_vpc_endpoint_access_error(response)
} else {
crate::operation_deser::parse_authorize_vpc_endpoint_access_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CancelElasticsearchServiceSoftwareUpdate {
_private: (),
}
impl CancelElasticsearchServiceSoftwareUpdate {
pub fn builder() -> crate::input::cancel_elasticsearch_service_software_update_input::Builder {
crate::input::cancel_elasticsearch_service_software_update_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CancelElasticsearchServiceSoftwareUpdate {
type Output = std::result::Result<
crate::output::CancelElasticsearchServiceSoftwareUpdateOutput,
crate::error::CancelElasticsearchServiceSoftwareUpdateError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_cancel_elasticsearch_service_software_update_error(
response,
)
} else {
crate::operation_deser::parse_cancel_elasticsearch_service_software_update_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateElasticsearchDomain {
_private: (),
}
impl CreateElasticsearchDomain {
pub fn builder() -> crate::input::create_elasticsearch_domain_input::Builder {
crate::input::create_elasticsearch_domain_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateElasticsearchDomain {
type Output = std::result::Result<
crate::output::CreateElasticsearchDomainOutput,
crate::error::CreateElasticsearchDomainError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_elasticsearch_domain_error(response)
} else {
crate::operation_deser::parse_create_elasticsearch_domain_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateOutboundCrossClusterSearchConnection {
_private: (),
}
impl CreateOutboundCrossClusterSearchConnection {
pub fn builder() -> crate::input::create_outbound_cross_cluster_search_connection_input::Builder
{
crate::input::create_outbound_cross_cluster_search_connection_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateOutboundCrossClusterSearchConnection {
type Output = std::result::Result<
crate::output::CreateOutboundCrossClusterSearchConnectionOutput,
crate::error::CreateOutboundCrossClusterSearchConnectionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_outbound_cross_cluster_search_connection_error(
response,
)
} else {
crate::operation_deser::parse_create_outbound_cross_cluster_search_connection_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreatePackage {
_private: (),
}
impl CreatePackage {
pub fn builder() -> crate::input::create_package_input::Builder {
crate::input::create_package_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreatePackage {
type Output =
std::result::Result<crate::output::CreatePackageOutput, crate::error::CreatePackageError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_package_error(response)
} else {
crate::operation_deser::parse_create_package_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateVpcEndpoint {
_private: (),
}
impl CreateVpcEndpoint {
pub fn builder() -> crate::input::create_vpc_endpoint_input::Builder {
crate::input::create_vpc_endpoint_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateVpcEndpoint {
type Output = std::result::Result<
crate::output::CreateVpcEndpointOutput,
crate::error::CreateVpcEndpointError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_create_vpc_endpoint_error(response)
} else {
crate::operation_deser::parse_create_vpc_endpoint_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteElasticsearchDomain {
_private: (),
}
impl DeleteElasticsearchDomain {
pub fn builder() -> crate::input::delete_elasticsearch_domain_input::Builder {
crate::input::delete_elasticsearch_domain_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteElasticsearchDomain {
type Output = std::result::Result<
crate::output::DeleteElasticsearchDomainOutput,
crate::error::DeleteElasticsearchDomainError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_elasticsearch_domain_error(response)
} else {
crate::operation_deser::parse_delete_elasticsearch_domain_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteElasticsearchServiceRole {
_private: (),
}
impl DeleteElasticsearchServiceRole {
pub fn builder() -> crate::input::delete_elasticsearch_service_role_input::Builder {
crate::input::delete_elasticsearch_service_role_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteElasticsearchServiceRole {
type Output = std::result::Result<
crate::output::DeleteElasticsearchServiceRoleOutput,
crate::error::DeleteElasticsearchServiceRoleError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_elasticsearch_service_role_error(response)
} else {
crate::operation_deser::parse_delete_elasticsearch_service_role_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteInboundCrossClusterSearchConnection {
_private: (),
}
impl DeleteInboundCrossClusterSearchConnection {
pub fn builder() -> crate::input::delete_inbound_cross_cluster_search_connection_input::Builder
{
crate::input::delete_inbound_cross_cluster_search_connection_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteInboundCrossClusterSearchConnection {
type Output = std::result::Result<
crate::output::DeleteInboundCrossClusterSearchConnectionOutput,
crate::error::DeleteInboundCrossClusterSearchConnectionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_inbound_cross_cluster_search_connection_error(
response,
)
} else {
crate::operation_deser::parse_delete_inbound_cross_cluster_search_connection_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteOutboundCrossClusterSearchConnection {
_private: (),
}
impl DeleteOutboundCrossClusterSearchConnection {
pub fn builder() -> crate::input::delete_outbound_cross_cluster_search_connection_input::Builder
{
crate::input::delete_outbound_cross_cluster_search_connection_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteOutboundCrossClusterSearchConnection {
type Output = std::result::Result<
crate::output::DeleteOutboundCrossClusterSearchConnectionOutput,
crate::error::DeleteOutboundCrossClusterSearchConnectionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_outbound_cross_cluster_search_connection_error(
response,
)
} else {
crate::operation_deser::parse_delete_outbound_cross_cluster_search_connection_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeletePackage {
_private: (),
}
impl DeletePackage {
pub fn builder() -> crate::input::delete_package_input::Builder {
crate::input::delete_package_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeletePackage {
type Output =
std::result::Result<crate::output::DeletePackageOutput, crate::error::DeletePackageError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_package_error(response)
} else {
crate::operation_deser::parse_delete_package_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteVpcEndpoint {
_private: (),
}
impl DeleteVpcEndpoint {
pub fn builder() -> crate::input::delete_vpc_endpoint_input::Builder {
crate::input::delete_vpc_endpoint_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteVpcEndpoint {
type Output = std::result::Result<
crate::output::DeleteVpcEndpointOutput,
crate::error::DeleteVpcEndpointError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_delete_vpc_endpoint_error(response)
} else {
crate::operation_deser::parse_delete_vpc_endpoint_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeDomainAutoTunes {
_private: (),
}
impl DescribeDomainAutoTunes {
pub fn builder() -> crate::input::describe_domain_auto_tunes_input::Builder {
crate::input::describe_domain_auto_tunes_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeDomainAutoTunes {
type Output = std::result::Result<
crate::output::DescribeDomainAutoTunesOutput,
crate::error::DescribeDomainAutoTunesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_domain_auto_tunes_error(response)
} else {
crate::operation_deser::parse_describe_domain_auto_tunes_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeDomainChangeProgress {
_private: (),
}
impl DescribeDomainChangeProgress {
pub fn builder() -> crate::input::describe_domain_change_progress_input::Builder {
crate::input::describe_domain_change_progress_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeDomainChangeProgress {
type Output = std::result::Result<
crate::output::DescribeDomainChangeProgressOutput,
crate::error::DescribeDomainChangeProgressError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_domain_change_progress_error(response)
} else {
crate::operation_deser::parse_describe_domain_change_progress_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeElasticsearchDomain {
_private: (),
}
impl DescribeElasticsearchDomain {
pub fn builder() -> crate::input::describe_elasticsearch_domain_input::Builder {
crate::input::describe_elasticsearch_domain_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeElasticsearchDomain {
type Output = std::result::Result<
crate::output::DescribeElasticsearchDomainOutput,
crate::error::DescribeElasticsearchDomainError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_elasticsearch_domain_error(response)
} else {
crate::operation_deser::parse_describe_elasticsearch_domain_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeElasticsearchDomainConfig {
_private: (),
}
impl DescribeElasticsearchDomainConfig {
pub fn builder() -> crate::input::describe_elasticsearch_domain_config_input::Builder {
crate::input::describe_elasticsearch_domain_config_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeElasticsearchDomainConfig {
type Output = std::result::Result<
crate::output::DescribeElasticsearchDomainConfigOutput,
crate::error::DescribeElasticsearchDomainConfigError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_elasticsearch_domain_config_error(response)
} else {
crate::operation_deser::parse_describe_elasticsearch_domain_config_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeElasticsearchDomains {
_private: (),
}
impl DescribeElasticsearchDomains {
pub fn builder() -> crate::input::describe_elasticsearch_domains_input::Builder {
crate::input::describe_elasticsearch_domains_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeElasticsearchDomains {
type Output = std::result::Result<
crate::output::DescribeElasticsearchDomainsOutput,
crate::error::DescribeElasticsearchDomainsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_elasticsearch_domains_error(response)
} else {
crate::operation_deser::parse_describe_elasticsearch_domains_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeElasticsearchInstanceTypeLimits {
_private: (),
}
impl DescribeElasticsearchInstanceTypeLimits {
pub fn builder() -> crate::input::describe_elasticsearch_instance_type_limits_input::Builder {
crate::input::describe_elasticsearch_instance_type_limits_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeElasticsearchInstanceTypeLimits {
type Output = std::result::Result<
crate::output::DescribeElasticsearchInstanceTypeLimitsOutput,
crate::error::DescribeElasticsearchInstanceTypeLimitsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_elasticsearch_instance_type_limits_error(
response,
)
} else {
crate::operation_deser::parse_describe_elasticsearch_instance_type_limits_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeInboundCrossClusterSearchConnections {
_private: (),
}
impl DescribeInboundCrossClusterSearchConnections {
pub fn builder(
) -> crate::input::describe_inbound_cross_cluster_search_connections_input::Builder {
crate::input::describe_inbound_cross_cluster_search_connections_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse
for DescribeInboundCrossClusterSearchConnections
{
type Output = std::result::Result<
crate::output::DescribeInboundCrossClusterSearchConnectionsOutput,
crate::error::DescribeInboundCrossClusterSearchConnectionsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_inbound_cross_cluster_search_connections_error(
response,
)
} else {
crate::operation_deser::parse_describe_inbound_cross_cluster_search_connections_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeOutboundCrossClusterSearchConnections {
_private: (),
}
impl DescribeOutboundCrossClusterSearchConnections {
pub fn builder(
) -> crate::input::describe_outbound_cross_cluster_search_connections_input::Builder {
crate::input::describe_outbound_cross_cluster_search_connections_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse
for DescribeOutboundCrossClusterSearchConnections
{
type Output = std::result::Result<
crate::output::DescribeOutboundCrossClusterSearchConnectionsOutput,
crate::error::DescribeOutboundCrossClusterSearchConnectionsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_outbound_cross_cluster_search_connections_error(
response,
)
} else {
crate::operation_deser::parse_describe_outbound_cross_cluster_search_connections_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribePackages {
_private: (),
}
impl DescribePackages {
pub fn builder() -> crate::input::describe_packages_input::Builder {
crate::input::describe_packages_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribePackages {
type Output = std::result::Result<
crate::output::DescribePackagesOutput,
crate::error::DescribePackagesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_packages_error(response)
} else {
crate::operation_deser::parse_describe_packages_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeReservedElasticsearchInstanceOfferings {
_private: (),
}
impl DescribeReservedElasticsearchInstanceOfferings {
pub fn builder(
) -> crate::input::describe_reserved_elasticsearch_instance_offerings_input::Builder {
crate::input::describe_reserved_elasticsearch_instance_offerings_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse
for DescribeReservedElasticsearchInstanceOfferings
{
type Output = std::result::Result<
crate::output::DescribeReservedElasticsearchInstanceOfferingsOutput,
crate::error::DescribeReservedElasticsearchInstanceOfferingsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_reserved_elasticsearch_instance_offerings_error(
response,
)
} else {
crate::operation_deser::parse_describe_reserved_elasticsearch_instance_offerings_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeReservedElasticsearchInstances {
_private: (),
}
impl DescribeReservedElasticsearchInstances {
pub fn builder() -> crate::input::describe_reserved_elasticsearch_instances_input::Builder {
crate::input::describe_reserved_elasticsearch_instances_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeReservedElasticsearchInstances {
type Output = std::result::Result<
crate::output::DescribeReservedElasticsearchInstancesOutput,
crate::error::DescribeReservedElasticsearchInstancesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_reserved_elasticsearch_instances_error(response)
} else {
crate::operation_deser::parse_describe_reserved_elasticsearch_instances_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeVpcEndpoints {
_private: (),
}
impl DescribeVpcEndpoints {
pub fn builder() -> crate::input::describe_vpc_endpoints_input::Builder {
crate::input::describe_vpc_endpoints_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeVpcEndpoints {
type Output = std::result::Result<
crate::output::DescribeVpcEndpointsOutput,
crate::error::DescribeVpcEndpointsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_describe_vpc_endpoints_error(response)
} else {
crate::operation_deser::parse_describe_vpc_endpoints_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DissociatePackage {
_private: (),
}
impl DissociatePackage {
pub fn builder() -> crate::input::dissociate_package_input::Builder {
crate::input::dissociate_package_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DissociatePackage {
type Output = std::result::Result<
crate::output::DissociatePackageOutput,
crate::error::DissociatePackageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_dissociate_package_error(response)
} else {
crate::operation_deser::parse_dissociate_package_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetCompatibleElasticsearchVersions {
_private: (),
}
impl GetCompatibleElasticsearchVersions {
pub fn builder() -> crate::input::get_compatible_elasticsearch_versions_input::Builder {
crate::input::get_compatible_elasticsearch_versions_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetCompatibleElasticsearchVersions {
type Output = std::result::Result<
crate::output::GetCompatibleElasticsearchVersionsOutput,
crate::error::GetCompatibleElasticsearchVersionsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_compatible_elasticsearch_versions_error(response)
} else {
crate::operation_deser::parse_get_compatible_elasticsearch_versions_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetPackageVersionHistory {
_private: (),
}
impl GetPackageVersionHistory {
pub fn builder() -> crate::input::get_package_version_history_input::Builder {
crate::input::get_package_version_history_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetPackageVersionHistory {
type Output = std::result::Result<
crate::output::GetPackageVersionHistoryOutput,
crate::error::GetPackageVersionHistoryError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_package_version_history_error(response)
} else {
crate::operation_deser::parse_get_package_version_history_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetUpgradeHistory {
_private: (),
}
impl GetUpgradeHistory {
pub fn builder() -> crate::input::get_upgrade_history_input::Builder {
crate::input::get_upgrade_history_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetUpgradeHistory {
type Output = std::result::Result<
crate::output::GetUpgradeHistoryOutput,
crate::error::GetUpgradeHistoryError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_upgrade_history_error(response)
} else {
crate::operation_deser::parse_get_upgrade_history_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetUpgradeStatus {
_private: (),
}
impl GetUpgradeStatus {
pub fn builder() -> crate::input::get_upgrade_status_input::Builder {
crate::input::get_upgrade_status_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetUpgradeStatus {
type Output = std::result::Result<
crate::output::GetUpgradeStatusOutput,
crate::error::GetUpgradeStatusError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_get_upgrade_status_error(response)
} else {
crate::operation_deser::parse_get_upgrade_status_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListDomainNames {
_private: (),
}
impl ListDomainNames {
pub fn builder() -> crate::input::list_domain_names_input::Builder {
crate::input::list_domain_names_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListDomainNames {
type Output = std::result::Result<
crate::output::ListDomainNamesOutput,
crate::error::ListDomainNamesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_domain_names_error(response)
} else {
crate::operation_deser::parse_list_domain_names_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListDomainsForPackage {
_private: (),
}
impl ListDomainsForPackage {
pub fn builder() -> crate::input::list_domains_for_package_input::Builder {
crate::input::list_domains_for_package_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListDomainsForPackage {
type Output = std::result::Result<
crate::output::ListDomainsForPackageOutput,
crate::error::ListDomainsForPackageError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_domains_for_package_error(response)
} else {
crate::operation_deser::parse_list_domains_for_package_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListElasticsearchInstanceTypes {
_private: (),
}
impl ListElasticsearchInstanceTypes {
pub fn builder() -> crate::input::list_elasticsearch_instance_types_input::Builder {
crate::input::list_elasticsearch_instance_types_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListElasticsearchInstanceTypes {
type Output = std::result::Result<
crate::output::ListElasticsearchInstanceTypesOutput,
crate::error::ListElasticsearchInstanceTypesError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_elasticsearch_instance_types_error(response)
} else {
crate::operation_deser::parse_list_elasticsearch_instance_types_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListElasticsearchVersions {
_private: (),
}
impl ListElasticsearchVersions {
pub fn builder() -> crate::input::list_elasticsearch_versions_input::Builder {
crate::input::list_elasticsearch_versions_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListElasticsearchVersions {
type Output = std::result::Result<
crate::output::ListElasticsearchVersionsOutput,
crate::error::ListElasticsearchVersionsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_elasticsearch_versions_error(response)
} else {
crate::operation_deser::parse_list_elasticsearch_versions_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListPackagesForDomain {
_private: (),
}
impl ListPackagesForDomain {
pub fn builder() -> crate::input::list_packages_for_domain_input::Builder {
crate::input::list_packages_for_domain_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListPackagesForDomain {
type Output = std::result::Result<
crate::output::ListPackagesForDomainOutput,
crate::error::ListPackagesForDomainError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_packages_for_domain_error(response)
} else {
crate::operation_deser::parse_list_packages_for_domain_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListTags {
_private: (),
}
impl ListTags {
pub fn builder() -> crate::input::list_tags_input::Builder {
crate::input::list_tags_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTags {
type Output = std::result::Result<crate::output::ListTagsOutput, crate::error::ListTagsError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_tags_error(response)
} else {
crate::operation_deser::parse_list_tags_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListVpcEndpointAccess {
_private: (),
}
impl ListVpcEndpointAccess {
pub fn builder() -> crate::input::list_vpc_endpoint_access_input::Builder {
crate::input::list_vpc_endpoint_access_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListVpcEndpointAccess {
type Output = std::result::Result<
crate::output::ListVpcEndpointAccessOutput,
crate::error::ListVpcEndpointAccessError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_vpc_endpoint_access_error(response)
} else {
crate::operation_deser::parse_list_vpc_endpoint_access_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListVpcEndpoints {
_private: (),
}
impl ListVpcEndpoints {
pub fn builder() -> crate::input::list_vpc_endpoints_input::Builder {
crate::input::list_vpc_endpoints_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListVpcEndpoints {
type Output = std::result::Result<
crate::output::ListVpcEndpointsOutput,
crate::error::ListVpcEndpointsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_vpc_endpoints_error(response)
} else {
crate::operation_deser::parse_list_vpc_endpoints_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListVpcEndpointsForDomain {
_private: (),
}
impl ListVpcEndpointsForDomain {
pub fn builder() -> crate::input::list_vpc_endpoints_for_domain_input::Builder {
crate::input::list_vpc_endpoints_for_domain_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListVpcEndpointsForDomain {
type Output = std::result::Result<
crate::output::ListVpcEndpointsForDomainOutput,
crate::error::ListVpcEndpointsForDomainError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_list_vpc_endpoints_for_domain_error(response)
} else {
crate::operation_deser::parse_list_vpc_endpoints_for_domain_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct PurchaseReservedElasticsearchInstanceOffering {
_private: (),
}
impl PurchaseReservedElasticsearchInstanceOffering {
pub fn builder(
) -> crate::input::purchase_reserved_elasticsearch_instance_offering_input::Builder {
crate::input::purchase_reserved_elasticsearch_instance_offering_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse
for PurchaseReservedElasticsearchInstanceOffering
{
type Output = std::result::Result<
crate::output::PurchaseReservedElasticsearchInstanceOfferingOutput,
crate::error::PurchaseReservedElasticsearchInstanceOfferingError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_purchase_reserved_elasticsearch_instance_offering_error(
response,
)
} else {
crate::operation_deser::parse_purchase_reserved_elasticsearch_instance_offering_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct RejectInboundCrossClusterSearchConnection {
_private: (),
}
impl RejectInboundCrossClusterSearchConnection {
pub fn builder() -> crate::input::reject_inbound_cross_cluster_search_connection_input::Builder
{
crate::input::reject_inbound_cross_cluster_search_connection_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RejectInboundCrossClusterSearchConnection {
type Output = std::result::Result<
crate::output::RejectInboundCrossClusterSearchConnectionOutput,
crate::error::RejectInboundCrossClusterSearchConnectionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_reject_inbound_cross_cluster_search_connection_error(
response,
)
} else {
crate::operation_deser::parse_reject_inbound_cross_cluster_search_connection_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct RemoveTags {
_private: (),
}
impl RemoveTags {
pub fn builder() -> crate::input::remove_tags_input::Builder {
crate::input::remove_tags_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RemoveTags {
type Output =
std::result::Result<crate::output::RemoveTagsOutput, crate::error::RemoveTagsError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_remove_tags_error(response)
} else {
crate::operation_deser::parse_remove_tags_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct RevokeVpcEndpointAccess {
_private: (),
}
impl RevokeVpcEndpointAccess {
pub fn builder() -> crate::input::revoke_vpc_endpoint_access_input::Builder {
crate::input::revoke_vpc_endpoint_access_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RevokeVpcEndpointAccess {
type Output = std::result::Result<
crate::output::RevokeVpcEndpointAccessOutput,
crate::error::RevokeVpcEndpointAccessError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_revoke_vpc_endpoint_access_error(response)
} else {
crate::operation_deser::parse_revoke_vpc_endpoint_access_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartElasticsearchServiceSoftwareUpdate {
_private: (),
}
impl StartElasticsearchServiceSoftwareUpdate {
pub fn builder() -> crate::input::start_elasticsearch_service_software_update_input::Builder {
crate::input::start_elasticsearch_service_software_update_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartElasticsearchServiceSoftwareUpdate {
type Output = std::result::Result<
crate::output::StartElasticsearchServiceSoftwareUpdateOutput,
crate::error::StartElasticsearchServiceSoftwareUpdateError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_start_elasticsearch_service_software_update_error(
response,
)
} else {
crate::operation_deser::parse_start_elasticsearch_service_software_update_response(
response,
)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateElasticsearchDomainConfig {
_private: (),
}
impl UpdateElasticsearchDomainConfig {
pub fn builder() -> crate::input::update_elasticsearch_domain_config_input::Builder {
crate::input::update_elasticsearch_domain_config_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateElasticsearchDomainConfig {
type Output = std::result::Result<
crate::output::UpdateElasticsearchDomainConfigOutput,
crate::error::UpdateElasticsearchDomainConfigError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_elasticsearch_domain_config_error(response)
} else {
crate::operation_deser::parse_update_elasticsearch_domain_config_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdatePackage {
_private: (),
}
impl UpdatePackage {
pub fn builder() -> crate::input::update_package_input::Builder {
crate::input::update_package_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdatePackage {
type Output =
std::result::Result<crate::output::UpdatePackageOutput, crate::error::UpdatePackageError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_package_error(response)
} else {
crate::operation_deser::parse_update_package_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateVpcEndpoint {
_private: (),
}
impl UpdateVpcEndpoint {
pub fn builder() -> crate::input::update_vpc_endpoint_input::Builder {
crate::input::update_vpc_endpoint_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateVpcEndpoint {
type Output = std::result::Result<
crate::output::UpdateVpcEndpointOutput,
crate::error::UpdateVpcEndpointError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_update_vpc_endpoint_error(response)
} else {
crate::operation_deser::parse_update_vpc_endpoint_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpgradeElasticsearchDomain {
_private: (),
}
impl UpgradeElasticsearchDomain {
pub fn builder() -> crate::input::upgrade_elasticsearch_domain_input::Builder {
crate::input::upgrade_elasticsearch_domain_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpgradeElasticsearchDomain {
type Output = std::result::Result<
crate::output::UpgradeElasticsearchDomainOutput,
crate::error::UpgradeElasticsearchDomainError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_upgrade_elasticsearch_domain_error(response)
} else {
crate::operation_deser::parse_upgrade_elasticsearch_domain_response(response)
}
}
}
pub mod customize;