#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CancelRotateSecret {
_private: (),
}
impl CancelRotateSecret {
pub fn builder() -> crate::input::cancel_rotate_secret_input::Builder {
crate::input::cancel_rotate_secret_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CancelRotateSecret {
type Output = std::result::Result<
crate::output::CancelRotateSecretOutput,
crate::error::CancelRotateSecretError,
>;
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_rotate_secret_error(response)
} else {
crate::operation_deser::parse_cancel_rotate_secret_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreateSecret {
_private: (),
}
impl CreateSecret {
pub fn builder() -> crate::input::create_secret_input::Builder {
crate::input::create_secret_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateSecret {
type Output =
std::result::Result<crate::output::CreateSecretOutput, crate::error::CreateSecretError>;
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_secret_error(response)
} else {
crate::operation_deser::parse_create_secret_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DeleteResourcePolicy {
_private: (),
}
impl DeleteResourcePolicy {
pub fn builder() -> crate::input::delete_resource_policy_input::Builder {
crate::input::delete_resource_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteResourcePolicy {
type Output = std::result::Result<
crate::output::DeleteResourcePolicyOutput,
crate::error::DeleteResourcePolicyError,
>;
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_resource_policy_error(response)
} else {
crate::operation_deser::parse_delete_resource_policy_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DeleteSecret {
_private: (),
}
impl DeleteSecret {
pub fn builder() -> crate::input::delete_secret_input::Builder {
crate::input::delete_secret_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteSecret {
type Output =
std::result::Result<crate::output::DeleteSecretOutput, crate::error::DeleteSecretError>;
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_secret_error(response)
} else {
crate::operation_deser::parse_delete_secret_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeSecret {
_private: (),
}
impl DescribeSecret {
pub fn builder() -> crate::input::describe_secret_input::Builder {
crate::input::describe_secret_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeSecret {
type Output =
std::result::Result<crate::output::DescribeSecretOutput, crate::error::DescribeSecretError>;
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_secret_error(response)
} else {
crate::operation_deser::parse_describe_secret_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetRandomPassword {
_private: (),
}
impl GetRandomPassword {
pub fn builder() -> crate::input::get_random_password_input::Builder {
crate::input::get_random_password_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetRandomPassword {
type Output = std::result::Result<
crate::output::GetRandomPasswordOutput,
crate::error::GetRandomPasswordError,
>;
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_random_password_error(response)
} else {
crate::operation_deser::parse_get_random_password_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetResourcePolicy {
_private: (),
}
impl GetResourcePolicy {
pub fn builder() -> crate::input::get_resource_policy_input::Builder {
crate::input::get_resource_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetResourcePolicy {
type Output = std::result::Result<
crate::output::GetResourcePolicyOutput,
crate::error::GetResourcePolicyError,
>;
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_resource_policy_error(response)
} else {
crate::operation_deser::parse_get_resource_policy_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetSecretValue {
_private: (),
}
impl GetSecretValue {
pub fn builder() -> crate::input::get_secret_value_input::Builder {
crate::input::get_secret_value_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetSecretValue {
type Output =
std::result::Result<crate::output::GetSecretValueOutput, crate::error::GetSecretValueError>;
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_secret_value_error(response)
} else {
crate::operation_deser::parse_get_secret_value_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListSecrets {
_private: (),
}
impl ListSecrets {
pub fn builder() -> crate::input::list_secrets_input::Builder {
crate::input::list_secrets_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListSecrets {
type Output =
std::result::Result<crate::output::ListSecretsOutput, crate::error::ListSecretsError>;
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_secrets_error(response)
} else {
crate::operation_deser::parse_list_secrets_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListSecretVersionIds {
_private: (),
}
impl ListSecretVersionIds {
pub fn builder() -> crate::input::list_secret_version_ids_input::Builder {
crate::input::list_secret_version_ids_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListSecretVersionIds {
type Output = std::result::Result<
crate::output::ListSecretVersionIdsOutput,
crate::error::ListSecretVersionIdsError,
>;
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_secret_version_ids_error(response)
} else {
crate::operation_deser::parse_list_secret_version_ids_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct PutResourcePolicy {
_private: (),
}
impl PutResourcePolicy {
pub fn builder() -> crate::input::put_resource_policy_input::Builder {
crate::input::put_resource_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PutResourcePolicy {
type Output = std::result::Result<
crate::output::PutResourcePolicyOutput,
crate::error::PutResourcePolicyError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_put_resource_policy_error(response)
} else {
crate::operation_deser::parse_put_resource_policy_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct PutSecretValue {
_private: (),
}
impl PutSecretValue {
pub fn builder() -> crate::input::put_secret_value_input::Builder {
crate::input::put_secret_value_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PutSecretValue {
type Output =
std::result::Result<crate::output::PutSecretValueOutput, crate::error::PutSecretValueError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_put_secret_value_error(response)
} else {
crate::operation_deser::parse_put_secret_value_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct RemoveRegionsFromReplication {
_private: (),
}
impl RemoveRegionsFromReplication {
pub fn builder() -> crate::input::remove_regions_from_replication_input::Builder {
crate::input::remove_regions_from_replication_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RemoveRegionsFromReplication {
type Output = std::result::Result<
crate::output::RemoveRegionsFromReplicationOutput,
crate::error::RemoveRegionsFromReplicationError,
>;
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_regions_from_replication_error(response)
} else {
crate::operation_deser::parse_remove_regions_from_replication_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ReplicateSecretToRegions {
_private: (),
}
impl ReplicateSecretToRegions {
pub fn builder() -> crate::input::replicate_secret_to_regions_input::Builder {
crate::input::replicate_secret_to_regions_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ReplicateSecretToRegions {
type Output = std::result::Result<
crate::output::ReplicateSecretToRegionsOutput,
crate::error::ReplicateSecretToRegionsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_replicate_secret_to_regions_error(response)
} else {
crate::operation_deser::parse_replicate_secret_to_regions_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct RestoreSecret {
_private: (),
}
impl RestoreSecret {
pub fn builder() -> crate::input::restore_secret_input::Builder {
crate::input::restore_secret_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RestoreSecret {
type Output =
std::result::Result<crate::output::RestoreSecretOutput, crate::error::RestoreSecretError>;
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_secret_error(response)
} else {
crate::operation_deser::parse_restore_secret_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct RotateSecret {
_private: (),
}
impl RotateSecret {
pub fn builder() -> crate::input::rotate_secret_input::Builder {
crate::input::rotate_secret_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for RotateSecret {
type Output =
std::result::Result<crate::output::RotateSecretOutput, crate::error::RotateSecretError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_rotate_secret_error(response)
} else {
crate::operation_deser::parse_rotate_secret_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct StopReplicationToReplica {
_private: (),
}
impl StopReplicationToReplica {
pub fn builder() -> crate::input::stop_replication_to_replica_input::Builder {
crate::input::stop_replication_to_replica_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopReplicationToReplica {
type Output = std::result::Result<
crate::output::StopReplicationToReplicaOutput,
crate::error::StopReplicationToReplicaError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_stop_replication_to_replica_error(response)
} else {
crate::operation_deser::parse_stop_replication_to_replica_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, 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::default::Default, std::clone::Clone, 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::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdateSecret {
_private: (),
}
impl UpdateSecret {
pub fn builder() -> crate::input::update_secret_input::Builder {
crate::input::update_secret_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateSecret {
type Output =
std::result::Result<crate::output::UpdateSecretOutput, crate::error::UpdateSecretError>;
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_secret_error(response)
} else {
crate::operation_deser::parse_update_secret_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdateSecretVersionStage {
_private: (),
}
impl UpdateSecretVersionStage {
pub fn builder() -> crate::input::update_secret_version_stage_input::Builder {
crate::input::update_secret_version_stage_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateSecretVersionStage {
type Output = std::result::Result<
crate::output::UpdateSecretVersionStageOutput,
crate::error::UpdateSecretVersionStageError,
>;
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_secret_version_stage_error(response)
} else {
crate::operation_deser::parse_update_secret_version_stage_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ValidateResourcePolicy {
_private: (),
}
impl ValidateResourcePolicy {
pub fn builder() -> crate::input::validate_resource_policy_input::Builder {
crate::input::validate_resource_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ValidateResourcePolicy {
type Output = std::result::Result<
crate::output::ValidateResourcePolicyOutput,
crate::error::ValidateResourcePolicyError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_validate_resource_policy_error(response)
} else {
crate::operation_deser::parse_validate_resource_policy_response(response)
}
}
}