#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ApplyArchiveRule {
_private: (),
}
impl ApplyArchiveRule {
pub fn builder() -> crate::input::apply_archive_rule_input::Builder {
crate::input::apply_archive_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ApplyArchiveRule {
type Output = std::result::Result<
crate::output::ApplyArchiveRuleOutput,
crate::error::ApplyArchiveRuleError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_apply_archive_rule_error(response)
} else {
crate::operation_deser::parse_apply_archive_rule_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CancelPolicyGeneration {
_private: (),
}
impl CancelPolicyGeneration {
pub fn builder() -> crate::input::cancel_policy_generation_input::Builder {
crate::input::cancel_policy_generation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CancelPolicyGeneration {
type Output = std::result::Result<
crate::output::CancelPolicyGenerationOutput,
crate::error::CancelPolicyGenerationError,
>;
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_policy_generation_error(response)
} else {
crate::operation_deser::parse_cancel_policy_generation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreateAccessPreview {
_private: (),
}
impl CreateAccessPreview {
pub fn builder() -> crate::input::create_access_preview_input::Builder {
crate::input::create_access_preview_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateAccessPreview {
type Output = std::result::Result<
crate::output::CreateAccessPreviewOutput,
crate::error::CreateAccessPreviewError,
>;
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_access_preview_error(response)
} else {
crate::operation_deser::parse_create_access_preview_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreateAnalyzer {
_private: (),
}
impl CreateAnalyzer {
pub fn builder() -> crate::input::create_analyzer_input::Builder {
crate::input::create_analyzer_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateAnalyzer {
type Output =
std::result::Result<crate::output::CreateAnalyzerOutput, crate::error::CreateAnalyzerError>;
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_analyzer_error(response)
} else {
crate::operation_deser::parse_create_analyzer_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct CreateArchiveRule {
_private: (),
}
impl CreateArchiveRule {
pub fn builder() -> crate::input::create_archive_rule_input::Builder {
crate::input::create_archive_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateArchiveRule {
type Output = std::result::Result<
crate::output::CreateArchiveRuleOutput,
crate::error::CreateArchiveRuleError,
>;
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_archive_rule_error(response)
} else {
crate::operation_deser::parse_create_archive_rule_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DeleteAnalyzer {
_private: (),
}
impl DeleteAnalyzer {
pub fn builder() -> crate::input::delete_analyzer_input::Builder {
crate::input::delete_analyzer_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteAnalyzer {
type Output =
std::result::Result<crate::output::DeleteAnalyzerOutput, crate::error::DeleteAnalyzerError>;
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_analyzer_error(response)
} else {
crate::operation_deser::parse_delete_analyzer_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DeleteArchiveRule {
_private: (),
}
impl DeleteArchiveRule {
pub fn builder() -> crate::input::delete_archive_rule_input::Builder {
crate::input::delete_archive_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteArchiveRule {
type Output = std::result::Result<
crate::output::DeleteArchiveRuleOutput,
crate::error::DeleteArchiveRuleError,
>;
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_archive_rule_error(response)
} else {
crate::operation_deser::parse_delete_archive_rule_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetAccessPreview {
_private: (),
}
impl GetAccessPreview {
pub fn builder() -> crate::input::get_access_preview_input::Builder {
crate::input::get_access_preview_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetAccessPreview {
type Output = std::result::Result<
crate::output::GetAccessPreviewOutput,
crate::error::GetAccessPreviewError,
>;
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_access_preview_error(response)
} else {
crate::operation_deser::parse_get_access_preview_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetAnalyzedResource {
_private: (),
}
impl GetAnalyzedResource {
pub fn builder() -> crate::input::get_analyzed_resource_input::Builder {
crate::input::get_analyzed_resource_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetAnalyzedResource {
type Output = std::result::Result<
crate::output::GetAnalyzedResourceOutput,
crate::error::GetAnalyzedResourceError,
>;
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_analyzed_resource_error(response)
} else {
crate::operation_deser::parse_get_analyzed_resource_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetAnalyzer {
_private: (),
}
impl GetAnalyzer {
pub fn builder() -> crate::input::get_analyzer_input::Builder {
crate::input::get_analyzer_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetAnalyzer {
type Output =
std::result::Result<crate::output::GetAnalyzerOutput, crate::error::GetAnalyzerError>;
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_analyzer_error(response)
} else {
crate::operation_deser::parse_get_analyzer_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetArchiveRule {
_private: (),
}
impl GetArchiveRule {
pub fn builder() -> crate::input::get_archive_rule_input::Builder {
crate::input::get_archive_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetArchiveRule {
type Output =
std::result::Result<crate::output::GetArchiveRuleOutput, crate::error::GetArchiveRuleError>;
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_archive_rule_error(response)
} else {
crate::operation_deser::parse_get_archive_rule_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetFinding {
_private: (),
}
impl GetFinding {
pub fn builder() -> crate::input::get_finding_input::Builder {
crate::input::get_finding_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetFinding {
type Output =
std::result::Result<crate::output::GetFindingOutput, crate::error::GetFindingError>;
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_finding_error(response)
} else {
crate::operation_deser::parse_get_finding_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetGeneratedPolicy {
_private: (),
}
impl GetGeneratedPolicy {
pub fn builder() -> crate::input::get_generated_policy_input::Builder {
crate::input::get_generated_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetGeneratedPolicy {
type Output = std::result::Result<
crate::output::GetGeneratedPolicyOutput,
crate::error::GetGeneratedPolicyError,
>;
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_generated_policy_error(response)
} else {
crate::operation_deser::parse_get_generated_policy_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListAccessPreviewFindings {
_private: (),
}
impl ListAccessPreviewFindings {
pub fn builder() -> crate::input::list_access_preview_findings_input::Builder {
crate::input::list_access_preview_findings_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListAccessPreviewFindings {
type Output = std::result::Result<
crate::output::ListAccessPreviewFindingsOutput,
crate::error::ListAccessPreviewFindingsError,
>;
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_access_preview_findings_error(response)
} else {
crate::operation_deser::parse_list_access_preview_findings_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListAccessPreviews {
_private: (),
}
impl ListAccessPreviews {
pub fn builder() -> crate::input::list_access_previews_input::Builder {
crate::input::list_access_previews_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListAccessPreviews {
type Output = std::result::Result<
crate::output::ListAccessPreviewsOutput,
crate::error::ListAccessPreviewsError,
>;
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_access_previews_error(response)
} else {
crate::operation_deser::parse_list_access_previews_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListAnalyzedResources {
_private: (),
}
impl ListAnalyzedResources {
pub fn builder() -> crate::input::list_analyzed_resources_input::Builder {
crate::input::list_analyzed_resources_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListAnalyzedResources {
type Output = std::result::Result<
crate::output::ListAnalyzedResourcesOutput,
crate::error::ListAnalyzedResourcesError,
>;
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_analyzed_resources_error(response)
} else {
crate::operation_deser::parse_list_analyzed_resources_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListAnalyzers {
_private: (),
}
impl ListAnalyzers {
pub fn builder() -> crate::input::list_analyzers_input::Builder {
crate::input::list_analyzers_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListAnalyzers {
type Output =
std::result::Result<crate::output::ListAnalyzersOutput, crate::error::ListAnalyzersError>;
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_analyzers_error(response)
} else {
crate::operation_deser::parse_list_analyzers_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListArchiveRules {
_private: (),
}
impl ListArchiveRules {
pub fn builder() -> crate::input::list_archive_rules_input::Builder {
crate::input::list_archive_rules_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListArchiveRules {
type Output = std::result::Result<
crate::output::ListArchiveRulesOutput,
crate::error::ListArchiveRulesError,
>;
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_archive_rules_error(response)
} else {
crate::operation_deser::parse_list_archive_rules_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListFindings {
_private: (),
}
impl ListFindings {
pub fn builder() -> crate::input::list_findings_input::Builder {
crate::input::list_findings_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListFindings {
type Output =
std::result::Result<crate::output::ListFindingsOutput, crate::error::ListFindingsError>;
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_findings_error(response)
} else {
crate::operation_deser::parse_list_findings_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ListPolicyGenerations {
_private: (),
}
impl ListPolicyGenerations {
pub fn builder() -> crate::input::list_policy_generations_input::Builder {
crate::input::list_policy_generations_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListPolicyGenerations {
type Output = std::result::Result<
crate::output::ListPolicyGenerationsOutput,
crate::error::ListPolicyGenerationsError,
>;
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_policy_generations_error(response)
} else {
crate::operation_deser::parse_list_policy_generations_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, 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::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct StartPolicyGeneration {
_private: (),
}
impl StartPolicyGeneration {
pub fn builder() -> crate::input::start_policy_generation_input::Builder {
crate::input::start_policy_generation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartPolicyGeneration {
type Output = std::result::Result<
crate::output::StartPolicyGenerationOutput,
crate::error::StartPolicyGenerationError,
>;
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_policy_generation_error(response)
} else {
crate::operation_deser::parse_start_policy_generation_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct StartResourceScan {
_private: (),
}
impl StartResourceScan {
pub fn builder() -> crate::input::start_resource_scan_input::Builder {
crate::input::start_resource_scan_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for StartResourceScan {
type Output = std::result::Result<
crate::output::StartResourceScanOutput,
crate::error::StartResourceScanError,
>;
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_resource_scan_error(response)
} else {
crate::operation_deser::parse_start_resource_scan_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 UpdateArchiveRule {
_private: (),
}
impl UpdateArchiveRule {
pub fn builder() -> crate::input::update_archive_rule_input::Builder {
crate::input::update_archive_rule_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateArchiveRule {
type Output = std::result::Result<
crate::output::UpdateArchiveRuleOutput,
crate::error::UpdateArchiveRuleError,
>;
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_archive_rule_error(response)
} else {
crate::operation_deser::parse_update_archive_rule_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct UpdateFindings {
_private: (),
}
impl UpdateFindings {
pub fn builder() -> crate::input::update_findings_input::Builder {
crate::input::update_findings_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateFindings {
type Output =
std::result::Result<crate::output::UpdateFindingsOutput, crate::error::UpdateFindingsError>;
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_findings_error(response)
} else {
crate::operation_deser::parse_update_findings_response(response)
}
}
}
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct ValidatePolicy {
_private: (),
}
impl ValidatePolicy {
pub fn builder() -> crate::input::validate_policy_input::Builder {
crate::input::validate_policy_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ValidatePolicy {
type Output =
std::result::Result<crate::output::ValidatePolicyOutput, crate::error::ValidatePolicyError>;
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_policy_error(response)
} else {
crate::operation_deser::parse_validate_policy_response(response)
}
}
}