#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateDeliveryStream {
_private: (),
}
impl CreateDeliveryStream {
pub fn builder() -> crate::input::create_delivery_stream_input::Builder {
crate::input::create_delivery_stream_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateDeliveryStream {
type Output = std::result::Result<
crate::output::CreateDeliveryStreamOutput,
crate::error::CreateDeliveryStreamError,
>;
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_delivery_stream_error(response)
} else {
crate::operation_deser::parse_create_delivery_stream_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteDeliveryStream {
_private: (),
}
impl DeleteDeliveryStream {
pub fn builder() -> crate::input::delete_delivery_stream_input::Builder {
crate::input::delete_delivery_stream_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteDeliveryStream {
type Output = std::result::Result<
crate::output::DeleteDeliveryStreamOutput,
crate::error::DeleteDeliveryStreamError,
>;
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_delivery_stream_error(response)
} else {
crate::operation_deser::parse_delete_delivery_stream_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeDeliveryStream {
_private: (),
}
impl DescribeDeliveryStream {
pub fn builder() -> crate::input::describe_delivery_stream_input::Builder {
crate::input::describe_delivery_stream_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeDeliveryStream {
type Output = std::result::Result<
crate::output::DescribeDeliveryStreamOutput,
crate::error::DescribeDeliveryStreamError,
>;
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_delivery_stream_error(response)
} else {
crate::operation_deser::parse_describe_delivery_stream_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListDeliveryStreams {
_private: (),
}
impl ListDeliveryStreams {
pub fn builder() -> crate::input::list_delivery_streams_input::Builder {
crate::input::list_delivery_streams_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListDeliveryStreams {
type Output = std::result::Result<
crate::output::ListDeliveryStreamsOutput,
crate::error::ListDeliveryStreamsError,
>;
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_delivery_streams_error(response)
} else {
crate::operation_deser::parse_list_delivery_streams_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListTagsForDeliveryStream {
_private: (),
}
impl ListTagsForDeliveryStream {
pub fn builder() -> crate::input::list_tags_for_delivery_stream_input::Builder {
crate::input::list_tags_for_delivery_stream_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListTagsForDeliveryStream {
type Output = std::result::Result<
crate::output::ListTagsForDeliveryStreamOutput,
crate::error::ListTagsForDeliveryStreamError,
>;
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_delivery_stream_error(response)
} else {
crate::operation_deser::parse_list_tags_for_delivery_stream_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct PutRecord {
_private: (),
}
impl PutRecord {
pub fn builder() -> crate::input::put_record_input::Builder {
crate::input::put_record_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PutRecord {
type Output = std::result::Result<crate::output::PutRecordOutput, crate::error::PutRecordError>;
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_record_error(response)
} else {
crate::operation_deser::parse_put_record_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct PutRecordBatch {
_private: (),
}
impl PutRecordBatch {
pub fn builder() -> crate::input::put_record_batch_input::Builder {
crate::input::put_record_batch_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for PutRecordBatch {
type Output =
std::result::Result<crate::output::PutRecordBatchOutput, crate::error::PutRecordBatchError>;
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_record_batch_error(response)
} else {
crate::operation_deser::parse_put_record_batch_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StartDeliveryStreamEncryption {
_private: (),
}
impl StartDeliveryStreamEncryption {
pub fn builder() -> crate::input::start_delivery_stream_encryption_input::Builder {
crate::input::start_delivery_stream_encryption_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartDeliveryStreamEncryption {
type Output = std::result::Result<
crate::output::StartDeliveryStreamEncryptionOutput,
crate::error::StartDeliveryStreamEncryptionError,
>;
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_delivery_stream_encryption_error(response)
} else {
crate::operation_deser::parse_start_delivery_stream_encryption_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct StopDeliveryStreamEncryption {
_private: (),
}
impl StopDeliveryStreamEncryption {
pub fn builder() -> crate::input::stop_delivery_stream_encryption_input::Builder {
crate::input::stop_delivery_stream_encryption_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StopDeliveryStreamEncryption {
type Output = std::result::Result<
crate::output::StopDeliveryStreamEncryptionOutput,
crate::error::StopDeliveryStreamEncryptionError,
>;
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_delivery_stream_encryption_error(response)
} else {
crate::operation_deser::parse_stop_delivery_stream_encryption_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct TagDeliveryStream {
_private: (),
}
impl TagDeliveryStream {
pub fn builder() -> crate::input::tag_delivery_stream_input::Builder {
crate::input::tag_delivery_stream_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for TagDeliveryStream {
type Output = std::result::Result<
crate::output::TagDeliveryStreamOutput,
crate::error::TagDeliveryStreamError,
>;
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_delivery_stream_error(response)
} else {
crate::operation_deser::parse_tag_delivery_stream_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UntagDeliveryStream {
_private: (),
}
impl UntagDeliveryStream {
pub fn builder() -> crate::input::untag_delivery_stream_input::Builder {
crate::input::untag_delivery_stream_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UntagDeliveryStream {
type Output = std::result::Result<
crate::output::UntagDeliveryStreamOutput,
crate::error::UntagDeliveryStreamError,
>;
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_delivery_stream_error(response)
} else {
crate::operation_deser::parse_untag_delivery_stream_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateDestination {
_private: (),
}
impl UpdateDestination {
pub fn builder() -> crate::input::update_destination_input::Builder {
crate::input::update_destination_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateDestination {
type Output = std::result::Result<
crate::output::UpdateDestinationOutput,
crate::error::UpdateDestinationError,
>;
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_destination_error(response)
} else {
crate::operation_deser::parse_update_destination_response(response)
}
}
}
pub mod customize;