use std::error::Error;
use std::fmt;
#[allow(warnings)]
use futures::future;
use futures::Future;
use rusoto_core::credential::ProvideAwsCredentials;
use rusoto_core::region;
use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
use rusoto_core::{Client, RusotoError, RusotoFuture};
use rusoto_core::proto;
use rusoto_core::signature::SignedRequest;
use serde_json;
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AcceptPortfolioShareInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
#[serde(rename = "PortfolioShareType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_share_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AcceptPortfolioShareOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AccessLevelFilter {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AssociateBudgetWithResourceInput {
#[serde(rename = "BudgetName")]
pub budget_name: String,
#[serde(rename = "ResourceId")]
pub resource_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociateBudgetWithResourceOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AssociatePrincipalWithPortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
#[serde(rename = "PrincipalARN")]
pub principal_arn: String,
#[serde(rename = "PrincipalType")]
pub principal_type: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociatePrincipalWithPortfolioOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AssociateProductWithPortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "SourcePortfolioId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_portfolio_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociateProductWithPortfolioOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AssociateServiceActionWithProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
#[serde(rename = "ServiceActionId")]
pub service_action_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociateServiceActionWithProvisioningArtifactOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AssociateTagOptionWithResourceInput {
#[serde(rename = "ResourceId")]
pub resource_id: String,
#[serde(rename = "TagOptionId")]
pub tag_option_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociateTagOptionWithResourceOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchAssociateServiceActionWithProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "ServiceActionAssociations")]
pub service_action_associations: Vec<ServiceActionAssociation>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchAssociateServiceActionWithProvisioningArtifactOutput {
#[serde(rename = "FailedServiceActionAssociations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failed_service_action_associations: Option<Vec<FailedServiceActionAssociation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchDisassociateServiceActionFromProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "ServiceActionAssociations")]
pub service_action_associations: Vec<ServiceActionAssociation>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchDisassociateServiceActionFromProvisioningArtifactOutput {
#[serde(rename = "FailedServiceActionAssociations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failed_service_action_associations: Option<Vec<FailedServiceActionAssociation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BudgetDetail {
#[serde(rename = "BudgetName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub budget_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CloudWatchDashboard {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ConstraintDetail {
#[serde(rename = "ConstraintId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_id: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Owner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ConstraintSummary {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CopyProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "CopyOptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub copy_options: Option<Vec<String>>,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "SourceProductArn")]
pub source_product_arn: String,
#[serde(rename = "SourceProvisioningArtifactIdentifiers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_provisioning_artifact_identifiers:
Option<Vec<::std::collections::HashMap<String, String>>>,
#[serde(rename = "TargetProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_product_id: Option<String>,
#[serde(rename = "TargetProductName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_product_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CopyProductOutput {
#[serde(rename = "CopyProductToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub copy_product_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateConstraintInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "Parameters")]
pub parameters: String,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "Type")]
pub type_: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateConstraintOutput {
#[serde(rename = "ConstraintDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_detail: Option<ConstraintDetail>,
#[serde(rename = "ConstraintParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_parameters: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreatePortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "DisplayName")]
pub display_name: String,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "ProviderName")]
pub provider_name: String,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreatePortfolioOutput {
#[serde(rename = "PortfolioDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_detail: Option<PortfolioDetail>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreatePortfolioShareInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "AccountId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_id: Option<String>,
#[serde(rename = "OrganizationNode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub organization_node: Option<OrganizationNode>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreatePortfolioShareOutput {
#[serde(rename = "PortfolioShareToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_share_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Distributor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub distributor: Option<String>,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Owner")]
pub owner: String,
#[serde(rename = "ProductType")]
pub product_type: String,
#[serde(rename = "ProvisioningArtifactParameters")]
pub provisioning_artifact_parameters: ProvisioningArtifactProperties,
#[serde(rename = "SupportDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_description: Option<String>,
#[serde(rename = "SupportEmail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_email: Option<String>,
#[serde(rename = "SupportUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_url: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateProductOutput {
#[serde(rename = "ProductViewDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_detail: Option<ProductViewDetail>,
#[serde(rename = "ProvisioningArtifactDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_detail: Option<ProvisioningArtifactDetail>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateProvisionedProductPlanInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "NotificationArns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_arns: Option<Vec<String>>,
#[serde(rename = "PathId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path_id: Option<String>,
#[serde(rename = "PlanName")]
pub plan_name: String,
#[serde(rename = "PlanType")]
pub plan_type: String,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisionedProductName")]
pub provisioned_product_name: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
#[serde(rename = "ProvisioningParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_parameters: Option<Vec<UpdateProvisioningParameter>>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateProvisionedProductPlanOutput {
#[serde(rename = "PlanId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_id: Option<String>,
#[serde(rename = "PlanName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_name: Option<String>,
#[serde(rename = "ProvisionProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provision_product_id: Option<String>,
#[serde(rename = "ProvisionedProductName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_name: Option<String>,
#[serde(rename = "ProvisioningArtifactId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "Parameters")]
pub parameters: ProvisioningArtifactProperties,
#[serde(rename = "ProductId")]
pub product_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateProvisioningArtifactOutput {
#[serde(rename = "Info")]
#[serde(skip_serializing_if = "Option::is_none")]
pub info: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "ProvisioningArtifactDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_detail: Option<ProvisioningArtifactDetail>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateServiceActionInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Definition")]
pub definition: ::std::collections::HashMap<String, String>,
#[serde(rename = "DefinitionType")]
pub definition_type: String,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateServiceActionOutput {
#[serde(rename = "ServiceActionDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_action_detail: Option<ServiceActionDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateTagOptionInput {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateTagOptionOutput {
#[serde(rename = "TagOptionDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_option_detail: Option<TagOptionDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteConstraintInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteConstraintOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeletePortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeletePortfolioOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeletePortfolioShareInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "AccountId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_id: Option<String>,
#[serde(rename = "OrganizationNode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub organization_node: Option<OrganizationNode>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeletePortfolioShareOutput {
#[serde(rename = "PortfolioShareToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_share_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteProductOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteProvisionedProductPlanInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "IgnoreErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ignore_errors: Option<bool>,
#[serde(rename = "PlanId")]
pub plan_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteProvisionedProductPlanOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteProvisioningArtifactOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteServiceActionInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteServiceActionOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteTagOptionInput {
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteTagOptionOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeConstraintInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeConstraintOutput {
#[serde(rename = "ConstraintDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_detail: Option<ConstraintDetail>,
#[serde(rename = "ConstraintParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_parameters: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeCopyProductStatusInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "CopyProductToken")]
pub copy_product_token: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeCopyProductStatusOutput {
#[serde(rename = "CopyProductStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub copy_product_status: Option<String>,
#[serde(rename = "StatusDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_detail: Option<String>,
#[serde(rename = "TargetProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_product_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribePortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribePortfolioOutput {
#[serde(rename = "Budgets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub budgets: Option<Vec<BudgetDetail>>,
#[serde(rename = "PortfolioDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_detail: Option<PortfolioDetail>,
#[serde(rename = "TagOptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_options: Option<Vec<TagOptionDetail>>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribePortfolioShareStatusInput {
#[serde(rename = "PortfolioShareToken")]
pub portfolio_share_token: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribePortfolioShareStatusOutput {
#[serde(rename = "OrganizationNodeValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub organization_node_value: Option<String>,
#[serde(rename = "PortfolioId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_id: Option<String>,
#[serde(rename = "PortfolioShareToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_share_token: Option<String>,
#[serde(rename = "ShareDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub share_details: Option<ShareDetails>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeProductAsAdminInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeProductAsAdminOutput {
#[serde(rename = "Budgets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub budgets: Option<Vec<BudgetDetail>>,
#[serde(rename = "ProductViewDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_detail: Option<ProductViewDetail>,
#[serde(rename = "ProvisioningArtifactSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_summaries: Option<Vec<ProvisioningArtifactSummary>>,
#[serde(rename = "TagOptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_options: Option<Vec<TagOptionDetail>>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeProductOutput {
#[serde(rename = "Budgets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub budgets: Option<Vec<BudgetDetail>>,
#[serde(rename = "ProductViewSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_summary: Option<ProductViewSummary>,
#[serde(rename = "ProvisioningArtifacts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifacts: Option<Vec<ProvisioningArtifact>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeProductViewInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeProductViewOutput {
#[serde(rename = "ProductViewSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_summary: Option<ProductViewSummary>,
#[serde(rename = "ProvisioningArtifacts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifacts: Option<Vec<ProvisioningArtifact>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeProvisionedProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeProvisionedProductOutput {
#[serde(rename = "CloudWatchDashboards")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_dashboards: Option<Vec<CloudWatchDashboard>>,
#[serde(rename = "ProvisionedProductDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_detail: Option<ProvisionedProductDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeProvisionedProductPlanInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "PlanId")]
pub plan_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeProvisionedProductPlanOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ProvisionedProductPlanDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_plan_details: Option<ProvisionedProductPlanDetails>,
#[serde(rename = "ResourceChanges")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_changes: Option<Vec<ResourceChange>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
#[serde(rename = "Verbose")]
#[serde(skip_serializing_if = "Option::is_none")]
pub verbose: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeProvisioningArtifactOutput {
#[serde(rename = "Info")]
#[serde(skip_serializing_if = "Option::is_none")]
pub info: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "ProvisioningArtifactDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_detail: Option<ProvisioningArtifactDetail>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeProvisioningParametersInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PathId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path_id: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeProvisioningParametersOutput {
#[serde(rename = "ConstraintSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_summaries: Option<Vec<ConstraintSummary>>,
#[serde(rename = "ProvisioningArtifactParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_parameters: Option<Vec<ProvisioningArtifactParameter>>,
#[serde(rename = "ProvisioningArtifactPreferences")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_preferences: Option<ProvisioningArtifactPreferences>,
#[serde(rename = "TagOptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_options: Option<Vec<TagOptionSummary>>,
#[serde(rename = "UsageInstructions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub usage_instructions: Option<Vec<UsageInstruction>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeRecordInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeRecordOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "RecordDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_detail: Option<RecordDetail>,
#[serde(rename = "RecordOutputs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_outputs: Option<Vec<RecordOutput>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeServiceActionInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeServiceActionOutput {
#[serde(rename = "ServiceActionDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_action_detail: Option<ServiceActionDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeTagOptionInput {
#[serde(rename = "Id")]
pub id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeTagOptionOutput {
#[serde(rename = "TagOptionDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_option_detail: Option<TagOptionDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DisableAWSOrganizationsAccessInput {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DisableAWSOrganizationsAccessOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DisassociateBudgetFromResourceInput {
#[serde(rename = "BudgetName")]
pub budget_name: String,
#[serde(rename = "ResourceId")]
pub resource_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DisassociateBudgetFromResourceOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DisassociatePrincipalFromPortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
#[serde(rename = "PrincipalARN")]
pub principal_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DisassociatePrincipalFromPortfolioOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DisassociateProductFromPortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
#[serde(rename = "ProductId")]
pub product_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DisassociateProductFromPortfolioOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DisassociateServiceActionFromProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
#[serde(rename = "ServiceActionId")]
pub service_action_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DisassociateServiceActionFromProvisioningArtifactOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DisassociateTagOptionFromResourceInput {
#[serde(rename = "ResourceId")]
pub resource_id: String,
#[serde(rename = "TagOptionId")]
pub tag_option_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DisassociateTagOptionFromResourceOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct EnableAWSOrganizationsAccessInput {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct EnableAWSOrganizationsAccessOutput {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ExecuteProvisionedProductPlanInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "PlanId")]
pub plan_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ExecuteProvisionedProductPlanOutput {
#[serde(rename = "RecordDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_detail: Option<RecordDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ExecuteProvisionedProductServiceActionInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "ExecuteToken")]
pub execute_token: String,
#[serde(rename = "ProvisionedProductId")]
pub provisioned_product_id: String,
#[serde(rename = "ServiceActionId")]
pub service_action_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ExecuteProvisionedProductServiceActionOutput {
#[serde(rename = "RecordDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_detail: Option<RecordDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct FailedServiceActionAssociation {
#[serde(rename = "ErrorCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_code: Option<String>,
#[serde(rename = "ErrorMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_message: Option<String>,
#[serde(rename = "ProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
#[serde(rename = "ProvisioningArtifactId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_id: Option<String>,
#[serde(rename = "ServiceActionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_action_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetAWSOrganizationsAccessStatusInput {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetAWSOrganizationsAccessStatusOutput {
#[serde(rename = "AccessStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct LaunchPathSummary {
#[serde(rename = "ConstraintSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_summaries: Option<Vec<ConstraintSummary>>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListAcceptedPortfolioSharesInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "PortfolioShareType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_share_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListAcceptedPortfolioSharesOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "PortfolioDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_details: Option<Vec<PortfolioDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListBudgetsForResourceInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ResourceId")]
pub resource_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListBudgetsForResourceOutput {
#[serde(rename = "Budgets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub budgets: Option<Vec<BudgetDetail>>,
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListConstraintsForPortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
#[serde(rename = "ProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListConstraintsForPortfolioOutput {
#[serde(rename = "ConstraintDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_details: Option<Vec<ConstraintDetail>>,
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListLaunchPathsInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListLaunchPathsOutput {
#[serde(rename = "LaunchPathSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub launch_path_summaries: Option<Vec<LaunchPathSummary>>,
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListOrganizationPortfolioAccessInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "OrganizationNodeType")]
pub organization_node_type: String,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListOrganizationPortfolioAccessOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "OrganizationNodes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub organization_nodes: Option<Vec<OrganizationNode>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListPortfolioAccessInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListPortfolioAccessOutput {
#[serde(rename = "AccountIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_ids: Option<Vec<String>>,
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListPortfoliosForProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListPortfoliosForProductOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "PortfolioDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_details: Option<Vec<PortfolioDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListPortfoliosInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListPortfoliosOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "PortfolioDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_details: Option<Vec<PortfolioDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListPrincipalsForPortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListPrincipalsForPortfolioOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "Principals")]
#[serde(skip_serializing_if = "Option::is_none")]
pub principals: Option<Vec<Principal>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListProvisionedProductPlansInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "AccessLevelFilter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_level_filter: Option<AccessLevelFilter>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ProvisionProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provision_product_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListProvisionedProductPlansOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ProvisionedProductPlans")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_plans: Option<Vec<ProvisionedProductPlanSummary>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListProvisioningArtifactsForServiceActionInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ServiceActionId")]
pub service_action_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListProvisioningArtifactsForServiceActionOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ProvisioningArtifactViews")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_views: Option<Vec<ProvisioningArtifactView>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListProvisioningArtifactsInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListProvisioningArtifactsOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ProvisioningArtifactDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_details: Option<Vec<ProvisioningArtifactDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListRecordHistoryInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "AccessLevelFilter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_level_filter: Option<AccessLevelFilter>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "SearchFilter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub search_filter: Option<ListRecordHistorySearchFilter>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListRecordHistoryOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "RecordDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_details: Option<Vec<RecordDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListRecordHistorySearchFilter {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListResourcesForTagOptionInput {
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ResourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "TagOptionId")]
pub tag_option_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListResourcesForTagOptionOutput {
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ResourceDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_details: Option<Vec<ResourceDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListServiceActionsForProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListServiceActionsForProvisioningArtifactOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ServiceActionSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_action_summaries: Option<Vec<ServiceActionSummary>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListServiceActionsInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListServiceActionsOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ServiceActionSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_action_summaries: Option<Vec<ServiceActionSummary>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListStackInstancesForProvisionedProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "ProvisionedProductId")]
pub provisioned_product_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListStackInstancesForProvisionedProductOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "StackInstances")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_instances: Option<Vec<StackInstance>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListTagOptionsFilters {
#[serde(rename = "Active")]
#[serde(skip_serializing_if = "Option::is_none")]
pub active: Option<bool>,
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListTagOptionsInput {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<ListTagOptionsFilters>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListTagOptionsOutput {
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "TagOptionDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_option_details: Option<Vec<TagOptionDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct OrganizationNode {
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ParameterConstraints {
#[serde(rename = "AllowedValues")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allowed_values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PortfolioDetail {
#[serde(rename = "ARN")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "DisplayName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub display_name: Option<String>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "ProviderName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provider_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Principal {
#[serde(rename = "PrincipalARN")]
#[serde(skip_serializing_if = "Option::is_none")]
pub principal_arn: Option<String>,
#[serde(rename = "PrincipalType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub principal_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProductViewAggregationValue {
#[serde(rename = "ApproximateCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approximate_count: Option<i64>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProductViewDetail {
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "ProductARN")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_arn: Option<String>,
#[serde(rename = "ProductViewSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_summary: Option<ProductViewSummary>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProductViewSummary {
#[serde(rename = "Distributor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub distributor: Option<String>,
#[serde(rename = "HasDefaultPath")]
#[serde(skip_serializing_if = "Option::is_none")]
pub has_default_path: Option<bool>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Owner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
#[serde(rename = "ProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
#[serde(rename = "ShortDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub short_description: Option<String>,
#[serde(rename = "SupportDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_description: Option<String>,
#[serde(rename = "SupportEmail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_email: Option<String>,
#[serde(rename = "SupportUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_url: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ProvisionProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "NotificationArns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_arns: Option<Vec<String>>,
#[serde(rename = "PathId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path_id: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisionToken")]
pub provision_token: String,
#[serde(rename = "ProvisionedProductName")]
pub provisioned_product_name: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
#[serde(rename = "ProvisioningParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_parameters: Option<Vec<ProvisioningParameter>>,
#[serde(rename = "ProvisioningPreferences")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_preferences: Option<ProvisioningPreferences>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisionProductOutput {
#[serde(rename = "RecordDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_detail: Option<RecordDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisionedProductAttribute {
#[serde(rename = "Arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "IdempotencyToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub idempotency_token: Option<String>,
#[serde(rename = "LastRecordId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_record_id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "PhysicalId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub physical_id: Option<String>,
#[serde(rename = "ProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
#[serde(rename = "ProvisioningArtifactId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_id: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_message: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "UserArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub user_arn: Option<String>,
#[serde(rename = "UserArnSession")]
#[serde(skip_serializing_if = "Option::is_none")]
pub user_arn_session: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisionedProductDetail {
#[serde(rename = "Arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "IdempotencyToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub idempotency_token: Option<String>,
#[serde(rename = "LastRecordId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_record_id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "ProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
#[serde(rename = "ProvisioningArtifactId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_id: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_message: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisionedProductPlanDetails {
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "NotificationArns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_arns: Option<Vec<String>>,
#[serde(rename = "PathId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path_id: Option<String>,
#[serde(rename = "PlanId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_id: Option<String>,
#[serde(rename = "PlanName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_name: Option<String>,
#[serde(rename = "PlanType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_type: Option<String>,
#[serde(rename = "ProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
#[serde(rename = "ProvisionProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provision_product_id: Option<String>,
#[serde(rename = "ProvisionProductName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provision_product_name: Option<String>,
#[serde(rename = "ProvisioningArtifactId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_id: Option<String>,
#[serde(rename = "ProvisioningParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_parameters: Option<Vec<UpdateProvisioningParameter>>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_message: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "UpdatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub updated_time: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisionedProductPlanSummary {
#[serde(rename = "PlanId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_id: Option<String>,
#[serde(rename = "PlanName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_name: Option<String>,
#[serde(rename = "PlanType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_type: Option<String>,
#[serde(rename = "ProvisionProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provision_product_id: Option<String>,
#[serde(rename = "ProvisionProductName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provision_product_name: Option<String>,
#[serde(rename = "ProvisioningArtifactId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisioningArtifact {
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisioningArtifactDetail {
#[serde(rename = "Active")]
#[serde(skip_serializing_if = "Option::is_none")]
pub active: Option<bool>,
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisioningArtifactParameter {
#[serde(rename = "DefaultValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_value: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "IsNoEcho")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_no_echo: Option<bool>,
#[serde(rename = "ParameterConstraints")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_constraints: Option<ParameterConstraints>,
#[serde(rename = "ParameterKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_key: Option<String>,
#[serde(rename = "ParameterType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisioningArtifactPreferences {
#[serde(rename = "StackSetAccounts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_accounts: Option<Vec<String>>,
#[serde(rename = "StackSetRegions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_regions: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ProvisioningArtifactProperties {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "DisableTemplateValidation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disable_template_validation: Option<bool>,
#[serde(rename = "Info")]
pub info: ::std::collections::HashMap<String, String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisioningArtifactSummary {
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "ProvisioningArtifactMetadata")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_metadata: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProvisioningArtifactView {
#[serde(rename = "ProductViewSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_summary: Option<ProductViewSummary>,
#[serde(rename = "ProvisioningArtifact")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact: Option<ProvisioningArtifact>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ProvisioningParameter {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ProvisioningPreferences {
#[serde(rename = "StackSetAccounts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_accounts: Option<Vec<String>>,
#[serde(rename = "StackSetFailureToleranceCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_failure_tolerance_count: Option<i64>,
#[serde(rename = "StackSetFailureTolerancePercentage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_failure_tolerance_percentage: Option<i64>,
#[serde(rename = "StackSetMaxConcurrencyCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_max_concurrency_count: Option<i64>,
#[serde(rename = "StackSetMaxConcurrencyPercentage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_max_concurrency_percentage: Option<i64>,
#[serde(rename = "StackSetRegions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_regions: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RecordDetail {
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "PathId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path_id: Option<String>,
#[serde(rename = "ProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
#[serde(rename = "ProvisionedProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_id: Option<String>,
#[serde(rename = "ProvisionedProductName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_name: Option<String>,
#[serde(rename = "ProvisionedProductType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_type: Option<String>,
#[serde(rename = "ProvisioningArtifactId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_id: Option<String>,
#[serde(rename = "RecordErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_errors: Option<Vec<RecordError>>,
#[serde(rename = "RecordId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_id: Option<String>,
#[serde(rename = "RecordTags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_tags: Option<Vec<RecordTag>>,
#[serde(rename = "RecordType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_type: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "UpdatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub updated_time: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RecordError {
#[serde(rename = "Code")]
#[serde(skip_serializing_if = "Option::is_none")]
pub code: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RecordOutput {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "OutputKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_key: Option<String>,
#[serde(rename = "OutputValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RecordTag {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RejectPortfolioShareInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PortfolioId")]
pub portfolio_id: String,
#[serde(rename = "PortfolioShareType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_share_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RejectPortfolioShareOutput {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResourceChange {
#[serde(rename = "Action")]
#[serde(skip_serializing_if = "Option::is_none")]
pub action: Option<String>,
#[serde(rename = "Details")]
#[serde(skip_serializing_if = "Option::is_none")]
pub details: Option<Vec<ResourceChangeDetail>>,
#[serde(rename = "LogicalResourceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub logical_resource_id: Option<String>,
#[serde(rename = "PhysicalResourceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub physical_resource_id: Option<String>,
#[serde(rename = "Replacement")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replacement: Option<String>,
#[serde(rename = "ResourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "Scope")]
#[serde(skip_serializing_if = "Option::is_none")]
pub scope: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResourceChangeDetail {
#[serde(rename = "CausingEntity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub causing_entity: Option<String>,
#[serde(rename = "Evaluation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub evaluation: Option<String>,
#[serde(rename = "Target")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target: Option<ResourceTargetDefinition>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResourceDetail {
#[serde(rename = "ARN")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResourceTargetDefinition {
#[serde(rename = "Attribute")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attribute: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "RequiresRecreation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub requires_recreation: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ScanProvisionedProductsInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "AccessLevelFilter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_level_filter: Option<AccessLevelFilter>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ScanProvisionedProductsOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ProvisionedProducts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_products: Option<Vec<ProvisionedProductDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct SearchProductsAsAdminInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "PortfolioId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_id: Option<String>,
#[serde(rename = "ProductSource")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_source: Option<String>,
#[serde(rename = "SortBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_by: Option<String>,
#[serde(rename = "SortOrder")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_order: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SearchProductsAsAdminOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ProductViewDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_details: Option<Vec<ProductViewDetail>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct SearchProductsInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "SortBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_by: Option<String>,
#[serde(rename = "SortOrder")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_order: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SearchProductsOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ProductViewAggregations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_aggregations:
Option<::std::collections::HashMap<String, Vec<ProductViewAggregationValue>>>,
#[serde(rename = "ProductViewSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_summaries: Option<Vec<ProductViewSummary>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct SearchProvisionedProductsInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "AccessLevelFilter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_level_filter: Option<AccessLevelFilter>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "PageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_size: Option<i64>,
#[serde(rename = "PageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "SortBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_by: Option<String>,
#[serde(rename = "SortOrder")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_order: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SearchProvisionedProductsOutput {
#[serde(rename = "NextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "ProvisionedProducts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_products: Option<Vec<ProvisionedProductAttribute>>,
#[serde(rename = "TotalResultsCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub total_results_count: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ServiceActionAssociation {
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
#[serde(rename = "ServiceActionId")]
pub service_action_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ServiceActionDetail {
#[serde(rename = "Definition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub definition: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "ServiceActionSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_action_summary: Option<ServiceActionSummary>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ServiceActionSummary {
#[serde(rename = "DefinitionType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub definition_type: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ShareDetails {
#[serde(rename = "ShareErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub share_errors: Option<Vec<ShareError>>,
#[serde(rename = "SuccessfulShares")]
#[serde(skip_serializing_if = "Option::is_none")]
pub successful_shares: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ShareError {
#[serde(rename = "Accounts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accounts: Option<Vec<String>>,
#[serde(rename = "Error")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error: Option<String>,
#[serde(rename = "Message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StackInstance {
#[serde(rename = "Account")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account: Option<String>,
#[serde(rename = "Region")]
#[serde(skip_serializing_if = "Option::is_none")]
pub region: Option<String>,
#[serde(rename = "StackInstanceStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_instance_status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Tag {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TagOptionDetail {
#[serde(rename = "Active")]
#[serde(skip_serializing_if = "Option::is_none")]
pub active: Option<bool>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TagOptionSummary {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct TerminateProvisionedProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "IgnoreErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ignore_errors: Option<bool>,
#[serde(rename = "ProvisionedProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_id: Option<String>,
#[serde(rename = "ProvisionedProductName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_name: Option<String>,
#[serde(rename = "TerminateToken")]
pub terminate_token: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TerminateProvisionedProductOutput {
#[serde(rename = "RecordDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_detail: Option<RecordDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateConstraintInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
pub id: String,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateConstraintOutput {
#[serde(rename = "ConstraintDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_detail: Option<ConstraintDetail>,
#[serde(rename = "ConstraintParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub constraint_parameters: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdatePortfolioInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "AddTags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub add_tags: Option<Vec<Tag>>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "DisplayName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub display_name: Option<String>,
#[serde(rename = "Id")]
pub id: String,
#[serde(rename = "ProviderName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provider_name: Option<String>,
#[serde(rename = "RemoveTags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remove_tags: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdatePortfolioOutput {
#[serde(rename = "PortfolioDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub portfolio_detail: Option<PortfolioDetail>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "AddTags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub add_tags: Option<Vec<Tag>>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Distributor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub distributor: Option<String>,
#[serde(rename = "Id")]
pub id: String,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Owner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
#[serde(rename = "RemoveTags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remove_tags: Option<Vec<String>>,
#[serde(rename = "SupportDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_description: Option<String>,
#[serde(rename = "SupportEmail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_email: Option<String>,
#[serde(rename = "SupportUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateProductOutput {
#[serde(rename = "ProductViewDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_view_detail: Option<ProductViewDetail>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateProvisionedProductInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "PathId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path_id: Option<String>,
#[serde(rename = "ProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_id: Option<String>,
#[serde(rename = "ProvisionedProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_id: Option<String>,
#[serde(rename = "ProvisionedProductName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_name: Option<String>,
#[serde(rename = "ProvisioningArtifactId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_id: Option<String>,
#[serde(rename = "ProvisioningParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_parameters: Option<Vec<UpdateProvisioningParameter>>,
#[serde(rename = "ProvisioningPreferences")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_preferences: Option<UpdateProvisioningPreferences>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "UpdateToken")]
pub update_token: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateProvisionedProductOutput {
#[serde(rename = "RecordDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_detail: Option<RecordDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateProvisionedProductPropertiesInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "IdempotencyToken")]
pub idempotency_token: String,
#[serde(rename = "ProvisionedProductId")]
pub provisioned_product_id: String,
#[serde(rename = "ProvisionedProductProperties")]
pub provisioned_product_properties: ::std::collections::HashMap<String, String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateProvisionedProductPropertiesOutput {
#[serde(rename = "ProvisionedProductId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_id: Option<String>,
#[serde(rename = "ProvisionedProductProperties")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioned_product_properties: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "RecordId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub record_id: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateProvisioningArtifactInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Active")]
#[serde(skip_serializing_if = "Option::is_none")]
pub active: Option<bool>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "ProductId")]
pub product_id: String,
#[serde(rename = "ProvisioningArtifactId")]
pub provisioning_artifact_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateProvisioningArtifactOutput {
#[serde(rename = "Info")]
#[serde(skip_serializing_if = "Option::is_none")]
pub info: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "ProvisioningArtifactDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_artifact_detail: Option<ProvisioningArtifactDetail>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct UpdateProvisioningParameter {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "UsePreviousValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub use_previous_value: Option<bool>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateProvisioningPreferences {
#[serde(rename = "StackSetAccounts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_accounts: Option<Vec<String>>,
#[serde(rename = "StackSetFailureToleranceCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_failure_tolerance_count: Option<i64>,
#[serde(rename = "StackSetFailureTolerancePercentage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_failure_tolerance_percentage: Option<i64>,
#[serde(rename = "StackSetMaxConcurrencyCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_max_concurrency_count: Option<i64>,
#[serde(rename = "StackSetMaxConcurrencyPercentage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_max_concurrency_percentage: Option<i64>,
#[serde(rename = "StackSetOperationType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_operation_type: Option<String>,
#[serde(rename = "StackSetRegions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stack_set_regions: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateServiceActionInput {
#[serde(rename = "AcceptLanguage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_language: Option<String>,
#[serde(rename = "Definition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub definition: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
pub id: String,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateServiceActionOutput {
#[serde(rename = "ServiceActionDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_action_detail: Option<ServiceActionDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateTagOptionInput {
#[serde(rename = "Active")]
#[serde(skip_serializing_if = "Option::is_none")]
pub active: Option<bool>,
#[serde(rename = "Id")]
pub id: String,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateTagOptionOutput {
#[serde(rename = "TagOptionDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_option_detail: Option<TagOptionDetail>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UsageInstruction {
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Debug, PartialEq)]
pub enum AcceptPortfolioShareError {
InvalidParameters(String),
LimitExceeded(String),
ResourceNotFound(String),
}
impl AcceptPortfolioShareError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<AcceptPortfolioShareError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(AcceptPortfolioShareError::InvalidParameters(
err.msg,
))
}
"LimitExceededException" => {
return RusotoError::Service(AcceptPortfolioShareError::LimitExceeded(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(AcceptPortfolioShareError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AcceptPortfolioShareError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AcceptPortfolioShareError {
fn description(&self) -> &str {
match *self {
AcceptPortfolioShareError::InvalidParameters(ref cause) => cause,
AcceptPortfolioShareError::LimitExceeded(ref cause) => cause,
AcceptPortfolioShareError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum AssociateBudgetWithResourceError {
DuplicateResource(String),
InvalidParameters(String),
LimitExceeded(String),
ResourceNotFound(String),
}
impl AssociateBudgetWithResourceError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<AssociateBudgetWithResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateResourceException" => {
return RusotoError::Service(
AssociateBudgetWithResourceError::DuplicateResource(err.msg),
)
}
"InvalidParametersException" => {
return RusotoError::Service(
AssociateBudgetWithResourceError::InvalidParameters(err.msg),
)
}
"LimitExceededException" => {
return RusotoError::Service(AssociateBudgetWithResourceError::LimitExceeded(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(
AssociateBudgetWithResourceError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AssociateBudgetWithResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AssociateBudgetWithResourceError {
fn description(&self) -> &str {
match *self {
AssociateBudgetWithResourceError::DuplicateResource(ref cause) => cause,
AssociateBudgetWithResourceError::InvalidParameters(ref cause) => cause,
AssociateBudgetWithResourceError::LimitExceeded(ref cause) => cause,
AssociateBudgetWithResourceError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum AssociatePrincipalWithPortfolioError {
InvalidParameters(String),
LimitExceeded(String),
ResourceNotFound(String),
}
impl AssociatePrincipalWithPortfolioError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<AssociatePrincipalWithPortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
AssociatePrincipalWithPortfolioError::InvalidParameters(err.msg),
)
}
"LimitExceededException" => {
return RusotoError::Service(
AssociatePrincipalWithPortfolioError::LimitExceeded(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
AssociatePrincipalWithPortfolioError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AssociatePrincipalWithPortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AssociatePrincipalWithPortfolioError {
fn description(&self) -> &str {
match *self {
AssociatePrincipalWithPortfolioError::InvalidParameters(ref cause) => cause,
AssociatePrincipalWithPortfolioError::LimitExceeded(ref cause) => cause,
AssociatePrincipalWithPortfolioError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum AssociateProductWithPortfolioError {
InvalidParameters(String),
LimitExceeded(String),
ResourceNotFound(String),
}
impl AssociateProductWithPortfolioError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<AssociateProductWithPortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
AssociateProductWithPortfolioError::InvalidParameters(err.msg),
)
}
"LimitExceededException" => {
return RusotoError::Service(AssociateProductWithPortfolioError::LimitExceeded(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(
AssociateProductWithPortfolioError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AssociateProductWithPortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AssociateProductWithPortfolioError {
fn description(&self) -> &str {
match *self {
AssociateProductWithPortfolioError::InvalidParameters(ref cause) => cause,
AssociateProductWithPortfolioError::LimitExceeded(ref cause) => cause,
AssociateProductWithPortfolioError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum AssociateServiceActionWithProvisioningArtifactError {
DuplicateResource(String),
LimitExceeded(String),
ResourceNotFound(String),
}
impl AssociateServiceActionWithProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<AssociateServiceActionWithProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateResourceException" => {
return RusotoError::Service(
AssociateServiceActionWithProvisioningArtifactError::DuplicateResource(
err.msg,
),
)
}
"LimitExceededException" => {
return RusotoError::Service(
AssociateServiceActionWithProvisioningArtifactError::LimitExceeded(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
AssociateServiceActionWithProvisioningArtifactError::ResourceNotFound(
err.msg,
),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AssociateServiceActionWithProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AssociateServiceActionWithProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
AssociateServiceActionWithProvisioningArtifactError::DuplicateResource(ref cause) => {
cause
}
AssociateServiceActionWithProvisioningArtifactError::LimitExceeded(ref cause) => cause,
AssociateServiceActionWithProvisioningArtifactError::ResourceNotFound(ref cause) => {
cause
}
}
}
}
#[derive(Debug, PartialEq)]
pub enum AssociateTagOptionWithResourceError {
DuplicateResource(String),
InvalidParameters(String),
InvalidState(String),
LimitExceeded(String),
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl AssociateTagOptionWithResourceError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<AssociateTagOptionWithResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateResourceException" => {
return RusotoError::Service(
AssociateTagOptionWithResourceError::DuplicateResource(err.msg),
)
}
"InvalidParametersException" => {
return RusotoError::Service(
AssociateTagOptionWithResourceError::InvalidParameters(err.msg),
)
}
"InvalidStateException" => {
return RusotoError::Service(AssociateTagOptionWithResourceError::InvalidState(
err.msg,
))
}
"LimitExceededException" => {
return RusotoError::Service(
AssociateTagOptionWithResourceError::LimitExceeded(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
AssociateTagOptionWithResourceError::ResourceNotFound(err.msg),
)
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(
AssociateTagOptionWithResourceError::TagOptionNotMigrated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AssociateTagOptionWithResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AssociateTagOptionWithResourceError {
fn description(&self) -> &str {
match *self {
AssociateTagOptionWithResourceError::DuplicateResource(ref cause) => cause,
AssociateTagOptionWithResourceError::InvalidParameters(ref cause) => cause,
AssociateTagOptionWithResourceError::InvalidState(ref cause) => cause,
AssociateTagOptionWithResourceError::LimitExceeded(ref cause) => cause,
AssociateTagOptionWithResourceError::ResourceNotFound(ref cause) => cause,
AssociateTagOptionWithResourceError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchAssociateServiceActionWithProvisioningArtifactError {
InvalidParameters(String),
}
impl BatchAssociateServiceActionWithProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<BatchAssociateServiceActionWithProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
BatchAssociateServiceActionWithProvisioningArtifactError::InvalidParameters(
err.msg,
),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchAssociateServiceActionWithProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchAssociateServiceActionWithProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
BatchAssociateServiceActionWithProvisioningArtifactError::InvalidParameters(
ref cause,
) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchDisassociateServiceActionFromProvisioningArtifactError {
InvalidParameters(String),
}
impl BatchDisassociateServiceActionFromProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<BatchDisassociateServiceActionFromProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => return RusotoError::Service(
BatchDisassociateServiceActionFromProvisioningArtifactError::InvalidParameters(
err.msg,
),
),
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchDisassociateServiceActionFromProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchDisassociateServiceActionFromProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
BatchDisassociateServiceActionFromProvisioningArtifactError::InvalidParameters(
ref cause,
) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CopyProductError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl CopyProductError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CopyProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(CopyProductError::InvalidParameters(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(CopyProductError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CopyProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CopyProductError {
fn description(&self) -> &str {
match *self {
CopyProductError::InvalidParameters(ref cause) => cause,
CopyProductError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateConstraintError {
DuplicateResource(String),
InvalidParameters(String),
LimitExceeded(String),
ResourceNotFound(String),
}
impl CreateConstraintError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateConstraintError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateResourceException" => {
return RusotoError::Service(CreateConstraintError::DuplicateResource(err.msg))
}
"InvalidParametersException" => {
return RusotoError::Service(CreateConstraintError::InvalidParameters(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateConstraintError::LimitExceeded(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(CreateConstraintError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateConstraintError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateConstraintError {
fn description(&self) -> &str {
match *self {
CreateConstraintError::DuplicateResource(ref cause) => cause,
CreateConstraintError::InvalidParameters(ref cause) => cause,
CreateConstraintError::LimitExceeded(ref cause) => cause,
CreateConstraintError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreatePortfolioError {
InvalidParameters(String),
LimitExceeded(String),
TagOptionNotMigrated(String),
}
impl CreatePortfolioError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreatePortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(CreatePortfolioError::InvalidParameters(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreatePortfolioError::LimitExceeded(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(CreatePortfolioError::TagOptionNotMigrated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreatePortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreatePortfolioError {
fn description(&self) -> &str {
match *self {
CreatePortfolioError::InvalidParameters(ref cause) => cause,
CreatePortfolioError::LimitExceeded(ref cause) => cause,
CreatePortfolioError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreatePortfolioShareError {
InvalidParameters(String),
LimitExceeded(String),
OperationNotSupported(String),
ResourceNotFound(String),
}
impl CreatePortfolioShareError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreatePortfolioShareError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(CreatePortfolioShareError::InvalidParameters(
err.msg,
))
}
"LimitExceededException" => {
return RusotoError::Service(CreatePortfolioShareError::LimitExceeded(err.msg))
}
"OperationNotSupportedException" => {
return RusotoError::Service(CreatePortfolioShareError::OperationNotSupported(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(CreatePortfolioShareError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreatePortfolioShareError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreatePortfolioShareError {
fn description(&self) -> &str {
match *self {
CreatePortfolioShareError::InvalidParameters(ref cause) => cause,
CreatePortfolioShareError::LimitExceeded(ref cause) => cause,
CreatePortfolioShareError::OperationNotSupported(ref cause) => cause,
CreatePortfolioShareError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateProductError {
InvalidParameters(String),
LimitExceeded(String),
TagOptionNotMigrated(String),
}
impl CreateProductError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(CreateProductError::InvalidParameters(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateProductError::LimitExceeded(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(CreateProductError::TagOptionNotMigrated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateProductError {
fn description(&self) -> &str {
match *self {
CreateProductError::InvalidParameters(ref cause) => cause,
CreateProductError::LimitExceeded(ref cause) => cause,
CreateProductError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateProvisionedProductPlanError {
InvalidParameters(String),
InvalidState(String),
ResourceNotFound(String),
}
impl CreateProvisionedProductPlanError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CreateProvisionedProductPlanError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
CreateProvisionedProductPlanError::InvalidParameters(err.msg),
)
}
"InvalidStateException" => {
return RusotoError::Service(CreateProvisionedProductPlanError::InvalidState(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(
CreateProvisionedProductPlanError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateProvisionedProductPlanError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateProvisionedProductPlanError {
fn description(&self) -> &str {
match *self {
CreateProvisionedProductPlanError::InvalidParameters(ref cause) => cause,
CreateProvisionedProductPlanError::InvalidState(ref cause) => cause,
CreateProvisionedProductPlanError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateProvisioningArtifactError {
InvalidParameters(String),
LimitExceeded(String),
ResourceNotFound(String),
}
impl CreateProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CreateProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
CreateProvisioningArtifactError::InvalidParameters(err.msg),
)
}
"LimitExceededException" => {
return RusotoError::Service(CreateProvisioningArtifactError::LimitExceeded(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(CreateProvisioningArtifactError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
CreateProvisioningArtifactError::InvalidParameters(ref cause) => cause,
CreateProvisioningArtifactError::LimitExceeded(ref cause) => cause,
CreateProvisioningArtifactError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateServiceActionError {
InvalidParameters(String),
LimitExceeded(String),
}
impl CreateServiceActionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateServiceActionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(CreateServiceActionError::InvalidParameters(
err.msg,
))
}
"LimitExceededException" => {
return RusotoError::Service(CreateServiceActionError::LimitExceeded(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateServiceActionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateServiceActionError {
fn description(&self) -> &str {
match *self {
CreateServiceActionError::InvalidParameters(ref cause) => cause,
CreateServiceActionError::LimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateTagOptionError {
DuplicateResource(String),
LimitExceeded(String),
TagOptionNotMigrated(String),
}
impl CreateTagOptionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateTagOptionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateResourceException" => {
return RusotoError::Service(CreateTagOptionError::DuplicateResource(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(CreateTagOptionError::LimitExceeded(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(CreateTagOptionError::TagOptionNotMigrated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateTagOptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateTagOptionError {
fn description(&self) -> &str {
match *self {
CreateTagOptionError::DuplicateResource(ref cause) => cause,
CreateTagOptionError::LimitExceeded(ref cause) => cause,
CreateTagOptionError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteConstraintError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl DeleteConstraintError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteConstraintError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(DeleteConstraintError::InvalidParameters(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DeleteConstraintError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteConstraintError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteConstraintError {
fn description(&self) -> &str {
match *self {
DeleteConstraintError::InvalidParameters(ref cause) => cause,
DeleteConstraintError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeletePortfolioError {
InvalidParameters(String),
ResourceInUse(String),
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl DeletePortfolioError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeletePortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(DeletePortfolioError::InvalidParameters(err.msg))
}
"ResourceInUseException" => {
return RusotoError::Service(DeletePortfolioError::ResourceInUse(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DeletePortfolioError::ResourceNotFound(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(DeletePortfolioError::TagOptionNotMigrated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeletePortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeletePortfolioError {
fn description(&self) -> &str {
match *self {
DeletePortfolioError::InvalidParameters(ref cause) => cause,
DeletePortfolioError::ResourceInUse(ref cause) => cause,
DeletePortfolioError::ResourceNotFound(ref cause) => cause,
DeletePortfolioError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeletePortfolioShareError {
InvalidParameters(String),
OperationNotSupported(String),
ResourceNotFound(String),
}
impl DeletePortfolioShareError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeletePortfolioShareError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(DeletePortfolioShareError::InvalidParameters(
err.msg,
))
}
"OperationNotSupportedException" => {
return RusotoError::Service(DeletePortfolioShareError::OperationNotSupported(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DeletePortfolioShareError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeletePortfolioShareError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeletePortfolioShareError {
fn description(&self) -> &str {
match *self {
DeletePortfolioShareError::InvalidParameters(ref cause) => cause,
DeletePortfolioShareError::OperationNotSupported(ref cause) => cause,
DeletePortfolioShareError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteProductError {
InvalidParameters(String),
ResourceInUse(String),
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl DeleteProductError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(DeleteProductError::InvalidParameters(err.msg))
}
"ResourceInUseException" => {
return RusotoError::Service(DeleteProductError::ResourceInUse(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DeleteProductError::ResourceNotFound(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(DeleteProductError::TagOptionNotMigrated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteProductError {
fn description(&self) -> &str {
match *self {
DeleteProductError::InvalidParameters(ref cause) => cause,
DeleteProductError::ResourceInUse(ref cause) => cause,
DeleteProductError::ResourceNotFound(ref cause) => cause,
DeleteProductError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteProvisionedProductPlanError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl DeleteProvisionedProductPlanError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeleteProvisionedProductPlanError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
DeleteProvisionedProductPlanError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
DeleteProvisionedProductPlanError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteProvisionedProductPlanError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteProvisionedProductPlanError {
fn description(&self) -> &str {
match *self {
DeleteProvisionedProductPlanError::InvalidParameters(ref cause) => cause,
DeleteProvisionedProductPlanError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteProvisioningArtifactError {
InvalidParameters(String),
ResourceInUse(String),
ResourceNotFound(String),
}
impl DeleteProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeleteProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
DeleteProvisioningArtifactError::InvalidParameters(err.msg),
)
}
"ResourceInUseException" => {
return RusotoError::Service(DeleteProvisioningArtifactError::ResourceInUse(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DeleteProvisioningArtifactError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
DeleteProvisioningArtifactError::InvalidParameters(ref cause) => cause,
DeleteProvisioningArtifactError::ResourceInUse(ref cause) => cause,
DeleteProvisioningArtifactError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteServiceActionError {
ResourceInUse(String),
ResourceNotFound(String),
}
impl DeleteServiceActionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteServiceActionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceInUseException" => {
return RusotoError::Service(DeleteServiceActionError::ResourceInUse(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DeleteServiceActionError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteServiceActionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteServiceActionError {
fn description(&self) -> &str {
match *self {
DeleteServiceActionError::ResourceInUse(ref cause) => cause,
DeleteServiceActionError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteTagOptionError {
ResourceInUse(String),
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl DeleteTagOptionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteTagOptionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceInUseException" => {
return RusotoError::Service(DeleteTagOptionError::ResourceInUse(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DeleteTagOptionError::ResourceNotFound(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(DeleteTagOptionError::TagOptionNotMigrated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteTagOptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteTagOptionError {
fn description(&self) -> &str {
match *self {
DeleteTagOptionError::ResourceInUse(ref cause) => cause,
DeleteTagOptionError::ResourceNotFound(ref cause) => cause,
DeleteTagOptionError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeConstraintError {
ResourceNotFound(String),
}
impl DescribeConstraintError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeConstraintError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeConstraintError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeConstraintError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeConstraintError {
fn description(&self) -> &str {
match *self {
DescribeConstraintError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeCopyProductStatusError {
ResourceNotFound(String),
}
impl DescribeCopyProductStatusError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeCopyProductStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeCopyProductStatusError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeCopyProductStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeCopyProductStatusError {
fn description(&self) -> &str {
match *self {
DescribeCopyProductStatusError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribePortfolioError {
ResourceNotFound(String),
}
impl DescribePortfolioError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribePortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribePortfolioError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribePortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribePortfolioError {
fn description(&self) -> &str {
match *self {
DescribePortfolioError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribePortfolioShareStatusError {
InvalidParameters(String),
OperationNotSupported(String),
ResourceNotFound(String),
}
impl DescribePortfolioShareStatusError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribePortfolioShareStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
DescribePortfolioShareStatusError::InvalidParameters(err.msg),
)
}
"OperationNotSupportedException" => {
return RusotoError::Service(
DescribePortfolioShareStatusError::OperationNotSupported(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
DescribePortfolioShareStatusError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribePortfolioShareStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribePortfolioShareStatusError {
fn description(&self) -> &str {
match *self {
DescribePortfolioShareStatusError::InvalidParameters(ref cause) => cause,
DescribePortfolioShareStatusError::OperationNotSupported(ref cause) => cause,
DescribePortfolioShareStatusError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeProductError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl DescribeProductError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(DescribeProductError::InvalidParameters(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeProductError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeProductError {
fn description(&self) -> &str {
match *self {
DescribeProductError::InvalidParameters(ref cause) => cause,
DescribeProductError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeProductAsAdminError {
ResourceNotFound(String),
}
impl DescribeProductAsAdminError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeProductAsAdminError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeProductAsAdminError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeProductAsAdminError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeProductAsAdminError {
fn description(&self) -> &str {
match *self {
DescribeProductAsAdminError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeProductViewError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl DescribeProductViewError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeProductViewError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(DescribeProductViewError::InvalidParameters(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeProductViewError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeProductViewError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeProductViewError {
fn description(&self) -> &str {
match *self {
DescribeProductViewError::InvalidParameters(ref cause) => cause,
DescribeProductViewError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeProvisionedProductError {
ResourceNotFound(String),
}
impl DescribeProvisionedProductError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeProvisionedProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeProvisionedProductError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeProvisionedProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeProvisionedProductError {
fn description(&self) -> &str {
match *self {
DescribeProvisionedProductError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeProvisionedProductPlanError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl DescribeProvisionedProductPlanError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeProvisionedProductPlanError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
DescribeProvisionedProductPlanError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
DescribeProvisionedProductPlanError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeProvisionedProductPlanError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeProvisionedProductPlanError {
fn description(&self) -> &str {
match *self {
DescribeProvisionedProductPlanError::InvalidParameters(ref cause) => cause,
DescribeProvisionedProductPlanError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeProvisioningArtifactError {
ResourceNotFound(String),
}
impl DescribeProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(
DescribeProvisioningArtifactError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
DescribeProvisioningArtifactError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeProvisioningParametersError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl DescribeProvisioningParametersError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeProvisioningParametersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
DescribeProvisioningParametersError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
DescribeProvisioningParametersError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeProvisioningParametersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeProvisioningParametersError {
fn description(&self) -> &str {
match *self {
DescribeProvisioningParametersError::InvalidParameters(ref cause) => cause,
DescribeProvisioningParametersError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeRecordError {
ResourceNotFound(String),
}
impl DescribeRecordError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeRecordError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeRecordError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeRecordError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeRecordError {
fn description(&self) -> &str {
match *self {
DescribeRecordError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeServiceActionError {
ResourceNotFound(String),
}
impl DescribeServiceActionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeServiceActionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeServiceActionError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeServiceActionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeServiceActionError {
fn description(&self) -> &str {
match *self {
DescribeServiceActionError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeTagOptionError {
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl DescribeTagOptionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeTagOptionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(DescribeTagOptionError::ResourceNotFound(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(DescribeTagOptionError::TagOptionNotMigrated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeTagOptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeTagOptionError {
fn description(&self) -> &str {
match *self {
DescribeTagOptionError::ResourceNotFound(ref cause) => cause,
DescribeTagOptionError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DisableAWSOrganizationsAccessError {
InvalidState(String),
OperationNotSupported(String),
ResourceNotFound(String),
}
impl DisableAWSOrganizationsAccessError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DisableAWSOrganizationsAccessError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidStateException" => {
return RusotoError::Service(DisableAWSOrganizationsAccessError::InvalidState(
err.msg,
))
}
"OperationNotSupportedException" => {
return RusotoError::Service(
DisableAWSOrganizationsAccessError::OperationNotSupported(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
DisableAWSOrganizationsAccessError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DisableAWSOrganizationsAccessError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DisableAWSOrganizationsAccessError {
fn description(&self) -> &str {
match *self {
DisableAWSOrganizationsAccessError::InvalidState(ref cause) => cause,
DisableAWSOrganizationsAccessError::OperationNotSupported(ref cause) => cause,
DisableAWSOrganizationsAccessError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DisassociateBudgetFromResourceError {
ResourceNotFound(String),
}
impl DisassociateBudgetFromResourceError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DisassociateBudgetFromResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(
DisassociateBudgetFromResourceError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DisassociateBudgetFromResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DisassociateBudgetFromResourceError {
fn description(&self) -> &str {
match *self {
DisassociateBudgetFromResourceError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DisassociatePrincipalFromPortfolioError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl DisassociatePrincipalFromPortfolioError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DisassociatePrincipalFromPortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
DisassociatePrincipalFromPortfolioError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
DisassociatePrincipalFromPortfolioError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DisassociatePrincipalFromPortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DisassociatePrincipalFromPortfolioError {
fn description(&self) -> &str {
match *self {
DisassociatePrincipalFromPortfolioError::InvalidParameters(ref cause) => cause,
DisassociatePrincipalFromPortfolioError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DisassociateProductFromPortfolioError {
InvalidParameters(String),
ResourceInUse(String),
ResourceNotFound(String),
}
impl DisassociateProductFromPortfolioError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DisassociateProductFromPortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
DisassociateProductFromPortfolioError::InvalidParameters(err.msg),
)
}
"ResourceInUseException" => {
return RusotoError::Service(
DisassociateProductFromPortfolioError::ResourceInUse(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
DisassociateProductFromPortfolioError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DisassociateProductFromPortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DisassociateProductFromPortfolioError {
fn description(&self) -> &str {
match *self {
DisassociateProductFromPortfolioError::InvalidParameters(ref cause) => cause,
DisassociateProductFromPortfolioError::ResourceInUse(ref cause) => cause,
DisassociateProductFromPortfolioError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DisassociateServiceActionFromProvisioningArtifactError {
ResourceNotFound(String),
}
impl DisassociateServiceActionFromProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DisassociateServiceActionFromProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(
DisassociateServiceActionFromProvisioningArtifactError::ResourceNotFound(
err.msg,
),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DisassociateServiceActionFromProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DisassociateServiceActionFromProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
DisassociateServiceActionFromProvisioningArtifactError::ResourceNotFound(ref cause) => {
cause
}
}
}
}
#[derive(Debug, PartialEq)]
pub enum DisassociateTagOptionFromResourceError {
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl DisassociateTagOptionFromResourceError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DisassociateTagOptionFromResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(
DisassociateTagOptionFromResourceError::ResourceNotFound(err.msg),
)
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(
DisassociateTagOptionFromResourceError::TagOptionNotMigrated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DisassociateTagOptionFromResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DisassociateTagOptionFromResourceError {
fn description(&self) -> &str {
match *self {
DisassociateTagOptionFromResourceError::ResourceNotFound(ref cause) => cause,
DisassociateTagOptionFromResourceError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum EnableAWSOrganizationsAccessError {
InvalidState(String),
OperationNotSupported(String),
ResourceNotFound(String),
}
impl EnableAWSOrganizationsAccessError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<EnableAWSOrganizationsAccessError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidStateException" => {
return RusotoError::Service(EnableAWSOrganizationsAccessError::InvalidState(
err.msg,
))
}
"OperationNotSupportedException" => {
return RusotoError::Service(
EnableAWSOrganizationsAccessError::OperationNotSupported(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
EnableAWSOrganizationsAccessError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for EnableAWSOrganizationsAccessError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for EnableAWSOrganizationsAccessError {
fn description(&self) -> &str {
match *self {
EnableAWSOrganizationsAccessError::InvalidState(ref cause) => cause,
EnableAWSOrganizationsAccessError::OperationNotSupported(ref cause) => cause,
EnableAWSOrganizationsAccessError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ExecuteProvisionedProductPlanError {
InvalidParameters(String),
InvalidState(String),
ResourceNotFound(String),
}
impl ExecuteProvisionedProductPlanError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ExecuteProvisionedProductPlanError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ExecuteProvisionedProductPlanError::InvalidParameters(err.msg),
)
}
"InvalidStateException" => {
return RusotoError::Service(ExecuteProvisionedProductPlanError::InvalidState(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(
ExecuteProvisionedProductPlanError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ExecuteProvisionedProductPlanError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ExecuteProvisionedProductPlanError {
fn description(&self) -> &str {
match *self {
ExecuteProvisionedProductPlanError::InvalidParameters(ref cause) => cause,
ExecuteProvisionedProductPlanError::InvalidState(ref cause) => cause,
ExecuteProvisionedProductPlanError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ExecuteProvisionedProductServiceActionError {
InvalidParameters(String),
InvalidState(String),
ResourceNotFound(String),
}
impl ExecuteProvisionedProductServiceActionError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ExecuteProvisionedProductServiceActionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ExecuteProvisionedProductServiceActionError::InvalidParameters(err.msg),
)
}
"InvalidStateException" => {
return RusotoError::Service(
ExecuteProvisionedProductServiceActionError::InvalidState(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
ExecuteProvisionedProductServiceActionError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ExecuteProvisionedProductServiceActionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ExecuteProvisionedProductServiceActionError {
fn description(&self) -> &str {
match *self {
ExecuteProvisionedProductServiceActionError::InvalidParameters(ref cause) => cause,
ExecuteProvisionedProductServiceActionError::InvalidState(ref cause) => cause,
ExecuteProvisionedProductServiceActionError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetAWSOrganizationsAccessStatusError {
OperationNotSupported(String),
ResourceNotFound(String),
}
impl GetAWSOrganizationsAccessStatusError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetAWSOrganizationsAccessStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"OperationNotSupportedException" => {
return RusotoError::Service(
GetAWSOrganizationsAccessStatusError::OperationNotSupported(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
GetAWSOrganizationsAccessStatusError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetAWSOrganizationsAccessStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetAWSOrganizationsAccessStatusError {
fn description(&self) -> &str {
match *self {
GetAWSOrganizationsAccessStatusError::OperationNotSupported(ref cause) => cause,
GetAWSOrganizationsAccessStatusError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListAcceptedPortfolioSharesError {
InvalidParameters(String),
OperationNotSupported(String),
}
impl ListAcceptedPortfolioSharesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListAcceptedPortfolioSharesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ListAcceptedPortfolioSharesError::InvalidParameters(err.msg),
)
}
"OperationNotSupportedException" => {
return RusotoError::Service(
ListAcceptedPortfolioSharesError::OperationNotSupported(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListAcceptedPortfolioSharesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListAcceptedPortfolioSharesError {
fn description(&self) -> &str {
match *self {
ListAcceptedPortfolioSharesError::InvalidParameters(ref cause) => cause,
ListAcceptedPortfolioSharesError::OperationNotSupported(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListBudgetsForResourceError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListBudgetsForResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListBudgetsForResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListBudgetsForResourceError::InvalidParameters(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(ListBudgetsForResourceError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListBudgetsForResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListBudgetsForResourceError {
fn description(&self) -> &str {
match *self {
ListBudgetsForResourceError::InvalidParameters(ref cause) => cause,
ListBudgetsForResourceError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListConstraintsForPortfolioError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListConstraintsForPortfolioError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListConstraintsForPortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ListConstraintsForPortfolioError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
ListConstraintsForPortfolioError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListConstraintsForPortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListConstraintsForPortfolioError {
fn description(&self) -> &str {
match *self {
ListConstraintsForPortfolioError::InvalidParameters(ref cause) => cause,
ListConstraintsForPortfolioError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListLaunchPathsError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListLaunchPathsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListLaunchPathsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListLaunchPathsError::InvalidParameters(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(ListLaunchPathsError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListLaunchPathsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListLaunchPathsError {
fn description(&self) -> &str {
match *self {
ListLaunchPathsError::InvalidParameters(ref cause) => cause,
ListLaunchPathsError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListOrganizationPortfolioAccessError {
InvalidParameters(String),
OperationNotSupported(String),
ResourceNotFound(String),
}
impl ListOrganizationPortfolioAccessError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListOrganizationPortfolioAccessError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ListOrganizationPortfolioAccessError::InvalidParameters(err.msg),
)
}
"OperationNotSupportedException" => {
return RusotoError::Service(
ListOrganizationPortfolioAccessError::OperationNotSupported(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
ListOrganizationPortfolioAccessError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListOrganizationPortfolioAccessError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListOrganizationPortfolioAccessError {
fn description(&self) -> &str {
match *self {
ListOrganizationPortfolioAccessError::InvalidParameters(ref cause) => cause,
ListOrganizationPortfolioAccessError::OperationNotSupported(ref cause) => cause,
ListOrganizationPortfolioAccessError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListPortfolioAccessError {
ResourceNotFound(String),
}
impl ListPortfolioAccessError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListPortfolioAccessError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(ListPortfolioAccessError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListPortfolioAccessError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListPortfolioAccessError {
fn description(&self) -> &str {
match *self {
ListPortfolioAccessError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListPortfoliosError {
InvalidParameters(String),
}
impl ListPortfoliosError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListPortfoliosError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListPortfoliosError::InvalidParameters(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListPortfoliosError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListPortfoliosError {
fn description(&self) -> &str {
match *self {
ListPortfoliosError::InvalidParameters(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListPortfoliosForProductError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListPortfoliosForProductError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListPortfoliosForProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListPortfoliosForProductError::InvalidParameters(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(ListPortfoliosForProductError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListPortfoliosForProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListPortfoliosForProductError {
fn description(&self) -> &str {
match *self {
ListPortfoliosForProductError::InvalidParameters(ref cause) => cause,
ListPortfoliosForProductError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListPrincipalsForPortfolioError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListPrincipalsForPortfolioError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListPrincipalsForPortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ListPrincipalsForPortfolioError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(ListPrincipalsForPortfolioError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListPrincipalsForPortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListPrincipalsForPortfolioError {
fn description(&self) -> &str {
match *self {
ListPrincipalsForPortfolioError::InvalidParameters(ref cause) => cause,
ListPrincipalsForPortfolioError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListProvisionedProductPlansError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListProvisionedProductPlansError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListProvisionedProductPlansError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ListProvisionedProductPlansError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
ListProvisionedProductPlansError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListProvisionedProductPlansError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListProvisionedProductPlansError {
fn description(&self) -> &str {
match *self {
ListProvisionedProductPlansError::InvalidParameters(ref cause) => cause,
ListProvisionedProductPlansError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListProvisioningArtifactsError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListProvisioningArtifactsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListProvisioningArtifactsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListProvisioningArtifactsError::InvalidParameters(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(ListProvisioningArtifactsError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListProvisioningArtifactsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListProvisioningArtifactsError {
fn description(&self) -> &str {
match *self {
ListProvisioningArtifactsError::InvalidParameters(ref cause) => cause,
ListProvisioningArtifactsError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListProvisioningArtifactsForServiceActionError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListProvisioningArtifactsForServiceActionError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListProvisioningArtifactsForServiceActionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ListProvisioningArtifactsForServiceActionError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
ListProvisioningArtifactsForServiceActionError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListProvisioningArtifactsForServiceActionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListProvisioningArtifactsForServiceActionError {
fn description(&self) -> &str {
match *self {
ListProvisioningArtifactsForServiceActionError::InvalidParameters(ref cause) => cause,
ListProvisioningArtifactsForServiceActionError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListRecordHistoryError {
InvalidParameters(String),
}
impl ListRecordHistoryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListRecordHistoryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListRecordHistoryError::InvalidParameters(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListRecordHistoryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListRecordHistoryError {
fn description(&self) -> &str {
match *self {
ListRecordHistoryError::InvalidParameters(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListResourcesForTagOptionError {
InvalidParameters(String),
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl ListResourcesForTagOptionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListResourcesForTagOptionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListResourcesForTagOptionError::InvalidParameters(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(ListResourcesForTagOptionError::ResourceNotFound(
err.msg,
))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(
ListResourcesForTagOptionError::TagOptionNotMigrated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListResourcesForTagOptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListResourcesForTagOptionError {
fn description(&self) -> &str {
match *self {
ListResourcesForTagOptionError::InvalidParameters(ref cause) => cause,
ListResourcesForTagOptionError::ResourceNotFound(ref cause) => cause,
ListResourcesForTagOptionError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListServiceActionsError {
InvalidParameters(String),
}
impl ListServiceActionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListServiceActionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListServiceActionsError::InvalidParameters(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListServiceActionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListServiceActionsError {
fn description(&self) -> &str {
match *self {
ListServiceActionsError::InvalidParameters(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListServiceActionsForProvisioningArtifactError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListServiceActionsForProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListServiceActionsForProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ListServiceActionsForProvisioningArtifactError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
ListServiceActionsForProvisioningArtifactError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListServiceActionsForProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListServiceActionsForProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
ListServiceActionsForProvisioningArtifactError::InvalidParameters(ref cause) => cause,
ListServiceActionsForProvisioningArtifactError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListStackInstancesForProvisionedProductError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl ListStackInstancesForProvisionedProductError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListStackInstancesForProvisionedProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
ListStackInstancesForProvisionedProductError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
ListStackInstancesForProvisionedProductError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListStackInstancesForProvisionedProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListStackInstancesForProvisionedProductError {
fn description(&self) -> &str {
match *self {
ListStackInstancesForProvisionedProductError::InvalidParameters(ref cause) => cause,
ListStackInstancesForProvisionedProductError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListTagOptionsError {
InvalidParameters(String),
TagOptionNotMigrated(String),
}
impl ListTagOptionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTagOptionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ListTagOptionsError::InvalidParameters(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(ListTagOptionsError::TagOptionNotMigrated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListTagOptionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListTagOptionsError {
fn description(&self) -> &str {
match *self {
ListTagOptionsError::InvalidParameters(ref cause) => cause,
ListTagOptionsError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ProvisionProductError {
DuplicateResource(String),
InvalidParameters(String),
ResourceNotFound(String),
}
impl ProvisionProductError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ProvisionProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateResourceException" => {
return RusotoError::Service(ProvisionProductError::DuplicateResource(err.msg))
}
"InvalidParametersException" => {
return RusotoError::Service(ProvisionProductError::InvalidParameters(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(ProvisionProductError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ProvisionProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ProvisionProductError {
fn description(&self) -> &str {
match *self {
ProvisionProductError::DuplicateResource(ref cause) => cause,
ProvisionProductError::InvalidParameters(ref cause) => cause,
ProvisionProductError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RejectPortfolioShareError {
ResourceNotFound(String),
}
impl RejectPortfolioShareError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RejectPortfolioShareError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(RejectPortfolioShareError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RejectPortfolioShareError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RejectPortfolioShareError {
fn description(&self) -> &str {
match *self {
RejectPortfolioShareError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ScanProvisionedProductsError {
InvalidParameters(String),
}
impl ScanProvisionedProductsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ScanProvisionedProductsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(ScanProvisionedProductsError::InvalidParameters(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ScanProvisionedProductsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ScanProvisionedProductsError {
fn description(&self) -> &str {
match *self {
ScanProvisionedProductsError::InvalidParameters(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum SearchProductsError {
InvalidParameters(String),
}
impl SearchProductsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<SearchProductsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(SearchProductsError::InvalidParameters(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for SearchProductsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for SearchProductsError {
fn description(&self) -> &str {
match *self {
SearchProductsError::InvalidParameters(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum SearchProductsAsAdminError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl SearchProductsAsAdminError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<SearchProductsAsAdminError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(SearchProductsAsAdminError::InvalidParameters(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(SearchProductsAsAdminError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for SearchProductsAsAdminError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for SearchProductsAsAdminError {
fn description(&self) -> &str {
match *self {
SearchProductsAsAdminError::InvalidParameters(ref cause) => cause,
SearchProductsAsAdminError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum SearchProvisionedProductsError {
InvalidParameters(String),
}
impl SearchProvisionedProductsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<SearchProvisionedProductsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(SearchProvisionedProductsError::InvalidParameters(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for SearchProvisionedProductsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for SearchProvisionedProductsError {
fn description(&self) -> &str {
match *self {
SearchProvisionedProductsError::InvalidParameters(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum TerminateProvisionedProductError {
ResourceNotFound(String),
}
impl TerminateProvisionedProductError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<TerminateProvisionedProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundException" => {
return RusotoError::Service(
TerminateProvisionedProductError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for TerminateProvisionedProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for TerminateProvisionedProductError {
fn description(&self) -> &str {
match *self {
TerminateProvisionedProductError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateConstraintError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl UpdateConstraintError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateConstraintError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(UpdateConstraintError::InvalidParameters(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(UpdateConstraintError::ResourceNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateConstraintError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateConstraintError {
fn description(&self) -> &str {
match *self {
UpdateConstraintError::InvalidParameters(ref cause) => cause,
UpdateConstraintError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdatePortfolioError {
InvalidParameters(String),
LimitExceeded(String),
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl UpdatePortfolioError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdatePortfolioError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(UpdatePortfolioError::InvalidParameters(err.msg))
}
"LimitExceededException" => {
return RusotoError::Service(UpdatePortfolioError::LimitExceeded(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(UpdatePortfolioError::ResourceNotFound(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(UpdatePortfolioError::TagOptionNotMigrated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdatePortfolioError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdatePortfolioError {
fn description(&self) -> &str {
match *self {
UpdatePortfolioError::InvalidParameters(ref cause) => cause,
UpdatePortfolioError::LimitExceeded(ref cause) => cause,
UpdatePortfolioError::ResourceNotFound(ref cause) => cause,
UpdatePortfolioError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateProductError {
InvalidParameters(String),
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl UpdateProductError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(UpdateProductError::InvalidParameters(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(UpdateProductError::ResourceNotFound(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(UpdateProductError::TagOptionNotMigrated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateProductError {
fn description(&self) -> &str {
match *self {
UpdateProductError::InvalidParameters(ref cause) => cause,
UpdateProductError::ResourceNotFound(ref cause) => cause,
UpdateProductError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateProvisionedProductError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl UpdateProvisionedProductError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateProvisionedProductError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(UpdateProvisionedProductError::InvalidParameters(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(UpdateProvisionedProductError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateProvisionedProductError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateProvisionedProductError {
fn description(&self) -> &str {
match *self {
UpdateProvisionedProductError::InvalidParameters(ref cause) => cause,
UpdateProvisionedProductError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateProvisionedProductPropertiesError {
InvalidParameters(String),
InvalidState(String),
ResourceNotFound(String),
}
impl UpdateProvisionedProductPropertiesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<UpdateProvisionedProductPropertiesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
UpdateProvisionedProductPropertiesError::InvalidParameters(err.msg),
)
}
"InvalidStateException" => {
return RusotoError::Service(
UpdateProvisionedProductPropertiesError::InvalidState(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(
UpdateProvisionedProductPropertiesError::ResourceNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateProvisionedProductPropertiesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateProvisionedProductPropertiesError {
fn description(&self) -> &str {
match *self {
UpdateProvisionedProductPropertiesError::InvalidParameters(ref cause) => cause,
UpdateProvisionedProductPropertiesError::InvalidState(ref cause) => cause,
UpdateProvisionedProductPropertiesError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateProvisioningArtifactError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl UpdateProvisioningArtifactError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<UpdateProvisioningArtifactError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(
UpdateProvisioningArtifactError::InvalidParameters(err.msg),
)
}
"ResourceNotFoundException" => {
return RusotoError::Service(UpdateProvisioningArtifactError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateProvisioningArtifactError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateProvisioningArtifactError {
fn description(&self) -> &str {
match *self {
UpdateProvisioningArtifactError::InvalidParameters(ref cause) => cause,
UpdateProvisioningArtifactError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateServiceActionError {
InvalidParameters(String),
ResourceNotFound(String),
}
impl UpdateServiceActionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateServiceActionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidParametersException" => {
return RusotoError::Service(UpdateServiceActionError::InvalidParameters(
err.msg,
))
}
"ResourceNotFoundException" => {
return RusotoError::Service(UpdateServiceActionError::ResourceNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateServiceActionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateServiceActionError {
fn description(&self) -> &str {
match *self {
UpdateServiceActionError::InvalidParameters(ref cause) => cause,
UpdateServiceActionError::ResourceNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateTagOptionError {
DuplicateResource(String),
InvalidParameters(String),
ResourceNotFound(String),
TagOptionNotMigrated(String),
}
impl UpdateTagOptionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateTagOptionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateResourceException" => {
return RusotoError::Service(UpdateTagOptionError::DuplicateResource(err.msg))
}
"InvalidParametersException" => {
return RusotoError::Service(UpdateTagOptionError::InvalidParameters(err.msg))
}
"ResourceNotFoundException" => {
return RusotoError::Service(UpdateTagOptionError::ResourceNotFound(err.msg))
}
"TagOptionNotMigratedException" => {
return RusotoError::Service(UpdateTagOptionError::TagOptionNotMigrated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateTagOptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateTagOptionError {
fn description(&self) -> &str {
match *self {
UpdateTagOptionError::DuplicateResource(ref cause) => cause,
UpdateTagOptionError::InvalidParameters(ref cause) => cause,
UpdateTagOptionError::ResourceNotFound(ref cause) => cause,
UpdateTagOptionError::TagOptionNotMigrated(ref cause) => cause,
}
}
}
pub trait ServiceCatalog {
fn accept_portfolio_share(
&self,
input: AcceptPortfolioShareInput,
) -> RusotoFuture<AcceptPortfolioShareOutput, AcceptPortfolioShareError>;
fn associate_budget_with_resource(
&self,
input: AssociateBudgetWithResourceInput,
) -> RusotoFuture<AssociateBudgetWithResourceOutput, AssociateBudgetWithResourceError>;
fn associate_principal_with_portfolio(
&self,
input: AssociatePrincipalWithPortfolioInput,
) -> RusotoFuture<AssociatePrincipalWithPortfolioOutput, AssociatePrincipalWithPortfolioError>;
fn associate_product_with_portfolio(
&self,
input: AssociateProductWithPortfolioInput,
) -> RusotoFuture<AssociateProductWithPortfolioOutput, AssociateProductWithPortfolioError>;
fn associate_service_action_with_provisioning_artifact(
&self,
input: AssociateServiceActionWithProvisioningArtifactInput,
) -> RusotoFuture<
AssociateServiceActionWithProvisioningArtifactOutput,
AssociateServiceActionWithProvisioningArtifactError,
>;
fn associate_tag_option_with_resource(
&self,
input: AssociateTagOptionWithResourceInput,
) -> RusotoFuture<AssociateTagOptionWithResourceOutput, AssociateTagOptionWithResourceError>;
fn batch_associate_service_action_with_provisioning_artifact(
&self,
input: BatchAssociateServiceActionWithProvisioningArtifactInput,
) -> RusotoFuture<
BatchAssociateServiceActionWithProvisioningArtifactOutput,
BatchAssociateServiceActionWithProvisioningArtifactError,
>;
fn batch_disassociate_service_action_from_provisioning_artifact(
&self,
input: BatchDisassociateServiceActionFromProvisioningArtifactInput,
) -> RusotoFuture<
BatchDisassociateServiceActionFromProvisioningArtifactOutput,
BatchDisassociateServiceActionFromProvisioningArtifactError,
>;
fn copy_product(
&self,
input: CopyProductInput,
) -> RusotoFuture<CopyProductOutput, CopyProductError>;
fn create_constraint(
&self,
input: CreateConstraintInput,
) -> RusotoFuture<CreateConstraintOutput, CreateConstraintError>;
fn create_portfolio(
&self,
input: CreatePortfolioInput,
) -> RusotoFuture<CreatePortfolioOutput, CreatePortfolioError>;
fn create_portfolio_share(
&self,
input: CreatePortfolioShareInput,
) -> RusotoFuture<CreatePortfolioShareOutput, CreatePortfolioShareError>;
fn create_product(
&self,
input: CreateProductInput,
) -> RusotoFuture<CreateProductOutput, CreateProductError>;
fn create_provisioned_product_plan(
&self,
input: CreateProvisionedProductPlanInput,
) -> RusotoFuture<CreateProvisionedProductPlanOutput, CreateProvisionedProductPlanError>;
fn create_provisioning_artifact(
&self,
input: CreateProvisioningArtifactInput,
) -> RusotoFuture<CreateProvisioningArtifactOutput, CreateProvisioningArtifactError>;
fn create_service_action(
&self,
input: CreateServiceActionInput,
) -> RusotoFuture<CreateServiceActionOutput, CreateServiceActionError>;
fn create_tag_option(
&self,
input: CreateTagOptionInput,
) -> RusotoFuture<CreateTagOptionOutput, CreateTagOptionError>;
fn delete_constraint(
&self,
input: DeleteConstraintInput,
) -> RusotoFuture<DeleteConstraintOutput, DeleteConstraintError>;
fn delete_portfolio(
&self,
input: DeletePortfolioInput,
) -> RusotoFuture<DeletePortfolioOutput, DeletePortfolioError>;
fn delete_portfolio_share(
&self,
input: DeletePortfolioShareInput,
) -> RusotoFuture<DeletePortfolioShareOutput, DeletePortfolioShareError>;
fn delete_product(
&self,
input: DeleteProductInput,
) -> RusotoFuture<DeleteProductOutput, DeleteProductError>;
fn delete_provisioned_product_plan(
&self,
input: DeleteProvisionedProductPlanInput,
) -> RusotoFuture<DeleteProvisionedProductPlanOutput, DeleteProvisionedProductPlanError>;
fn delete_provisioning_artifact(
&self,
input: DeleteProvisioningArtifactInput,
) -> RusotoFuture<DeleteProvisioningArtifactOutput, DeleteProvisioningArtifactError>;
fn delete_service_action(
&self,
input: DeleteServiceActionInput,
) -> RusotoFuture<DeleteServiceActionOutput, DeleteServiceActionError>;
fn delete_tag_option(
&self,
input: DeleteTagOptionInput,
) -> RusotoFuture<DeleteTagOptionOutput, DeleteTagOptionError>;
fn describe_constraint(
&self,
input: DescribeConstraintInput,
) -> RusotoFuture<DescribeConstraintOutput, DescribeConstraintError>;
fn describe_copy_product_status(
&self,
input: DescribeCopyProductStatusInput,
) -> RusotoFuture<DescribeCopyProductStatusOutput, DescribeCopyProductStatusError>;
fn describe_portfolio(
&self,
input: DescribePortfolioInput,
) -> RusotoFuture<DescribePortfolioOutput, DescribePortfolioError>;
fn describe_portfolio_share_status(
&self,
input: DescribePortfolioShareStatusInput,
) -> RusotoFuture<DescribePortfolioShareStatusOutput, DescribePortfolioShareStatusError>;
fn describe_product(
&self,
input: DescribeProductInput,
) -> RusotoFuture<DescribeProductOutput, DescribeProductError>;
fn describe_product_as_admin(
&self,
input: DescribeProductAsAdminInput,
) -> RusotoFuture<DescribeProductAsAdminOutput, DescribeProductAsAdminError>;
fn describe_product_view(
&self,
input: DescribeProductViewInput,
) -> RusotoFuture<DescribeProductViewOutput, DescribeProductViewError>;
fn describe_provisioned_product(
&self,
input: DescribeProvisionedProductInput,
) -> RusotoFuture<DescribeProvisionedProductOutput, DescribeProvisionedProductError>;
fn describe_provisioned_product_plan(
&self,
input: DescribeProvisionedProductPlanInput,
) -> RusotoFuture<DescribeProvisionedProductPlanOutput, DescribeProvisionedProductPlanError>;
fn describe_provisioning_artifact(
&self,
input: DescribeProvisioningArtifactInput,
) -> RusotoFuture<DescribeProvisioningArtifactOutput, DescribeProvisioningArtifactError>;
fn describe_provisioning_parameters(
&self,
input: DescribeProvisioningParametersInput,
) -> RusotoFuture<DescribeProvisioningParametersOutput, DescribeProvisioningParametersError>;
fn describe_record(
&self,
input: DescribeRecordInput,
) -> RusotoFuture<DescribeRecordOutput, DescribeRecordError>;
fn describe_service_action(
&self,
input: DescribeServiceActionInput,
) -> RusotoFuture<DescribeServiceActionOutput, DescribeServiceActionError>;
fn describe_tag_option(
&self,
input: DescribeTagOptionInput,
) -> RusotoFuture<DescribeTagOptionOutput, DescribeTagOptionError>;
fn disable_aws_organizations_access(
&self,
) -> RusotoFuture<DisableAWSOrganizationsAccessOutput, DisableAWSOrganizationsAccessError>;
fn disassociate_budget_from_resource(
&self,
input: DisassociateBudgetFromResourceInput,
) -> RusotoFuture<DisassociateBudgetFromResourceOutput, DisassociateBudgetFromResourceError>;
fn disassociate_principal_from_portfolio(
&self,
input: DisassociatePrincipalFromPortfolioInput,
) -> RusotoFuture<
DisassociatePrincipalFromPortfolioOutput,
DisassociatePrincipalFromPortfolioError,
>;
fn disassociate_product_from_portfolio(
&self,
input: DisassociateProductFromPortfolioInput,
) -> RusotoFuture<DisassociateProductFromPortfolioOutput, DisassociateProductFromPortfolioError>;
fn disassociate_service_action_from_provisioning_artifact(
&self,
input: DisassociateServiceActionFromProvisioningArtifactInput,
) -> RusotoFuture<
DisassociateServiceActionFromProvisioningArtifactOutput,
DisassociateServiceActionFromProvisioningArtifactError,
>;
fn disassociate_tag_option_from_resource(
&self,
input: DisassociateTagOptionFromResourceInput,
) -> RusotoFuture<DisassociateTagOptionFromResourceOutput, DisassociateTagOptionFromResourceError>;
fn enable_aws_organizations_access(
&self,
) -> RusotoFuture<EnableAWSOrganizationsAccessOutput, EnableAWSOrganizationsAccessError>;
fn execute_provisioned_product_plan(
&self,
input: ExecuteProvisionedProductPlanInput,
) -> RusotoFuture<ExecuteProvisionedProductPlanOutput, ExecuteProvisionedProductPlanError>;
fn execute_provisioned_product_service_action(
&self,
input: ExecuteProvisionedProductServiceActionInput,
) -> RusotoFuture<
ExecuteProvisionedProductServiceActionOutput,
ExecuteProvisionedProductServiceActionError,
>;
fn get_aws_organizations_access_status(
&self,
) -> RusotoFuture<GetAWSOrganizationsAccessStatusOutput, GetAWSOrganizationsAccessStatusError>;
fn list_accepted_portfolio_shares(
&self,
input: ListAcceptedPortfolioSharesInput,
) -> RusotoFuture<ListAcceptedPortfolioSharesOutput, ListAcceptedPortfolioSharesError>;
fn list_budgets_for_resource(
&self,
input: ListBudgetsForResourceInput,
) -> RusotoFuture<ListBudgetsForResourceOutput, ListBudgetsForResourceError>;
fn list_constraints_for_portfolio(
&self,
input: ListConstraintsForPortfolioInput,
) -> RusotoFuture<ListConstraintsForPortfolioOutput, ListConstraintsForPortfolioError>;
fn list_launch_paths(
&self,
input: ListLaunchPathsInput,
) -> RusotoFuture<ListLaunchPathsOutput, ListLaunchPathsError>;
fn list_organization_portfolio_access(
&self,
input: ListOrganizationPortfolioAccessInput,
) -> RusotoFuture<ListOrganizationPortfolioAccessOutput, ListOrganizationPortfolioAccessError>;
fn list_portfolio_access(
&self,
input: ListPortfolioAccessInput,
) -> RusotoFuture<ListPortfolioAccessOutput, ListPortfolioAccessError>;
fn list_portfolios(
&self,
input: ListPortfoliosInput,
) -> RusotoFuture<ListPortfoliosOutput, ListPortfoliosError>;
fn list_portfolios_for_product(
&self,
input: ListPortfoliosForProductInput,
) -> RusotoFuture<ListPortfoliosForProductOutput, ListPortfoliosForProductError>;
fn list_principals_for_portfolio(
&self,
input: ListPrincipalsForPortfolioInput,
) -> RusotoFuture<ListPrincipalsForPortfolioOutput, ListPrincipalsForPortfolioError>;
fn list_provisioned_product_plans(
&self,
input: ListProvisionedProductPlansInput,
) -> RusotoFuture<ListProvisionedProductPlansOutput, ListProvisionedProductPlansError>;
fn list_provisioning_artifacts(
&self,
input: ListProvisioningArtifactsInput,
) -> RusotoFuture<ListProvisioningArtifactsOutput, ListProvisioningArtifactsError>;
fn list_provisioning_artifacts_for_service_action(
&self,
input: ListProvisioningArtifactsForServiceActionInput,
) -> RusotoFuture<
ListProvisioningArtifactsForServiceActionOutput,
ListProvisioningArtifactsForServiceActionError,
>;
fn list_record_history(
&self,
input: ListRecordHistoryInput,
) -> RusotoFuture<ListRecordHistoryOutput, ListRecordHistoryError>;
fn list_resources_for_tag_option(
&self,
input: ListResourcesForTagOptionInput,
) -> RusotoFuture<ListResourcesForTagOptionOutput, ListResourcesForTagOptionError>;
fn list_service_actions(
&self,
input: ListServiceActionsInput,
) -> RusotoFuture<ListServiceActionsOutput, ListServiceActionsError>;
fn list_service_actions_for_provisioning_artifact(
&self,
input: ListServiceActionsForProvisioningArtifactInput,
) -> RusotoFuture<
ListServiceActionsForProvisioningArtifactOutput,
ListServiceActionsForProvisioningArtifactError,
>;
fn list_stack_instances_for_provisioned_product(
&self,
input: ListStackInstancesForProvisionedProductInput,
) -> RusotoFuture<
ListStackInstancesForProvisionedProductOutput,
ListStackInstancesForProvisionedProductError,
>;
fn list_tag_options(
&self,
input: ListTagOptionsInput,
) -> RusotoFuture<ListTagOptionsOutput, ListTagOptionsError>;
fn provision_product(
&self,
input: ProvisionProductInput,
) -> RusotoFuture<ProvisionProductOutput, ProvisionProductError>;
fn reject_portfolio_share(
&self,
input: RejectPortfolioShareInput,
) -> RusotoFuture<RejectPortfolioShareOutput, RejectPortfolioShareError>;
fn scan_provisioned_products(
&self,
input: ScanProvisionedProductsInput,
) -> RusotoFuture<ScanProvisionedProductsOutput, ScanProvisionedProductsError>;
fn search_products(
&self,
input: SearchProductsInput,
) -> RusotoFuture<SearchProductsOutput, SearchProductsError>;
fn search_products_as_admin(
&self,
input: SearchProductsAsAdminInput,
) -> RusotoFuture<SearchProductsAsAdminOutput, SearchProductsAsAdminError>;
fn search_provisioned_products(
&self,
input: SearchProvisionedProductsInput,
) -> RusotoFuture<SearchProvisionedProductsOutput, SearchProvisionedProductsError>;
fn terminate_provisioned_product(
&self,
input: TerminateProvisionedProductInput,
) -> RusotoFuture<TerminateProvisionedProductOutput, TerminateProvisionedProductError>;
fn update_constraint(
&self,
input: UpdateConstraintInput,
) -> RusotoFuture<UpdateConstraintOutput, UpdateConstraintError>;
fn update_portfolio(
&self,
input: UpdatePortfolioInput,
) -> RusotoFuture<UpdatePortfolioOutput, UpdatePortfolioError>;
fn update_product(
&self,
input: UpdateProductInput,
) -> RusotoFuture<UpdateProductOutput, UpdateProductError>;
fn update_provisioned_product(
&self,
input: UpdateProvisionedProductInput,
) -> RusotoFuture<UpdateProvisionedProductOutput, UpdateProvisionedProductError>;
fn update_provisioned_product_properties(
&self,
input: UpdateProvisionedProductPropertiesInput,
) -> RusotoFuture<
UpdateProvisionedProductPropertiesOutput,
UpdateProvisionedProductPropertiesError,
>;
fn update_provisioning_artifact(
&self,
input: UpdateProvisioningArtifactInput,
) -> RusotoFuture<UpdateProvisioningArtifactOutput, UpdateProvisioningArtifactError>;
fn update_service_action(
&self,
input: UpdateServiceActionInput,
) -> RusotoFuture<UpdateServiceActionOutput, UpdateServiceActionError>;
fn update_tag_option(
&self,
input: UpdateTagOptionInput,
) -> RusotoFuture<UpdateTagOptionOutput, UpdateTagOptionError>;
}
#[derive(Clone)]
pub struct ServiceCatalogClient {
client: Client,
region: region::Region,
}
impl ServiceCatalogClient {
pub fn new(region: region::Region) -> ServiceCatalogClient {
ServiceCatalogClient {
client: Client::shared(),
region,
}
}
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: region::Region,
) -> ServiceCatalogClient
where
P: ProvideAwsCredentials + Send + Sync + 'static,
P::Future: Send,
D: DispatchSignedRequest + Send + Sync + 'static,
D::Future: Send,
{
ServiceCatalogClient {
client: Client::new_with(credentials_provider, request_dispatcher),
region,
}
}
}
impl ServiceCatalog for ServiceCatalogClient {
fn accept_portfolio_share(
&self,
input: AcceptPortfolioShareInput,
) -> RusotoFuture<AcceptPortfolioShareOutput, AcceptPortfolioShareError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.AcceptPortfolioShare",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<AcceptPortfolioShareOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(AcceptPortfolioShareError::from_response(response))
}),
)
}
})
}
fn associate_budget_with_resource(
&self,
input: AssociateBudgetWithResourceInput,
) -> RusotoFuture<AssociateBudgetWithResourceOutput, AssociateBudgetWithResourceError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.AssociateBudgetWithResource",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<AssociateBudgetWithResourceOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(AssociateBudgetWithResourceError::from_response(response))
}))
}
})
}
fn associate_principal_with_portfolio(
&self,
input: AssociatePrincipalWithPortfolioInput,
) -> RusotoFuture<AssociatePrincipalWithPortfolioOutput, AssociatePrincipalWithPortfolioError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.AssociatePrincipalWithPortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<AssociatePrincipalWithPortfolioOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(AssociatePrincipalWithPortfolioError::from_response(
response,
))
}))
}
})
}
fn associate_product_with_portfolio(
&self,
input: AssociateProductWithPortfolioInput,
) -> RusotoFuture<AssociateProductWithPortfolioOutput, AssociateProductWithPortfolioError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.AssociateProductWithPortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<AssociateProductWithPortfolioOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(AssociateProductWithPortfolioError::from_response(response))
}))
}
})
}
fn associate_service_action_with_provisioning_artifact(
&self,
input: AssociateServiceActionWithProvisioningArtifactInput,
) -> RusotoFuture<
AssociateServiceActionWithProvisioningArtifactOutput,
AssociateServiceActionWithProvisioningArtifactError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.AssociateServiceActionWithProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<AssociateServiceActionWithProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(AssociateServiceActionWithProvisioningArtifactError::from_response(response))
}))
}
})
}
fn associate_tag_option_with_resource(
&self,
input: AssociateTagOptionWithResourceInput,
) -> RusotoFuture<AssociateTagOptionWithResourceOutput, AssociateTagOptionWithResourceError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.AssociateTagOptionWithResource",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<AssociateTagOptionWithResourceOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(AssociateTagOptionWithResourceError::from_response(response))
}))
}
})
}
fn batch_associate_service_action_with_provisioning_artifact(
&self,
input: BatchAssociateServiceActionWithProvisioningArtifactInput,
) -> RusotoFuture<
BatchAssociateServiceActionWithProvisioningArtifactOutput,
BatchAssociateServiceActionWithProvisioningArtifactError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.BatchAssociateServiceActionWithProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<BatchAssociateServiceActionWithProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(BatchAssociateServiceActionWithProvisioningArtifactError::from_response(response))
}))
}
})
}
fn batch_disassociate_service_action_from_provisioning_artifact(
&self,
input: BatchDisassociateServiceActionFromProvisioningArtifactInput,
) -> RusotoFuture<
BatchDisassociateServiceActionFromProvisioningArtifactOutput,
BatchDisassociateServiceActionFromProvisioningArtifactError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.BatchDisassociateServiceActionFromProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<BatchDisassociateServiceActionFromProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(BatchDisassociateServiceActionFromProvisioningArtifactError::from_response(response))
}))
}
})
}
fn copy_product(
&self,
input: CopyProductInput,
) -> RusotoFuture<CopyProductOutput, CopyProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWS242ServiceCatalogService.CopyProduct");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CopyProductOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CopyProductError::from_response(response))),
)
}
})
}
fn create_constraint(
&self,
input: CreateConstraintInput,
) -> RusotoFuture<CreateConstraintOutput, CreateConstraintError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.CreateConstraint",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateConstraintOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateConstraintError::from_response(response))),
)
}
})
}
fn create_portfolio(
&self,
input: CreatePortfolioInput,
) -> RusotoFuture<CreatePortfolioOutput, CreatePortfolioError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.CreatePortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreatePortfolioOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreatePortfolioError::from_response(response))),
)
}
})
}
fn create_portfolio_share(
&self,
input: CreatePortfolioShareInput,
) -> RusotoFuture<CreatePortfolioShareOutput, CreatePortfolioShareError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.CreatePortfolioShare",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreatePortfolioShareOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreatePortfolioShareError::from_response(response))
}),
)
}
})
}
fn create_product(
&self,
input: CreateProductInput,
) -> RusotoFuture<CreateProductOutput, CreateProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWS242ServiceCatalogService.CreateProduct");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateProductOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateProductError::from_response(response))),
)
}
})
}
fn create_provisioned_product_plan(
&self,
input: CreateProvisionedProductPlanInput,
) -> RusotoFuture<CreateProvisionedProductPlanOutput, CreateProvisionedProductPlanError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.CreateProvisionedProductPlan",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateProvisionedProductPlanOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateProvisionedProductPlanError::from_response(response))
}))
}
})
}
fn create_provisioning_artifact(
&self,
input: CreateProvisioningArtifactInput,
) -> RusotoFuture<CreateProvisioningArtifactOutput, CreateProvisioningArtifactError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.CreateProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateProvisioningArtifactError::from_response(response))
}))
}
})
}
fn create_service_action(
&self,
input: CreateServiceActionInput,
) -> RusotoFuture<CreateServiceActionOutput, CreateServiceActionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.CreateServiceAction",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateServiceActionOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreateServiceActionError::from_response(response))
}),
)
}
})
}
fn create_tag_option(
&self,
input: CreateTagOptionInput,
) -> RusotoFuture<CreateTagOptionOutput, CreateTagOptionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.CreateTagOption",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateTagOptionOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateTagOptionError::from_response(response))),
)
}
})
}
fn delete_constraint(
&self,
input: DeleteConstraintInput,
) -> RusotoFuture<DeleteConstraintOutput, DeleteConstraintError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DeleteConstraint",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteConstraintOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteConstraintError::from_response(response))),
)
}
})
}
fn delete_portfolio(
&self,
input: DeletePortfolioInput,
) -> RusotoFuture<DeletePortfolioOutput, DeletePortfolioError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DeletePortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeletePortfolioOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeletePortfolioError::from_response(response))),
)
}
})
}
fn delete_portfolio_share(
&self,
input: DeletePortfolioShareInput,
) -> RusotoFuture<DeletePortfolioShareOutput, DeletePortfolioShareError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DeletePortfolioShare",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeletePortfolioShareOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeletePortfolioShareError::from_response(response))
}),
)
}
})
}
fn delete_product(
&self,
input: DeleteProductInput,
) -> RusotoFuture<DeleteProductOutput, DeleteProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWS242ServiceCatalogService.DeleteProduct");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteProductOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteProductError::from_response(response))),
)
}
})
}
fn delete_provisioned_product_plan(
&self,
input: DeleteProvisionedProductPlanInput,
) -> RusotoFuture<DeleteProvisionedProductPlanOutput, DeleteProvisionedProductPlanError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DeleteProvisionedProductPlan",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteProvisionedProductPlanOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteProvisionedProductPlanError::from_response(response))
}))
}
})
}
fn delete_provisioning_artifact(
&self,
input: DeleteProvisioningArtifactInput,
) -> RusotoFuture<DeleteProvisioningArtifactOutput, DeleteProvisioningArtifactError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DeleteProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteProvisioningArtifactError::from_response(response))
}))
}
})
}
fn delete_service_action(
&self,
input: DeleteServiceActionInput,
) -> RusotoFuture<DeleteServiceActionOutput, DeleteServiceActionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DeleteServiceAction",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteServiceActionOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeleteServiceActionError::from_response(response))
}),
)
}
})
}
fn delete_tag_option(
&self,
input: DeleteTagOptionInput,
) -> RusotoFuture<DeleteTagOptionOutput, DeleteTagOptionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DeleteTagOption",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteTagOptionOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteTagOptionError::from_response(response))),
)
}
})
}
fn describe_constraint(
&self,
input: DescribeConstraintInput,
) -> RusotoFuture<DescribeConstraintOutput, DescribeConstraintError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeConstraint",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeConstraintOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeConstraintError::from_response(response))),
)
}
})
}
fn describe_copy_product_status(
&self,
input: DescribeCopyProductStatusInput,
) -> RusotoFuture<DescribeCopyProductStatusOutput, DescribeCopyProductStatusError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeCopyProductStatus",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeCopyProductStatusOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeCopyProductStatusError::from_response(response))
}))
}
})
}
fn describe_portfolio(
&self,
input: DescribePortfolioInput,
) -> RusotoFuture<DescribePortfolioOutput, DescribePortfolioError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribePortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribePortfolioOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribePortfolioError::from_response(response))),
)
}
})
}
fn describe_portfolio_share_status(
&self,
input: DescribePortfolioShareStatusInput,
) -> RusotoFuture<DescribePortfolioShareStatusOutput, DescribePortfolioShareStatusError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribePortfolioShareStatus",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribePortfolioShareStatusOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribePortfolioShareStatusError::from_response(response))
}))
}
})
}
fn describe_product(
&self,
input: DescribeProductInput,
) -> RusotoFuture<DescribeProductOutput, DescribeProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeProduct",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeProductOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeProductError::from_response(response))),
)
}
})
}
fn describe_product_as_admin(
&self,
input: DescribeProductAsAdminInput,
) -> RusotoFuture<DescribeProductAsAdminOutput, DescribeProductAsAdminError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeProductAsAdmin",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeProductAsAdminOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribeProductAsAdminError::from_response(response))
}),
)
}
})
}
fn describe_product_view(
&self,
input: DescribeProductViewInput,
) -> RusotoFuture<DescribeProductViewOutput, DescribeProductViewError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeProductView",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeProductViewOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribeProductViewError::from_response(response))
}),
)
}
})
}
fn describe_provisioned_product(
&self,
input: DescribeProvisionedProductInput,
) -> RusotoFuture<DescribeProvisionedProductOutput, DescribeProvisionedProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeProvisionedProduct",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeProvisionedProductOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeProvisionedProductError::from_response(response))
}))
}
})
}
fn describe_provisioned_product_plan(
&self,
input: DescribeProvisionedProductPlanInput,
) -> RusotoFuture<DescribeProvisionedProductPlanOutput, DescribeProvisionedProductPlanError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeProvisionedProductPlan",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeProvisionedProductPlanOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeProvisionedProductPlanError::from_response(response))
}))
}
})
}
fn describe_provisioning_artifact(
&self,
input: DescribeProvisioningArtifactInput,
) -> RusotoFuture<DescribeProvisioningArtifactOutput, DescribeProvisioningArtifactError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeProvisioningArtifactError::from_response(response))
}))
}
})
}
fn describe_provisioning_parameters(
&self,
input: DescribeProvisioningParametersInput,
) -> RusotoFuture<DescribeProvisioningParametersOutput, DescribeProvisioningParametersError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeProvisioningParameters",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeProvisioningParametersOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeProvisioningParametersError::from_response(response))
}))
}
})
}
fn describe_record(
&self,
input: DescribeRecordInput,
) -> RusotoFuture<DescribeRecordOutput, DescribeRecordError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWS242ServiceCatalogService.DescribeRecord");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeRecordOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeRecordError::from_response(response))),
)
}
})
}
fn describe_service_action(
&self,
input: DescribeServiceActionInput,
) -> RusotoFuture<DescribeServiceActionOutput, DescribeServiceActionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeServiceAction",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeServiceActionOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribeServiceActionError::from_response(response))
}),
)
}
})
}
fn describe_tag_option(
&self,
input: DescribeTagOptionInput,
) -> RusotoFuture<DescribeTagOptionOutput, DescribeTagOptionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DescribeTagOption",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DescribeTagOptionOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeTagOptionError::from_response(response))),
)
}
})
}
fn disable_aws_organizations_access(
&self,
) -> RusotoFuture<DisableAWSOrganizationsAccessOutput, DisableAWSOrganizationsAccessError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DisableAWSOrganizationsAccess",
);
request.set_payload(Some(bytes::Bytes::from_static(b"{}")));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DisableAWSOrganizationsAccessOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DisableAWSOrganizationsAccessError::from_response(response))
}))
}
})
}
fn disassociate_budget_from_resource(
&self,
input: DisassociateBudgetFromResourceInput,
) -> RusotoFuture<DisassociateBudgetFromResourceOutput, DisassociateBudgetFromResourceError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DisassociateBudgetFromResource",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DisassociateBudgetFromResourceOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DisassociateBudgetFromResourceError::from_response(response))
}))
}
})
}
fn disassociate_principal_from_portfolio(
&self,
input: DisassociatePrincipalFromPortfolioInput,
) -> RusotoFuture<
DisassociatePrincipalFromPortfolioOutput,
DisassociatePrincipalFromPortfolioError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DisassociatePrincipalFromPortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DisassociatePrincipalFromPortfolioOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DisassociatePrincipalFromPortfolioError::from_response(
response,
))
}))
}
})
}
fn disassociate_product_from_portfolio(
&self,
input: DisassociateProductFromPortfolioInput,
) -> RusotoFuture<DisassociateProductFromPortfolioOutput, DisassociateProductFromPortfolioError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DisassociateProductFromPortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DisassociateProductFromPortfolioOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DisassociateProductFromPortfolioError::from_response(
response,
))
}))
}
})
}
fn disassociate_service_action_from_provisioning_artifact(
&self,
input: DisassociateServiceActionFromProvisioningArtifactInput,
) -> RusotoFuture<
DisassociateServiceActionFromProvisioningArtifactOutput,
DisassociateServiceActionFromProvisioningArtifactError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DisassociateServiceActionFromProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<DisassociateServiceActionFromProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DisassociateServiceActionFromProvisioningArtifactError::from_response(response))
}))
}
})
}
fn disassociate_tag_option_from_resource(
&self,
input: DisassociateTagOptionFromResourceInput,
) -> RusotoFuture<DisassociateTagOptionFromResourceOutput, DisassociateTagOptionFromResourceError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.DisassociateTagOptionFromResource",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DisassociateTagOptionFromResourceOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DisassociateTagOptionFromResourceError::from_response(
response,
))
}))
}
})
}
fn enable_aws_organizations_access(
&self,
) -> RusotoFuture<EnableAWSOrganizationsAccessOutput, EnableAWSOrganizationsAccessError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.EnableAWSOrganizationsAccess",
);
request.set_payload(Some(bytes::Bytes::from_static(b"{}")));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<EnableAWSOrganizationsAccessOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(EnableAWSOrganizationsAccessError::from_response(response))
}))
}
})
}
fn execute_provisioned_product_plan(
&self,
input: ExecuteProvisionedProductPlanInput,
) -> RusotoFuture<ExecuteProvisionedProductPlanOutput, ExecuteProvisionedProductPlanError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ExecuteProvisionedProductPlan",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ExecuteProvisionedProductPlanOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ExecuteProvisionedProductPlanError::from_response(response))
}))
}
})
}
fn execute_provisioned_product_service_action(
&self,
input: ExecuteProvisionedProductServiceActionInput,
) -> RusotoFuture<
ExecuteProvisionedProductServiceActionOutput,
ExecuteProvisionedProductServiceActionError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ExecuteProvisionedProductServiceAction",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ExecuteProvisionedProductServiceActionOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ExecuteProvisionedProductServiceActionError::from_response(
response,
))
}))
}
})
}
fn get_aws_organizations_access_status(
&self,
) -> RusotoFuture<GetAWSOrganizationsAccessStatusOutput, GetAWSOrganizationsAccessStatusError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.GetAWSOrganizationsAccessStatus",
);
request.set_payload(Some(bytes::Bytes::from_static(b"{}")));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetAWSOrganizationsAccessStatusOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetAWSOrganizationsAccessStatusError::from_response(
response,
))
}))
}
})
}
fn list_accepted_portfolio_shares(
&self,
input: ListAcceptedPortfolioSharesInput,
) -> RusotoFuture<ListAcceptedPortfolioSharesOutput, ListAcceptedPortfolioSharesError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListAcceptedPortfolioShares",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListAcceptedPortfolioSharesOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListAcceptedPortfolioSharesError::from_response(response))
}))
}
})
}
fn list_budgets_for_resource(
&self,
input: ListBudgetsForResourceInput,
) -> RusotoFuture<ListBudgetsForResourceOutput, ListBudgetsForResourceError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListBudgetsForResource",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListBudgetsForResourceOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListBudgetsForResourceError::from_response(response))
}),
)
}
})
}
fn list_constraints_for_portfolio(
&self,
input: ListConstraintsForPortfolioInput,
) -> RusotoFuture<ListConstraintsForPortfolioOutput, ListConstraintsForPortfolioError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListConstraintsForPortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListConstraintsForPortfolioOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListConstraintsForPortfolioError::from_response(response))
}))
}
})
}
fn list_launch_paths(
&self,
input: ListLaunchPathsInput,
) -> RusotoFuture<ListLaunchPathsOutput, ListLaunchPathsError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListLaunchPaths",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListLaunchPathsOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListLaunchPathsError::from_response(response))),
)
}
})
}
fn list_organization_portfolio_access(
&self,
input: ListOrganizationPortfolioAccessInput,
) -> RusotoFuture<ListOrganizationPortfolioAccessOutput, ListOrganizationPortfolioAccessError>
{
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListOrganizationPortfolioAccess",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListOrganizationPortfolioAccessOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListOrganizationPortfolioAccessError::from_response(
response,
))
}))
}
})
}
fn list_portfolio_access(
&self,
input: ListPortfolioAccessInput,
) -> RusotoFuture<ListPortfolioAccessOutput, ListPortfolioAccessError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListPortfolioAccess",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListPortfolioAccessOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListPortfolioAccessError::from_response(response))
}),
)
}
})
}
fn list_portfolios(
&self,
input: ListPortfoliosInput,
) -> RusotoFuture<ListPortfoliosOutput, ListPortfoliosError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWS242ServiceCatalogService.ListPortfolios");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListPortfoliosOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListPortfoliosError::from_response(response))),
)
}
})
}
fn list_portfolios_for_product(
&self,
input: ListPortfoliosForProductInput,
) -> RusotoFuture<ListPortfoliosForProductOutput, ListPortfoliosForProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListPortfoliosForProduct",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListPortfoliosForProductOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListPortfoliosForProductError::from_response(response))
}))
}
})
}
fn list_principals_for_portfolio(
&self,
input: ListPrincipalsForPortfolioInput,
) -> RusotoFuture<ListPrincipalsForPortfolioOutput, ListPrincipalsForPortfolioError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListPrincipalsForPortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListPrincipalsForPortfolioOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListPrincipalsForPortfolioError::from_response(response))
}))
}
})
}
fn list_provisioned_product_plans(
&self,
input: ListProvisionedProductPlansInput,
) -> RusotoFuture<ListProvisionedProductPlansOutput, ListProvisionedProductPlansError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListProvisionedProductPlans",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListProvisionedProductPlansOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListProvisionedProductPlansError::from_response(response))
}))
}
})
}
fn list_provisioning_artifacts(
&self,
input: ListProvisioningArtifactsInput,
) -> RusotoFuture<ListProvisioningArtifactsOutput, ListProvisioningArtifactsError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListProvisioningArtifacts",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListProvisioningArtifactsOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListProvisioningArtifactsError::from_response(response))
}))
}
})
}
fn list_provisioning_artifacts_for_service_action(
&self,
input: ListProvisioningArtifactsForServiceActionInput,
) -> RusotoFuture<
ListProvisioningArtifactsForServiceActionOutput,
ListProvisioningArtifactsForServiceActionError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListProvisioningArtifactsForServiceAction",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListProvisioningArtifactsForServiceActionOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListProvisioningArtifactsForServiceActionError::from_response(response))
}))
}
})
}
fn list_record_history(
&self,
input: ListRecordHistoryInput,
) -> RusotoFuture<ListRecordHistoryOutput, ListRecordHistoryError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListRecordHistory",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListRecordHistoryOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListRecordHistoryError::from_response(response))),
)
}
})
}
fn list_resources_for_tag_option(
&self,
input: ListResourcesForTagOptionInput,
) -> RusotoFuture<ListResourcesForTagOptionOutput, ListResourcesForTagOptionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListResourcesForTagOption",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListResourcesForTagOptionOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListResourcesForTagOptionError::from_response(response))
}))
}
})
}
fn list_service_actions(
&self,
input: ListServiceActionsInput,
) -> RusotoFuture<ListServiceActionsOutput, ListServiceActionsError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListServiceActions",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListServiceActionsOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListServiceActionsError::from_response(response))),
)
}
})
}
fn list_service_actions_for_provisioning_artifact(
&self,
input: ListServiceActionsForProvisioningArtifactInput,
) -> RusotoFuture<
ListServiceActionsForProvisioningArtifactOutput,
ListServiceActionsForProvisioningArtifactError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListServiceActionsForProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListServiceActionsForProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListServiceActionsForProvisioningArtifactError::from_response(response))
}))
}
})
}
fn list_stack_instances_for_provisioned_product(
&self,
input: ListStackInstancesForProvisionedProductInput,
) -> RusotoFuture<
ListStackInstancesForProvisionedProductOutput,
ListStackInstancesForProvisionedProductError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ListStackInstancesForProvisionedProduct",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListStackInstancesForProvisionedProductOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListStackInstancesForProvisionedProductError::from_response(
response,
))
}))
}
})
}
fn list_tag_options(
&self,
input: ListTagOptionsInput,
) -> RusotoFuture<ListTagOptionsOutput, ListTagOptionsError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWS242ServiceCatalogService.ListTagOptions");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListTagOptionsOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListTagOptionsError::from_response(response))),
)
}
})
}
fn provision_product(
&self,
input: ProvisionProductInput,
) -> RusotoFuture<ProvisionProductOutput, ProvisionProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ProvisionProduct",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ProvisionProductOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ProvisionProductError::from_response(response))),
)
}
})
}
fn reject_portfolio_share(
&self,
input: RejectPortfolioShareInput,
) -> RusotoFuture<RejectPortfolioShareOutput, RejectPortfolioShareError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.RejectPortfolioShare",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<RejectPortfolioShareOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(RejectPortfolioShareError::from_response(response))
}),
)
}
})
}
fn scan_provisioned_products(
&self,
input: ScanProvisionedProductsInput,
) -> RusotoFuture<ScanProvisionedProductsOutput, ScanProvisionedProductsError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.ScanProvisionedProducts",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ScanProvisionedProductsOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ScanProvisionedProductsError::from_response(response))
}))
}
})
}
fn search_products(
&self,
input: SearchProductsInput,
) -> RusotoFuture<SearchProductsOutput, SearchProductsError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWS242ServiceCatalogService.SearchProducts");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<SearchProductsOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(SearchProductsError::from_response(response))),
)
}
})
}
fn search_products_as_admin(
&self,
input: SearchProductsAsAdminInput,
) -> RusotoFuture<SearchProductsAsAdminOutput, SearchProductsAsAdminError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.SearchProductsAsAdmin",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<SearchProductsAsAdminOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(SearchProductsAsAdminError::from_response(response))
}),
)
}
})
}
fn search_provisioned_products(
&self,
input: SearchProvisionedProductsInput,
) -> RusotoFuture<SearchProvisionedProductsOutput, SearchProvisionedProductsError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.SearchProvisionedProducts",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<SearchProvisionedProductsOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(SearchProvisionedProductsError::from_response(response))
}))
}
})
}
fn terminate_provisioned_product(
&self,
input: TerminateProvisionedProductInput,
) -> RusotoFuture<TerminateProvisionedProductOutput, TerminateProvisionedProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.TerminateProvisionedProduct",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<TerminateProvisionedProductOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(TerminateProvisionedProductError::from_response(response))
}))
}
})
}
fn update_constraint(
&self,
input: UpdateConstraintInput,
) -> RusotoFuture<UpdateConstraintOutput, UpdateConstraintError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.UpdateConstraint",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateConstraintOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateConstraintError::from_response(response))),
)
}
})
}
fn update_portfolio(
&self,
input: UpdatePortfolioInput,
) -> RusotoFuture<UpdatePortfolioOutput, UpdatePortfolioError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.UpdatePortfolio",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdatePortfolioOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdatePortfolioError::from_response(response))),
)
}
})
}
fn update_product(
&self,
input: UpdateProductInput,
) -> RusotoFuture<UpdateProductOutput, UpdateProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWS242ServiceCatalogService.UpdateProduct");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateProductOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateProductError::from_response(response))),
)
}
})
}
fn update_provisioned_product(
&self,
input: UpdateProvisionedProductInput,
) -> RusotoFuture<UpdateProvisionedProductOutput, UpdateProvisionedProductError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.UpdateProvisionedProduct",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateProvisionedProductOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateProvisionedProductError::from_response(response))
}))
}
})
}
fn update_provisioned_product_properties(
&self,
input: UpdateProvisionedProductPropertiesInput,
) -> RusotoFuture<
UpdateProvisionedProductPropertiesOutput,
UpdateProvisionedProductPropertiesError,
> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.UpdateProvisionedProductProperties",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateProvisionedProductPropertiesOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateProvisionedProductPropertiesError::from_response(
response,
))
}))
}
})
}
fn update_provisioning_artifact(
&self,
input: UpdateProvisioningArtifactInput,
) -> RusotoFuture<UpdateProvisioningArtifactOutput, UpdateProvisioningArtifactError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.UpdateProvisioningArtifact",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateProvisioningArtifactOutput, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateProvisioningArtifactError::from_response(response))
}))
}
})
}
fn update_service_action(
&self,
input: UpdateServiceActionInput,
) -> RusotoFuture<UpdateServiceActionOutput, UpdateServiceActionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.UpdateServiceAction",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateServiceActionOutput, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(UpdateServiceActionError::from_response(response))
}),
)
}
})
}
fn update_tag_option(
&self,
input: UpdateTagOptionInput,
) -> RusotoFuture<UpdateTagOptionOutput, UpdateTagOptionError> {
let mut request = SignedRequest::new("POST", "servicecatalog", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AWS242ServiceCatalogService.UpdateTagOption",
);
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateTagOptionOutput, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateTagOptionError::from_response(response))),
)
}
})
}
}