#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateReplicationSet {
_private: (),
}
impl CreateReplicationSet {
pub fn builder() -> crate::input::create_replication_set_input::Builder {
crate::input::create_replication_set_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateReplicationSet {
type Output = std::result::Result<
crate::output::CreateReplicationSetOutput,
crate::error::CreateReplicationSetError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_create_replication_set_error(response)
} else {
crate::operation_deser::parse_create_replication_set_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateResponsePlan {
_private: (),
}
impl CreateResponsePlan {
pub fn builder() -> crate::input::create_response_plan_input::Builder {
crate::input::create_response_plan_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateResponsePlan {
type Output = std::result::Result<
crate::output::CreateResponsePlanOutput,
crate::error::CreateResponsePlanError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_create_response_plan_error(response)
} else {
crate::operation_deser::parse_create_response_plan_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateTimelineEvent {
_private: (),
}
impl CreateTimelineEvent {
pub fn builder() -> crate::input::create_timeline_event_input::Builder {
crate::input::create_timeline_event_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateTimelineEvent {
type Output = std::result::Result<
crate::output::CreateTimelineEventOutput,
crate::error::CreateTimelineEventError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 201 {
crate::operation_deser::parse_create_timeline_event_error(response)
} else {
crate::operation_deser::parse_create_timeline_event_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteIncidentRecord {
_private: (),
}
impl DeleteIncidentRecord {
pub fn builder() -> crate::input::delete_incident_record_input::Builder {
crate::input::delete_incident_record_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteIncidentRecord {
type Output = std::result::Result<
crate::output::DeleteIncidentRecordOutput,
crate::error::DeleteIncidentRecordError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_incident_record_error(response)
} else {
crate::operation_deser::parse_delete_incident_record_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteReplicationSet {
_private: (),
}
impl DeleteReplicationSet {
pub fn builder() -> crate::input::delete_replication_set_input::Builder {
crate::input::delete_replication_set_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteReplicationSet {
type Output = std::result::Result<
crate::output::DeleteReplicationSetOutput,
crate::error::DeleteReplicationSetError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_replication_set_error(response)
} else {
crate::operation_deser::parse_delete_replication_set_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, 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::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteResponsePlan {
_private: (),
}
impl DeleteResponsePlan {
pub fn builder() -> crate::input::delete_response_plan_input::Builder {
crate::input::delete_response_plan_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteResponsePlan {
type Output = std::result::Result<
crate::output::DeleteResponsePlanOutput,
crate::error::DeleteResponsePlanError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_response_plan_error(response)
} else {
crate::operation_deser::parse_delete_response_plan_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteTimelineEvent {
_private: (),
}
impl DeleteTimelineEvent {
pub fn builder() -> crate::input::delete_timeline_event_input::Builder {
crate::input::delete_timeline_event_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteTimelineEvent {
type Output = std::result::Result<
crate::output::DeleteTimelineEventOutput,
crate::error::DeleteTimelineEventError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_delete_timeline_event_error(response)
} else {
crate::operation_deser::parse_delete_timeline_event_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetIncidentRecord {
_private: (),
}
impl GetIncidentRecord {
pub fn builder() -> crate::input::get_incident_record_input::Builder {
crate::input::get_incident_record_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetIncidentRecord {
type Output = std::result::Result<
crate::output::GetIncidentRecordOutput,
crate::error::GetIncidentRecordError,
>;
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_incident_record_error(response)
} else {
crate::operation_deser::parse_get_incident_record_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetReplicationSet {
_private: (),
}
impl GetReplicationSet {
pub fn builder() -> crate::input::get_replication_set_input::Builder {
crate::input::get_replication_set_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetReplicationSet {
type Output = std::result::Result<
crate::output::GetReplicationSetOutput,
crate::error::GetReplicationSetError,
>;
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_replication_set_error(response)
} else {
crate::operation_deser::parse_get_replication_set_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetResourcePolicies {
_private: (),
}
impl GetResourcePolicies {
pub fn builder() -> crate::input::get_resource_policies_input::Builder {
crate::input::get_resource_policies_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetResourcePolicies {
type Output = std::result::Result<
crate::output::GetResourcePoliciesOutput,
crate::error::GetResourcePoliciesError,
>;
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_policies_error(response)
} else {
crate::operation_deser::parse_get_resource_policies_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetResponsePlan {
_private: (),
}
impl GetResponsePlan {
pub fn builder() -> crate::input::get_response_plan_input::Builder {
crate::input::get_response_plan_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetResponsePlan {
type Output = std::result::Result<
crate::output::GetResponsePlanOutput,
crate::error::GetResponsePlanError,
>;
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_response_plan_error(response)
} else {
crate::operation_deser::parse_get_response_plan_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetTimelineEvent {
_private: (),
}
impl GetTimelineEvent {
pub fn builder() -> crate::input::get_timeline_event_input::Builder {
crate::input::get_timeline_event_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetTimelineEvent {
type Output = std::result::Result<
crate::output::GetTimelineEventOutput,
crate::error::GetTimelineEventError,
>;
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_timeline_event_error(response)
} else {
crate::operation_deser::parse_get_timeline_event_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListIncidentRecords {
_private: (),
}
impl ListIncidentRecords {
pub fn builder() -> crate::input::list_incident_records_input::Builder {
crate::input::list_incident_records_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListIncidentRecords {
type Output = std::result::Result<
crate::output::ListIncidentRecordsOutput,
crate::error::ListIncidentRecordsError,
>;
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_incident_records_error(response)
} else {
crate::operation_deser::parse_list_incident_records_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListRelatedItems {
_private: (),
}
impl ListRelatedItems {
pub fn builder() -> crate::input::list_related_items_input::Builder {
crate::input::list_related_items_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListRelatedItems {
type Output = std::result::Result<
crate::output::ListRelatedItemsOutput,
crate::error::ListRelatedItemsError,
>;
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_related_items_error(response)
} else {
crate::operation_deser::parse_list_related_items_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListReplicationSets {
_private: (),
}
impl ListReplicationSets {
pub fn builder() -> crate::input::list_replication_sets_input::Builder {
crate::input::list_replication_sets_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListReplicationSets {
type Output = std::result::Result<
crate::output::ListReplicationSetsOutput,
crate::error::ListReplicationSetsError,
>;
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_replication_sets_error(response)
} else {
crate::operation_deser::parse_list_replication_sets_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListResponsePlans {
_private: (),
}
impl ListResponsePlans {
pub fn builder() -> crate::input::list_response_plans_input::Builder {
crate::input::list_response_plans_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListResponsePlans {
type Output = std::result::Result<
crate::output::ListResponsePlansOutput,
crate::error::ListResponsePlansError,
>;
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_response_plans_error(response)
} else {
crate::operation_deser::parse_list_response_plans_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 ListTimelineEvents {
_private: (),
}
impl ListTimelineEvents {
pub fn builder() -> crate::input::list_timeline_events_input::Builder {
crate::input::list_timeline_events_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTimelineEvents {
type Output = std::result::Result<
crate::output::ListTimelineEventsOutput,
crate::error::ListTimelineEventsError,
>;
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_timeline_events_error(response)
} else {
crate::operation_deser::parse_list_timeline_events_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, 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::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartIncident {
_private: (),
}
impl StartIncident {
pub fn builder() -> crate::input::start_incident_input::Builder {
crate::input::start_incident_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartIncident {
type Output =
std::result::Result<crate::output::StartIncidentOutput, crate::error::StartIncidentError>;
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_incident_error(response)
} else {
crate::operation_deser::parse_start_incident_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() != 204 {
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() != 204 {
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 UpdateDeletionProtection {
_private: (),
}
impl UpdateDeletionProtection {
pub fn builder() -> crate::input::update_deletion_protection_input::Builder {
crate::input::update_deletion_protection_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateDeletionProtection {
type Output = std::result::Result<
crate::output::UpdateDeletionProtectionOutput,
crate::error::UpdateDeletionProtectionError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_update_deletion_protection_error(response)
} else {
crate::operation_deser::parse_update_deletion_protection_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateIncidentRecord {
_private: (),
}
impl UpdateIncidentRecord {
pub fn builder() -> crate::input::update_incident_record_input::Builder {
crate::input::update_incident_record_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateIncidentRecord {
type Output = std::result::Result<
crate::output::UpdateIncidentRecordOutput,
crate::error::UpdateIncidentRecordError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_update_incident_record_error(response)
} else {
crate::operation_deser::parse_update_incident_record_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateRelatedItems {
_private: (),
}
impl UpdateRelatedItems {
pub fn builder() -> crate::input::update_related_items_input::Builder {
crate::input::update_related_items_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateRelatedItems {
type Output = std::result::Result<
crate::output::UpdateRelatedItemsOutput,
crate::error::UpdateRelatedItemsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_update_related_items_error(response)
} else {
crate::operation_deser::parse_update_related_items_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateReplicationSet {
_private: (),
}
impl UpdateReplicationSet {
pub fn builder() -> crate::input::update_replication_set_input::Builder {
crate::input::update_replication_set_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateReplicationSet {
type Output = std::result::Result<
crate::output::UpdateReplicationSetOutput,
crate::error::UpdateReplicationSetError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_update_replication_set_error(response)
} else {
crate::operation_deser::parse_update_replication_set_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateResponsePlan {
_private: (),
}
impl UpdateResponsePlan {
pub fn builder() -> crate::input::update_response_plan_input::Builder {
crate::input::update_response_plan_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateResponsePlan {
type Output = std::result::Result<
crate::output::UpdateResponsePlanOutput,
crate::error::UpdateResponsePlanError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_update_response_plan_error(response)
} else {
crate::operation_deser::parse_update_response_plan_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateTimelineEvent {
_private: (),
}
impl UpdateTimelineEvent {
pub fn builder() -> crate::input::update_timeline_event_input::Builder {
crate::input::update_timeline_event_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateTimelineEvent {
type Output = std::result::Result<
crate::output::UpdateTimelineEventOutput,
crate::error::UpdateTimelineEventError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 204 {
crate::operation_deser::parse_update_timeline_event_error(response)
} else {
crate::operation_deser::parse_update_timeline_event_response(response)
}
}
}
pub mod customize;