#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateCluster {
_private: (),
}
impl CreateCluster {
pub fn builder() -> crate::input::create_cluster_input::Builder {
crate::input::create_cluster_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateCluster {
type Output =
std::result::Result<crate::output::CreateClusterOutput, crate::error::CreateClusterError>;
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_cluster_error(response)
} else {
crate::operation_deser::parse_create_cluster_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateClusterSnapshot {
_private: (),
}
impl CreateClusterSnapshot {
pub fn builder() -> crate::input::create_cluster_snapshot_input::Builder {
crate::input::create_cluster_snapshot_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateClusterSnapshot {
type Output = std::result::Result<
crate::output::CreateClusterSnapshotOutput,
crate::error::CreateClusterSnapshotError,
>;
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_cluster_snapshot_error(response)
} else {
crate::operation_deser::parse_create_cluster_snapshot_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteCluster {
_private: (),
}
impl DeleteCluster {
pub fn builder() -> crate::input::delete_cluster_input::Builder {
crate::input::delete_cluster_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteCluster {
type Output =
std::result::Result<crate::output::DeleteClusterOutput, crate::error::DeleteClusterError>;
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_cluster_error(response)
} else {
crate::operation_deser::parse_delete_cluster_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteClusterSnapshot {
_private: (),
}
impl DeleteClusterSnapshot {
pub fn builder() -> crate::input::delete_cluster_snapshot_input::Builder {
crate::input::delete_cluster_snapshot_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteClusterSnapshot {
type Output = std::result::Result<
crate::output::DeleteClusterSnapshotOutput,
crate::error::DeleteClusterSnapshotError,
>;
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_cluster_snapshot_error(response)
} else {
crate::operation_deser::parse_delete_cluster_snapshot_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetCluster {
_private: (),
}
impl GetCluster {
pub fn builder() -> crate::input::get_cluster_input::Builder {
crate::input::get_cluster_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetCluster {
type Output =
std::result::Result<crate::output::GetClusterOutput, crate::error::GetClusterError>;
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_cluster_error(response)
} else {
crate::operation_deser::parse_get_cluster_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetClusterSnapshot {
_private: (),
}
impl GetClusterSnapshot {
pub fn builder() -> crate::input::get_cluster_snapshot_input::Builder {
crate::input::get_cluster_snapshot_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetClusterSnapshot {
type Output = std::result::Result<
crate::output::GetClusterSnapshotOutput,
crate::error::GetClusterSnapshotError,
>;
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_cluster_snapshot_error(response)
} else {
crate::operation_deser::parse_get_cluster_snapshot_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListClusters {
_private: (),
}
impl ListClusters {
pub fn builder() -> crate::input::list_clusters_input::Builder {
crate::input::list_clusters_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListClusters {
type Output =
std::result::Result<crate::output::ListClustersOutput, crate::error::ListClustersError>;
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_clusters_error(response)
} else {
crate::operation_deser::parse_list_clusters_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListClusterSnapshots {
_private: (),
}
impl ListClusterSnapshots {
pub fn builder() -> crate::input::list_cluster_snapshots_input::Builder {
crate::input::list_cluster_snapshots_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListClusterSnapshots {
type Output = std::result::Result<
crate::output::ListClusterSnapshotsOutput,
crate::error::ListClusterSnapshotsError,
>;
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_cluster_snapshots_error(response)
} else {
crate::operation_deser::parse_list_cluster_snapshots_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListTagsForResource {
_private: (),
}
impl ListTagsForResource {
pub fn builder() -> crate::input::list_tags_for_resource_input::Builder {
crate::input::list_tags_for_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTagsForResource {
type Output = std::result::Result<
crate::output::ListTagsForResourceOutput,
crate::error::ListTagsForResourceError,
>;
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_for_resource_error(response)
} else {
crate::operation_deser::parse_list_tags_for_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct RestoreClusterFromSnapshot {
_private: (),
}
impl RestoreClusterFromSnapshot {
pub fn builder() -> crate::input::restore_cluster_from_snapshot_input::Builder {
crate::input::restore_cluster_from_snapshot_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RestoreClusterFromSnapshot {
type Output = std::result::Result<
crate::output::RestoreClusterFromSnapshotOutput,
crate::error::RestoreClusterFromSnapshotError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_restore_cluster_from_snapshot_error(response)
} else {
crate::operation_deser::parse_restore_cluster_from_snapshot_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct TagResource {
_private: (),
}
impl TagResource {
pub fn builder() -> crate::input::tag_resource_input::Builder {
crate::input::tag_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for TagResource {
type Output =
std::result::Result<crate::output::TagResourceOutput, crate::error::TagResourceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_tag_resource_error(response)
} else {
crate::operation_deser::parse_tag_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UntagResource {
_private: (),
}
impl UntagResource {
pub fn builder() -> crate::input::untag_resource_input::Builder {
crate::input::untag_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UntagResource {
type Output =
std::result::Result<crate::output::UntagResourceOutput, crate::error::UntagResourceError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_untag_resource_error(response)
} else {
crate::operation_deser::parse_untag_resource_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateCluster {
_private: (),
}
impl UpdateCluster {
pub fn builder() -> crate::input::update_cluster_input::Builder {
crate::input::update_cluster_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateCluster {
type Output =
std::result::Result<crate::output::UpdateClusterOutput, crate::error::UpdateClusterError>;
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_cluster_error(response)
} else {
crate::operation_deser::parse_update_cluster_response(response)
}
}
}
pub mod customize;