#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateNotificationRule {
_private: (),
}
impl CreateNotificationRule {
pub fn builder() -> crate::input::create_notification_rule_input::Builder {
crate::input::create_notification_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateNotificationRule {
type Output = std::result::Result<
crate::output::CreateNotificationRuleOutput,
crate::error::CreateNotificationRuleError,
>;
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_notification_rule_error(response)
} else {
crate::operation_deser::parse_create_notification_rule_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteNotificationRule {
_private: (),
}
impl DeleteNotificationRule {
pub fn builder() -> crate::input::delete_notification_rule_input::Builder {
crate::input::delete_notification_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteNotificationRule {
type Output = std::result::Result<
crate::output::DeleteNotificationRuleOutput,
crate::error::DeleteNotificationRuleError,
>;
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_notification_rule_error(response)
} else {
crate::operation_deser::parse_delete_notification_rule_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteTarget {
_private: (),
}
impl DeleteTarget {
pub fn builder() -> crate::input::delete_target_input::Builder {
crate::input::delete_target_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteTarget {
type Output =
std::result::Result<crate::output::DeleteTargetOutput, crate::error::DeleteTargetError>;
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_target_error(response)
} else {
crate::operation_deser::parse_delete_target_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeNotificationRule {
_private: (),
}
impl DescribeNotificationRule {
pub fn builder() -> crate::input::describe_notification_rule_input::Builder {
crate::input::describe_notification_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeNotificationRule {
type Output = std::result::Result<
crate::output::DescribeNotificationRuleOutput,
crate::error::DescribeNotificationRuleError,
>;
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_notification_rule_error(response)
} else {
crate::operation_deser::parse_describe_notification_rule_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListEventTypes {
_private: (),
}
impl ListEventTypes {
pub fn builder() -> crate::input::list_event_types_input::Builder {
crate::input::list_event_types_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListEventTypes {
type Output =
std::result::Result<crate::output::ListEventTypesOutput, crate::error::ListEventTypesError>;
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_event_types_error(response)
} else {
crate::operation_deser::parse_list_event_types_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListNotificationRules {
_private: (),
}
impl ListNotificationRules {
pub fn builder() -> crate::input::list_notification_rules_input::Builder {
crate::input::list_notification_rules_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListNotificationRules {
type Output = std::result::Result<
crate::output::ListNotificationRulesOutput,
crate::error::ListNotificationRulesError,
>;
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_notification_rules_error(response)
} else {
crate::operation_deser::parse_list_notification_rules_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 ListTargets {
_private: (),
}
impl ListTargets {
pub fn builder() -> crate::input::list_targets_input::Builder {
crate::input::list_targets_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTargets {
type Output =
std::result::Result<crate::output::ListTargetsOutput, crate::error::ListTargetsError>;
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_targets_error(response)
} else {
crate::operation_deser::parse_list_targets_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct Subscribe {
_private: (),
}
impl Subscribe {
pub fn builder() -> crate::input::subscribe_input::Builder {
crate::input::subscribe_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for Subscribe {
type Output = std::result::Result<crate::output::SubscribeOutput, crate::error::SubscribeError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_subscribe_error(response)
} else {
crate::operation_deser::parse_subscribe_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 Unsubscribe {
_private: (),
}
impl Unsubscribe {
pub fn builder() -> crate::input::unsubscribe_input::Builder {
crate::input::unsubscribe_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for Unsubscribe {
type Output =
std::result::Result<crate::output::UnsubscribeOutput, crate::error::UnsubscribeError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_unsubscribe_error(response)
} else {
crate::operation_deser::parse_unsubscribe_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 UpdateNotificationRule {
_private: (),
}
impl UpdateNotificationRule {
pub fn builder() -> crate::input::update_notification_rule_input::Builder {
crate::input::update_notification_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateNotificationRule {
type Output = std::result::Result<
crate::output::UpdateNotificationRuleOutput,
crate::error::UpdateNotificationRuleError,
>;
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_notification_rule_error(response)
} else {
crate::operation_deser::parse_update_notification_rule_response(response)
}
}
}
pub mod customize;