#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct AcceptAdministratorInvitation {
_private: (),
}
impl AcceptAdministratorInvitation {
pub fn builder() -> crate::input::accept_administrator_invitation_input::Builder {
crate::input::accept_administrator_invitation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for AcceptAdministratorInvitation {
type Output = std::result::Result<
crate::output::AcceptAdministratorInvitationOutput,
crate::error::AcceptAdministratorInvitationError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_accept_administrator_invitation_error(response)
} else {
crate::operation_deser::parse_accept_administrator_invitation_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct AcceptInvitation {
_private: (),
}
impl AcceptInvitation {
pub fn builder() -> crate::input::accept_invitation_input::Builder {
crate::input::accept_invitation_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for AcceptInvitation {
type Output = std::result::Result<
crate::output::AcceptInvitationOutput,
crate::error::AcceptInvitationError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_accept_invitation_error(response)
} else {
crate::operation_deser::parse_accept_invitation_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchDisableStandards {
_private: (),
}
impl BatchDisableStandards {
pub fn builder() -> crate::input::batch_disable_standards_input::Builder {
crate::input::batch_disable_standards_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchDisableStandards {
type Output = std::result::Result<
crate::output::BatchDisableStandardsOutput,
crate::error::BatchDisableStandardsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_disable_standards_error(response)
} else {
crate::operation_deser::parse_batch_disable_standards_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchEnableStandards {
_private: (),
}
impl BatchEnableStandards {
pub fn builder() -> crate::input::batch_enable_standards_input::Builder {
crate::input::batch_enable_standards_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchEnableStandards {
type Output = std::result::Result<
crate::output::BatchEnableStandardsOutput,
crate::error::BatchEnableStandardsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_enable_standards_error(response)
} else {
crate::operation_deser::parse_batch_enable_standards_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchImportFindings {
_private: (),
}
impl BatchImportFindings {
pub fn builder() -> crate::input::batch_import_findings_input::Builder {
crate::input::batch_import_findings_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchImportFindings {
type Output = std::result::Result<
crate::output::BatchImportFindingsOutput,
crate::error::BatchImportFindingsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_import_findings_error(response)
} else {
crate::operation_deser::parse_batch_import_findings_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct BatchUpdateFindings {
_private: (),
}
impl BatchUpdateFindings {
pub fn builder() -> crate::input::batch_update_findings_input::Builder {
crate::input::batch_update_findings_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for BatchUpdateFindings {
type Output = std::result::Result<
crate::output::BatchUpdateFindingsOutput,
crate::error::BatchUpdateFindingsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_batch_update_findings_error(response)
} else {
crate::operation_deser::parse_batch_update_findings_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateActionTarget {
_private: (),
}
impl CreateActionTarget {
pub fn builder() -> crate::input::create_action_target_input::Builder {
crate::input::create_action_target_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateActionTarget {
type Output = std::result::Result<
crate::output::CreateActionTargetOutput,
crate::error::CreateActionTargetError,
>;
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_action_target_error(response)
} else {
crate::operation_deser::parse_create_action_target_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateFindingAggregator {
_private: (),
}
impl CreateFindingAggregator {
pub fn builder() -> crate::input::create_finding_aggregator_input::Builder {
crate::input::create_finding_aggregator_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateFindingAggregator {
type Output = std::result::Result<
crate::output::CreateFindingAggregatorOutput,
crate::error::CreateFindingAggregatorError,
>;
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_finding_aggregator_error(response)
} else {
crate::operation_deser::parse_create_finding_aggregator_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateInsight {
_private: (),
}
impl CreateInsight {
pub fn builder() -> crate::input::create_insight_input::Builder {
crate::input::create_insight_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateInsight {
type Output =
std::result::Result<crate::output::CreateInsightOutput, crate::error::CreateInsightError>;
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_insight_error(response)
} else {
crate::operation_deser::parse_create_insight_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct CreateMembers {
_private: (),
}
impl CreateMembers {
pub fn builder() -> crate::input::create_members_input::Builder {
crate::input::create_members_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for CreateMembers {
type Output =
std::result::Result<crate::output::CreateMembersOutput, crate::error::CreateMembersError>;
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_members_error(response)
} else {
crate::operation_deser::parse_create_members_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeclineInvitations {
_private: (),
}
impl DeclineInvitations {
pub fn builder() -> crate::input::decline_invitations_input::Builder {
crate::input::decline_invitations_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeclineInvitations {
type Output = std::result::Result<
crate::output::DeclineInvitationsOutput,
crate::error::DeclineInvitationsError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_decline_invitations_error(response)
} else {
crate::operation_deser::parse_decline_invitations_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteActionTarget {
_private: (),
}
impl DeleteActionTarget {
pub fn builder() -> crate::input::delete_action_target_input::Builder {
crate::input::delete_action_target_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteActionTarget {
type Output = std::result::Result<
crate::output::DeleteActionTargetOutput,
crate::error::DeleteActionTargetError,
>;
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_action_target_error(response)
} else {
crate::operation_deser::parse_delete_action_target_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteFindingAggregator {
_private: (),
}
impl DeleteFindingAggregator {
pub fn builder() -> crate::input::delete_finding_aggregator_input::Builder {
crate::input::delete_finding_aggregator_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteFindingAggregator {
type Output = std::result::Result<
crate::output::DeleteFindingAggregatorOutput,
crate::error::DeleteFindingAggregatorError,
>;
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_finding_aggregator_error(response)
} else {
crate::operation_deser::parse_delete_finding_aggregator_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteInsight {
_private: (),
}
impl DeleteInsight {
pub fn builder() -> crate::input::delete_insight_input::Builder {
crate::input::delete_insight_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteInsight {
type Output =
std::result::Result<crate::output::DeleteInsightOutput, crate::error::DeleteInsightError>;
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_insight_error(response)
} else {
crate::operation_deser::parse_delete_insight_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteInvitations {
_private: (),
}
impl DeleteInvitations {
pub fn builder() -> crate::input::delete_invitations_input::Builder {
crate::input::delete_invitations_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteInvitations {
type Output = std::result::Result<
crate::output::DeleteInvitationsOutput,
crate::error::DeleteInvitationsError,
>;
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_invitations_error(response)
} else {
crate::operation_deser::parse_delete_invitations_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DeleteMembers {
_private: (),
}
impl DeleteMembers {
pub fn builder() -> crate::input::delete_members_input::Builder {
crate::input::delete_members_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DeleteMembers {
type Output =
std::result::Result<crate::output::DeleteMembersOutput, crate::error::DeleteMembersError>;
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_members_error(response)
} else {
crate::operation_deser::parse_delete_members_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeActionTargets {
_private: (),
}
impl DescribeActionTargets {
pub fn builder() -> crate::input::describe_action_targets_input::Builder {
crate::input::describe_action_targets_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeActionTargets {
type Output = std::result::Result<
crate::output::DescribeActionTargetsOutput,
crate::error::DescribeActionTargetsError,
>;
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_action_targets_error(response)
} else {
crate::operation_deser::parse_describe_action_targets_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeHub {
_private: (),
}
impl DescribeHub {
pub fn builder() -> crate::input::describe_hub_input::Builder {
crate::input::describe_hub_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeHub {
type Output =
std::result::Result<crate::output::DescribeHubOutput, crate::error::DescribeHubError>;
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_hub_error(response)
} else {
crate::operation_deser::parse_describe_hub_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeOrganizationConfiguration {
_private: (),
}
impl DescribeOrganizationConfiguration {
pub fn builder() -> crate::input::describe_organization_configuration_input::Builder {
crate::input::describe_organization_configuration_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeOrganizationConfiguration {
type Output = std::result::Result<
crate::output::DescribeOrganizationConfigurationOutput,
crate::error::DescribeOrganizationConfigurationError,
>;
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_organization_configuration_error(response)
} else {
crate::operation_deser::parse_describe_organization_configuration_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeProducts {
_private: (),
}
impl DescribeProducts {
pub fn builder() -> crate::input::describe_products_input::Builder {
crate::input::describe_products_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeProducts {
type Output = std::result::Result<
crate::output::DescribeProductsOutput,
crate::error::DescribeProductsError,
>;
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_products_error(response)
} else {
crate::operation_deser::parse_describe_products_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeStandards {
_private: (),
}
impl DescribeStandards {
pub fn builder() -> crate::input::describe_standards_input::Builder {
crate::input::describe_standards_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeStandards {
type Output = std::result::Result<
crate::output::DescribeStandardsOutput,
crate::error::DescribeStandardsError,
>;
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_standards_error(response)
} else {
crate::operation_deser::parse_describe_standards_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DescribeStandardsControls {
_private: (),
}
impl DescribeStandardsControls {
pub fn builder() -> crate::input::describe_standards_controls_input::Builder {
crate::input::describe_standards_controls_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeStandardsControls {
type Output = std::result::Result<
crate::output::DescribeStandardsControlsOutput,
crate::error::DescribeStandardsControlsError,
>;
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_standards_controls_error(response)
} else {
crate::operation_deser::parse_describe_standards_controls_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DisableImportFindingsForProduct {
_private: (),
}
impl DisableImportFindingsForProduct {
pub fn builder() -> crate::input::disable_import_findings_for_product_input::Builder {
crate::input::disable_import_findings_for_product_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DisableImportFindingsForProduct {
type Output = std::result::Result<
crate::output::DisableImportFindingsForProductOutput,
crate::error::DisableImportFindingsForProductError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_disable_import_findings_for_product_error(response)
} else {
crate::operation_deser::parse_disable_import_findings_for_product_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DisableOrganizationAdminAccount {
_private: (),
}
impl DisableOrganizationAdminAccount {
pub fn builder() -> crate::input::disable_organization_admin_account_input::Builder {
crate::input::disable_organization_admin_account_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DisableOrganizationAdminAccount {
type Output = std::result::Result<
crate::output::DisableOrganizationAdminAccountOutput,
crate::error::DisableOrganizationAdminAccountError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_disable_organization_admin_account_error(response)
} else {
crate::operation_deser::parse_disable_organization_admin_account_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DisableSecurityHub {
_private: (),
}
impl DisableSecurityHub {
pub fn builder() -> crate::input::disable_security_hub_input::Builder {
crate::input::disable_security_hub_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DisableSecurityHub {
type Output = std::result::Result<
crate::output::DisableSecurityHubOutput,
crate::error::DisableSecurityHubError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_disable_security_hub_error(response)
} else {
crate::operation_deser::parse_disable_security_hub_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DisassociateFromAdministratorAccount {
_private: (),
}
impl DisassociateFromAdministratorAccount {
pub fn builder() -> crate::input::disassociate_from_administrator_account_input::Builder {
crate::input::disassociate_from_administrator_account_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DisassociateFromAdministratorAccount {
type Output = std::result::Result<
crate::output::DisassociateFromAdministratorAccountOutput,
crate::error::DisassociateFromAdministratorAccountError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_disassociate_from_administrator_account_error(response)
} else {
crate::operation_deser::parse_disassociate_from_administrator_account_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DisassociateFromMasterAccount {
_private: (),
}
impl DisassociateFromMasterAccount {
pub fn builder() -> crate::input::disassociate_from_master_account_input::Builder {
crate::input::disassociate_from_master_account_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DisassociateFromMasterAccount {
type Output = std::result::Result<
crate::output::DisassociateFromMasterAccountOutput,
crate::error::DisassociateFromMasterAccountError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_disassociate_from_master_account_error(response)
} else {
crate::operation_deser::parse_disassociate_from_master_account_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct DisassociateMembers {
_private: (),
}
impl DisassociateMembers {
pub fn builder() -> crate::input::disassociate_members_input::Builder {
crate::input::disassociate_members_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for DisassociateMembers {
type Output = std::result::Result<
crate::output::DisassociateMembersOutput,
crate::error::DisassociateMembersError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_disassociate_members_error(response)
} else {
crate::operation_deser::parse_disassociate_members_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct EnableImportFindingsForProduct {
_private: (),
}
impl EnableImportFindingsForProduct {
pub fn builder() -> crate::input::enable_import_findings_for_product_input::Builder {
crate::input::enable_import_findings_for_product_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for EnableImportFindingsForProduct {
type Output = std::result::Result<
crate::output::EnableImportFindingsForProductOutput,
crate::error::EnableImportFindingsForProductError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_enable_import_findings_for_product_error(response)
} else {
crate::operation_deser::parse_enable_import_findings_for_product_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct EnableOrganizationAdminAccount {
_private: (),
}
impl EnableOrganizationAdminAccount {
pub fn builder() -> crate::input::enable_organization_admin_account_input::Builder {
crate::input::enable_organization_admin_account_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for EnableOrganizationAdminAccount {
type Output = std::result::Result<
crate::output::EnableOrganizationAdminAccountOutput,
crate::error::EnableOrganizationAdminAccountError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_enable_organization_admin_account_error(response)
} else {
crate::operation_deser::parse_enable_organization_admin_account_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct EnableSecurityHub {
_private: (),
}
impl EnableSecurityHub {
pub fn builder() -> crate::input::enable_security_hub_input::Builder {
crate::input::enable_security_hub_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for EnableSecurityHub {
type Output = std::result::Result<
crate::output::EnableSecurityHubOutput,
crate::error::EnableSecurityHubError,
>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_enable_security_hub_error(response)
} else {
crate::operation_deser::parse_enable_security_hub_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetAdministratorAccount {
_private: (),
}
impl GetAdministratorAccount {
pub fn builder() -> crate::input::get_administrator_account_input::Builder {
crate::input::get_administrator_account_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetAdministratorAccount {
type Output = std::result::Result<
crate::output::GetAdministratorAccountOutput,
crate::error::GetAdministratorAccountError,
>;
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_administrator_account_error(response)
} else {
crate::operation_deser::parse_get_administrator_account_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetEnabledStandards {
_private: (),
}
impl GetEnabledStandards {
pub fn builder() -> crate::input::get_enabled_standards_input::Builder {
crate::input::get_enabled_standards_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetEnabledStandards {
type Output = std::result::Result<
crate::output::GetEnabledStandardsOutput,
crate::error::GetEnabledStandardsError,
>;
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_enabled_standards_error(response)
} else {
crate::operation_deser::parse_get_enabled_standards_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetFindingAggregator {
_private: (),
}
impl GetFindingAggregator {
pub fn builder() -> crate::input::get_finding_aggregator_input::Builder {
crate::input::get_finding_aggregator_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetFindingAggregator {
type Output = std::result::Result<
crate::output::GetFindingAggregatorOutput,
crate::error::GetFindingAggregatorError,
>;
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_aggregator_error(response)
} else {
crate::operation_deser::parse_get_finding_aggregator_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetFindings {
_private: (),
}
impl GetFindings {
pub fn builder() -> crate::input::get_findings_input::Builder {
crate::input::get_findings_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetFindings {
type Output =
std::result::Result<crate::output::GetFindingsOutput, crate::error::GetFindingsError>;
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_findings_error(response)
} else {
crate::operation_deser::parse_get_findings_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetInsightResults {
_private: (),
}
impl GetInsightResults {
pub fn builder() -> crate::input::get_insight_results_input::Builder {
crate::input::get_insight_results_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetInsightResults {
type Output = std::result::Result<
crate::output::GetInsightResultsOutput,
crate::error::GetInsightResultsError,
>;
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_insight_results_error(response)
} else {
crate::operation_deser::parse_get_insight_results_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetInsights {
_private: (),
}
impl GetInsights {
pub fn builder() -> crate::input::get_insights_input::Builder {
crate::input::get_insights_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetInsights {
type Output =
std::result::Result<crate::output::GetInsightsOutput, crate::error::GetInsightsError>;
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_insights_error(response)
} else {
crate::operation_deser::parse_get_insights_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetInvitationsCount {
_private: (),
}
impl GetInvitationsCount {
pub fn builder() -> crate::input::get_invitations_count_input::Builder {
crate::input::get_invitations_count_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetInvitationsCount {
type Output = std::result::Result<
crate::output::GetInvitationsCountOutput,
crate::error::GetInvitationsCountError,
>;
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_invitations_count_error(response)
} else {
crate::operation_deser::parse_get_invitations_count_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetMasterAccount {
_private: (),
}
impl GetMasterAccount {
pub fn builder() -> crate::input::get_master_account_input::Builder {
crate::input::get_master_account_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetMasterAccount {
type Output = std::result::Result<
crate::output::GetMasterAccountOutput,
crate::error::GetMasterAccountError,
>;
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_master_account_error(response)
} else {
crate::operation_deser::parse_get_master_account_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct GetMembers {
_private: (),
}
impl GetMembers {
pub fn builder() -> crate::input::get_members_input::Builder {
crate::input::get_members_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for GetMembers {
type Output =
std::result::Result<crate::output::GetMembersOutput, crate::error::GetMembersError>;
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_members_error(response)
} else {
crate::operation_deser::parse_get_members_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct InviteMembers {
_private: (),
}
impl InviteMembers {
pub fn builder() -> crate::input::invite_members_input::Builder {
crate::input::invite_members_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for InviteMembers {
type Output =
std::result::Result<crate::output::InviteMembersOutput, crate::error::InviteMembersError>;
fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
if !response.status().is_success() && response.status().as_u16() != 200 {
crate::operation_deser::parse_invite_members_error(response)
} else {
crate::operation_deser::parse_invite_members_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListEnabledProductsForImport {
_private: (),
}
impl ListEnabledProductsForImport {
pub fn builder() -> crate::input::list_enabled_products_for_import_input::Builder {
crate::input::list_enabled_products_for_import_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListEnabledProductsForImport {
type Output = std::result::Result<
crate::output::ListEnabledProductsForImportOutput,
crate::error::ListEnabledProductsForImportError,
>;
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_enabled_products_for_import_error(response)
} else {
crate::operation_deser::parse_list_enabled_products_for_import_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListFindingAggregators {
_private: (),
}
impl ListFindingAggregators {
pub fn builder() -> crate::input::list_finding_aggregators_input::Builder {
crate::input::list_finding_aggregators_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListFindingAggregators {
type Output = std::result::Result<
crate::output::ListFindingAggregatorsOutput,
crate::error::ListFindingAggregatorsError,
>;
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_finding_aggregators_error(response)
} else {
crate::operation_deser::parse_list_finding_aggregators_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListInvitations {
_private: (),
}
impl ListInvitations {
pub fn builder() -> crate::input::list_invitations_input::Builder {
crate::input::list_invitations_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListInvitations {
type Output = std::result::Result<
crate::output::ListInvitationsOutput,
crate::error::ListInvitationsError,
>;
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_invitations_error(response)
} else {
crate::operation_deser::parse_list_invitations_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListMembers {
_private: (),
}
impl ListMembers {
pub fn builder() -> crate::input::list_members_input::Builder {
crate::input::list_members_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListMembers {
type Output =
std::result::Result<crate::output::ListMembersOutput, crate::error::ListMembersError>;
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_members_error(response)
} else {
crate::operation_deser::parse_list_members_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct ListOrganizationAdminAccounts {
_private: (),
}
impl ListOrganizationAdminAccounts {
pub fn builder() -> crate::input::list_organization_admin_accounts_input::Builder {
crate::input::list_organization_admin_accounts_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for ListOrganizationAdminAccounts {
type Output = std::result::Result<
crate::output::ListOrganizationAdminAccountsOutput,
crate::error::ListOrganizationAdminAccountsError,
>;
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_organization_admin_accounts_error(response)
} else {
crate::operation_deser::parse_list_organization_admin_accounts_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 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 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 UpdateActionTarget {
_private: (),
}
impl UpdateActionTarget {
pub fn builder() -> crate::input::update_action_target_input::Builder {
crate::input::update_action_target_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateActionTarget {
type Output = std::result::Result<
crate::output::UpdateActionTargetOutput,
crate::error::UpdateActionTargetError,
>;
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_action_target_error(response)
} else {
crate::operation_deser::parse_update_action_target_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateFindingAggregator {
_private: (),
}
impl UpdateFindingAggregator {
pub fn builder() -> crate::input::update_finding_aggregator_input::Builder {
crate::input::update_finding_aggregator_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateFindingAggregator {
type Output = std::result::Result<
crate::output::UpdateFindingAggregatorOutput,
crate::error::UpdateFindingAggregatorError,
>;
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_finding_aggregator_error(response)
} else {
crate::operation_deser::parse_update_finding_aggregator_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, 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::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateInsight {
_private: (),
}
impl UpdateInsight {
pub fn builder() -> crate::input::update_insight_input::Builder {
crate::input::update_insight_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateInsight {
type Output =
std::result::Result<crate::output::UpdateInsightOutput, crate::error::UpdateInsightError>;
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_insight_error(response)
} else {
crate::operation_deser::parse_update_insight_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateOrganizationConfiguration {
_private: (),
}
impl UpdateOrganizationConfiguration {
pub fn builder() -> crate::input::update_organization_configuration_input::Builder {
crate::input::update_organization_configuration_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateOrganizationConfiguration {
type Output = std::result::Result<
crate::output::UpdateOrganizationConfigurationOutput,
crate::error::UpdateOrganizationConfigurationError,
>;
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_organization_configuration_error(response)
} else {
crate::operation_deser::parse_update_organization_configuration_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateSecurityHubConfiguration {
_private: (),
}
impl UpdateSecurityHubConfiguration {
pub fn builder() -> crate::input::update_security_hub_configuration_input::Builder {
crate::input::update_security_hub_configuration_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateSecurityHubConfiguration {
type Output = std::result::Result<
crate::output::UpdateSecurityHubConfigurationOutput,
crate::error::UpdateSecurityHubConfigurationError,
>;
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_security_hub_configuration_error(response)
} else {
crate::operation_deser::parse_update_security_hub_configuration_response(response)
}
}
}
#[derive(std::clone::Clone, std::default::Default, std::fmt::Debug)]
pub struct UpdateStandardsControl {
_private: (),
}
impl UpdateStandardsControl {
pub fn builder() -> crate::input::update_standards_control_input::Builder {
crate::input::update_standards_control_input::Builder::default()
}
pub fn new() -> Self {
Self { _private: () }
}
}
impl aws_smithy_http::response::ParseStrictResponse for UpdateStandardsControl {
type Output = std::result::Result<
crate::output::UpdateStandardsControlOutput,
crate::error::UpdateStandardsControlError,
>;
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_standards_control_error(response)
} else {
crate::operation_deser::parse_update_standards_control_response(response)
}
}
}
pub mod customize;