Struct aws_sdk_servicecatalog::client::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for AWS Service Catalog

Client for invoking operations on AWS Service Catalog. Each operation on AWS Service Catalog is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_servicecatalog::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_servicecatalog::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the AcceptPortfolioShare operation has a Client::accept_portfolio_share, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.accept_portfolio_share()
    .accept_language("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn accept_portfolio_share(&self) -> AcceptPortfolioShareFluentBuilder

Constructs a fluent builder for the AcceptPortfolioShare operation.

source§

impl Client

source

pub fn associate_budget_with_resource( &self ) -> AssociateBudgetWithResourceFluentBuilder

Constructs a fluent builder for the AssociateBudgetWithResource operation.

source§

impl Client

source

pub fn associate_principal_with_portfolio( &self ) -> AssociatePrincipalWithPortfolioFluentBuilder

Constructs a fluent builder for the AssociatePrincipalWithPortfolio operation.

  • The fluent builder is configurable:
    • accept_language(impl Into<String>) / set_accept_language(Option<String>):
      required: false

      The language code.

      • jp - Japanese

      • zh - Chinese


    • portfolio_id(impl Into<String>) / set_portfolio_id(Option<String>):
      required: true

      The portfolio identifier.


    • principal_arn(impl Into<String>) / set_principal_arn(Option<String>):
      required: true

      The ARN of the principal (user, role, or group). If the PrincipalType is IAM, the supported value is a fully defined IAM Amazon Resource Name (ARN). If the PrincipalType is IAM_PATTERN, the supported value is an IAM ARN without an AccountID in the following format:

      arn:partition:iam:::resource-type/resource-id

      The ARN resource-id can be either:

      • A fully formed resource-id. For example, arn:aws:iam:::role/resource-name or arn:aws:iam:::role/resource-path/resource-name

      • A wildcard ARN. The wildcard ARN accepts IAM_PATTERN values with a “” or “?” in the resource-id segment of the ARN. For example arn:partition:service:::resource-type/resource-path/resource-name. The new symbols are exclusive to the resource-path and resource-name and cannot replace the resource-type or other ARN values.

        The ARN path and principal name allow unlimited wildcard characters.

      Examples of an acceptable wildcard ARN:

      • arn:aws:iam:::role/ResourceName_

      • arn:aws:iam:::role//ResourceName_?

      Examples of an unacceptable wildcard ARN:

      • arn:aws:iam:::/ResourceName

      You can associate multiple IAM_PATTERNs even if the account has no principal with that name.

      The “?” wildcard character matches zero or one of any character. This is similar to “.?” in regular regex context. The “” wildcard character matches any number of any characters. This is similar to “.” in regular regex context.

      In the IAM Principal ARN format (arn:partition:iam:::resource-type/resource-path/resource-name), valid resource-type values include user/, group/, or role/. The “?” and “” characters are allowed only after the resource-type in the resource-id segment. You can use special characters anywhere within the resource-id.

      The “” character also matches the “/” character, allowing paths to be formed within the resource-id. For example, arn:aws:iam:::role/*/ResourceName_? matches both arn:aws:iam:::role/pathA/pathB/ResourceName_1 and arn:aws:iam:::role/pathA/ResourceName_1.


    • principal_type(PrincipalType) / set_principal_type(Option<PrincipalType>):
      required: true

      The principal type. The supported value is IAM if you use a fully defined Amazon Resource Name (ARN), or IAM_PATTERN if you use an ARN with no accountID, with or without wildcard characters.


  • On success, responds with AssociatePrincipalWithPortfolioOutput
  • On failure, responds with SdkError<AssociatePrincipalWithPortfolioError>
source§

impl Client

source

pub fn associate_product_with_portfolio( &self ) -> AssociateProductWithPortfolioFluentBuilder

Constructs a fluent builder for the AssociateProductWithPortfolio operation.

source§

impl Client

source

pub fn associate_service_action_with_provisioning_artifact( &self ) -> AssociateServiceActionWithProvisioningArtifactFluentBuilder

Constructs a fluent builder for the AssociateServiceActionWithProvisioningArtifact operation.

source§

impl Client

source

pub fn associate_tag_option_with_resource( &self ) -> AssociateTagOptionWithResourceFluentBuilder

Constructs a fluent builder for the AssociateTagOptionWithResource operation.

source§

impl Client

source

pub fn batch_associate_service_action_with_provisioning_artifact( &self ) -> BatchAssociateServiceActionWithProvisioningArtifactFluentBuilder

Constructs a fluent builder for the BatchAssociateServiceActionWithProvisioningArtifact operation.

source§

impl Client

source

pub fn batch_disassociate_service_action_from_provisioning_artifact( &self ) -> BatchDisassociateServiceActionFromProvisioningArtifactFluentBuilder

Constructs a fluent builder for the BatchDisassociateServiceActionFromProvisioningArtifact operation.

source§

impl Client

source

pub fn copy_product(&self) -> CopyProductFluentBuilder

Constructs a fluent builder for the CopyProduct operation.

source§

impl Client

source

pub fn create_constraint(&self) -> CreateConstraintFluentBuilder

Constructs a fluent builder for the CreateConstraint operation.

  • The fluent builder is configurable:
    • accept_language(impl Into<String>) / set_accept_language(Option<String>):
      required: false

      The language code.

      • jp - Japanese

      • zh - Chinese


    • portfolio_id(impl Into<String>) / set_portfolio_id(Option<String>):
      required: true

      The portfolio identifier.


    • product_id(impl Into<String>) / set_product_id(Option<String>):
      required: true

      The product identifier.


    • parameters(impl Into<String>) / set_parameters(Option<String>):
      required: true

      The constraint parameters, in JSON format. The syntax depends on the constraint type as follows:

      LAUNCH

      You are required to specify either the RoleArn or the LocalRoleName but can’t use both.

      Specify the RoleArn property as follows:

      {“RoleArn” : “arn:aws:iam::123456789012:role/LaunchRole”}

      Specify the LocalRoleName property as follows:

      {“LocalRoleName”: “SCBasicLaunchRole”}

      If you specify the LocalRoleName property, when an account uses the launch constraint, the IAM role with that name in the account will be used. This allows launch-role constraints to be account-agnostic so the administrator can create fewer resources per shared account.

      The given role name must exist in the account used to create the launch constraint and the account of the user who launches a product with this launch constraint.

      You cannot have both a LAUNCH and a STACKSET constraint.

      You also cannot have more than one LAUNCH constraint on a product and portfolio.

      NOTIFICATION

      Specify the NotificationArns property as follows:

      {“NotificationArns” : [“arn:aws:sns:us-east-1:123456789012:Topic”]}

      RESOURCE_UPDATE

      Specify the TagUpdatesOnProvisionedProduct property as follows:

      {“Version”:“2.0”,“Properties”:{“TagUpdateOnProvisionedProduct”:“String”}}

      The TagUpdatesOnProvisionedProduct property accepts a string value of ALLOWED or NOT_ALLOWED.

      STACKSET

      Specify the Parameters property as follows:

      {“Version”: “String”, “Properties”: {“AccountList”: [ “String” ], “RegionList”: [ “String” ], “AdminRole”: “String”, “ExecutionRole”: “String”}}

      You cannot have both a LAUNCH and a STACKSET constraint.

      You also cannot have more than one STACKSET constraint on a product and portfolio.

      Products with a STACKSET constraint will launch an CloudFormation stack set.

      TEMPLATE

      Specify the Rules property. For more information, see Template Constraint Rules.


    • r#type(impl Into<String>) / set_type(Option<String>):
      required: true

      The type of constraint.

      • LAUNCH

      • NOTIFICATION

      • RESOURCE_UPDATE

      • STACKSET

      • TEMPLATE


    • description(impl Into<String>) / set_description(Option<String>):
      required: false

      The description of the constraint.


    • idempotency_token(impl Into<String>) / set_idempotency_token(Option<String>):
      required: true

      A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.


  • On success, responds with CreateConstraintOutput with field(s):
  • On failure, responds with SdkError<CreateConstraintError>
source§

impl Client

source

pub fn create_portfolio(&self) -> CreatePortfolioFluentBuilder

Constructs a fluent builder for the CreatePortfolio operation.

source§

impl Client

source

pub fn create_portfolio_share(&self) -> CreatePortfolioShareFluentBuilder

Constructs a fluent builder for the CreatePortfolioShare operation.

source§

impl Client

source

pub fn create_product(&self) -> CreateProductFluentBuilder

Constructs a fluent builder for the CreateProduct operation.

source§

impl Client

source

pub fn create_provisioned_product_plan( &self ) -> CreateProvisionedProductPlanFluentBuilder

Constructs a fluent builder for the CreateProvisionedProductPlan operation.

source§

impl Client

source

pub fn create_provisioning_artifact( &self ) -> CreateProvisioningArtifactFluentBuilder

Constructs a fluent builder for the CreateProvisioningArtifact operation.

source§

impl Client

source

pub fn create_service_action(&self) -> CreateServiceActionFluentBuilder

Constructs a fluent builder for the CreateServiceAction operation.

source§

impl Client

source

pub fn create_tag_option(&self) -> CreateTagOptionFluentBuilder

Constructs a fluent builder for the CreateTagOption operation.

source§

impl Client

source

pub fn delete_constraint(&self) -> DeleteConstraintFluentBuilder

Constructs a fluent builder for the DeleteConstraint operation.

source§

impl Client

source

pub fn delete_portfolio(&self) -> DeletePortfolioFluentBuilder

Constructs a fluent builder for the DeletePortfolio operation.

source§

impl Client

source

pub fn delete_portfolio_share(&self) -> DeletePortfolioShareFluentBuilder

Constructs a fluent builder for the DeletePortfolioShare operation.

source§

impl Client

source

pub fn delete_product(&self) -> DeleteProductFluentBuilder

Constructs a fluent builder for the DeleteProduct operation.

source§

impl Client

source

pub fn delete_provisioned_product_plan( &self ) -> DeleteProvisionedProductPlanFluentBuilder

Constructs a fluent builder for the DeleteProvisionedProductPlan operation.

source§

impl Client

source

pub fn delete_provisioning_artifact( &self ) -> DeleteProvisioningArtifactFluentBuilder

Constructs a fluent builder for the DeleteProvisioningArtifact operation.

source§

impl Client

source

pub fn delete_service_action(&self) -> DeleteServiceActionFluentBuilder

Constructs a fluent builder for the DeleteServiceAction operation.

source§

impl Client

source

pub fn delete_tag_option(&self) -> DeleteTagOptionFluentBuilder

Constructs a fluent builder for the DeleteTagOption operation.

source§

impl Client

source

pub fn describe_constraint(&self) -> DescribeConstraintFluentBuilder

Constructs a fluent builder for the DescribeConstraint operation.

source§

impl Client

source

pub fn describe_copy_product_status( &self ) -> DescribeCopyProductStatusFluentBuilder

Constructs a fluent builder for the DescribeCopyProductStatus operation.

source§

impl Client

source

pub fn describe_portfolio(&self) -> DescribePortfolioFluentBuilder

Constructs a fluent builder for the DescribePortfolio operation.

source§

impl Client

source

pub fn describe_portfolio_share_status( &self ) -> DescribePortfolioShareStatusFluentBuilder

Constructs a fluent builder for the DescribePortfolioShareStatus operation.

source§

impl Client

source

pub fn describe_portfolio_shares(&self) -> DescribePortfolioSharesFluentBuilder

Constructs a fluent builder for the DescribePortfolioShares operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_product(&self) -> DescribeProductFluentBuilder

Constructs a fluent builder for the DescribeProduct operation.

source§

impl Client

source

pub fn describe_product_as_admin(&self) -> DescribeProductAsAdminFluentBuilder

Constructs a fluent builder for the DescribeProductAsAdmin operation.

source§

impl Client

source

pub fn describe_product_view(&self) -> DescribeProductViewFluentBuilder

Constructs a fluent builder for the DescribeProductView operation.

source§

impl Client

source

pub fn describe_provisioned_product( &self ) -> DescribeProvisionedProductFluentBuilder

Constructs a fluent builder for the DescribeProvisionedProduct operation.

source§

impl Client

source

pub fn describe_provisioned_product_plan( &self ) -> DescribeProvisionedProductPlanFluentBuilder

Constructs a fluent builder for the DescribeProvisionedProductPlan operation.

source§

impl Client

source

pub fn describe_provisioning_artifact( &self ) -> DescribeProvisioningArtifactFluentBuilder

Constructs a fluent builder for the DescribeProvisioningArtifact operation.

source§

impl Client

source

pub fn describe_provisioning_parameters( &self ) -> DescribeProvisioningParametersFluentBuilder

Constructs a fluent builder for the DescribeProvisioningParameters operation.

source§

impl Client

source

pub fn describe_record(&self) -> DescribeRecordFluentBuilder

Constructs a fluent builder for the DescribeRecord operation.

source§

impl Client

source

pub fn describe_service_action(&self) -> DescribeServiceActionFluentBuilder

Constructs a fluent builder for the DescribeServiceAction operation.

source§

impl Client

source

pub fn describe_service_action_execution_parameters( &self ) -> DescribeServiceActionExecutionParametersFluentBuilder

Constructs a fluent builder for the DescribeServiceActionExecutionParameters operation.

source§

impl Client

source

pub fn describe_tag_option(&self) -> DescribeTagOptionFluentBuilder

Constructs a fluent builder for the DescribeTagOption operation.

source§

impl Client

source

pub fn disable_aws_organizations_access( &self ) -> DisableAWSOrganizationsAccessFluentBuilder

Constructs a fluent builder for the DisableAWSOrganizationsAccess operation.

source§

impl Client

source

pub fn disassociate_budget_from_resource( &self ) -> DisassociateBudgetFromResourceFluentBuilder

Constructs a fluent builder for the DisassociateBudgetFromResource operation.

source§

impl Client

source

pub fn disassociate_principal_from_portfolio( &self ) -> DisassociatePrincipalFromPortfolioFluentBuilder

Constructs a fluent builder for the DisassociatePrincipalFromPortfolio operation.

source§

impl Client

source

pub fn disassociate_product_from_portfolio( &self ) -> DisassociateProductFromPortfolioFluentBuilder

Constructs a fluent builder for the DisassociateProductFromPortfolio operation.

source§

impl Client

source

pub fn disassociate_service_action_from_provisioning_artifact( &self ) -> DisassociateServiceActionFromProvisioningArtifactFluentBuilder

Constructs a fluent builder for the DisassociateServiceActionFromProvisioningArtifact operation.

source§

impl Client

source

pub fn disassociate_tag_option_from_resource( &self ) -> DisassociateTagOptionFromResourceFluentBuilder

Constructs a fluent builder for the DisassociateTagOptionFromResource operation.

source§

impl Client

source

pub fn enable_aws_organizations_access( &self ) -> EnableAWSOrganizationsAccessFluentBuilder

Constructs a fluent builder for the EnableAWSOrganizationsAccess operation.

source§

impl Client

source

pub fn execute_provisioned_product_plan( &self ) -> ExecuteProvisionedProductPlanFluentBuilder

Constructs a fluent builder for the ExecuteProvisionedProductPlan operation.

source§

impl Client

source

pub fn execute_provisioned_product_service_action( &self ) -> ExecuteProvisionedProductServiceActionFluentBuilder

Constructs a fluent builder for the ExecuteProvisionedProductServiceAction operation.

source§

impl Client

source

pub fn get_aws_organizations_access_status( &self ) -> GetAWSOrganizationsAccessStatusFluentBuilder

Constructs a fluent builder for the GetAWSOrganizationsAccessStatus operation.

source§

impl Client

source

pub fn get_provisioned_product_outputs( &self ) -> GetProvisionedProductOutputsFluentBuilder

Constructs a fluent builder for the GetProvisionedProductOutputs operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn import_as_provisioned_product( &self ) -> ImportAsProvisionedProductFluentBuilder

Constructs a fluent builder for the ImportAsProvisionedProduct operation.

source§

impl Client

source

pub fn list_accepted_portfolio_shares( &self ) -> ListAcceptedPortfolioSharesFluentBuilder

Constructs a fluent builder for the ListAcceptedPortfolioShares operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_budgets_for_resource(&self) -> ListBudgetsForResourceFluentBuilder

Constructs a fluent builder for the ListBudgetsForResource operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_constraints_for_portfolio( &self ) -> ListConstraintsForPortfolioFluentBuilder

Constructs a fluent builder for the ListConstraintsForPortfolio operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_launch_paths(&self) -> ListLaunchPathsFluentBuilder

Constructs a fluent builder for the ListLaunchPaths operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_organization_portfolio_access( &self ) -> ListOrganizationPortfolioAccessFluentBuilder

Constructs a fluent builder for the ListOrganizationPortfolioAccess operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_portfolio_access(&self) -> ListPortfolioAccessFluentBuilder

Constructs a fluent builder for the ListPortfolioAccess operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_portfolios(&self) -> ListPortfoliosFluentBuilder

Constructs a fluent builder for the ListPortfolios operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_portfolios_for_product( &self ) -> ListPortfoliosForProductFluentBuilder

Constructs a fluent builder for the ListPortfoliosForProduct operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_principals_for_portfolio( &self ) -> ListPrincipalsForPortfolioFluentBuilder

Constructs a fluent builder for the ListPrincipalsForPortfolio operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_provisioned_product_plans( &self ) -> ListProvisionedProductPlansFluentBuilder

Constructs a fluent builder for the ListProvisionedProductPlans operation.

source§

impl Client

source

pub fn list_provisioning_artifacts( &self ) -> ListProvisioningArtifactsFluentBuilder

Constructs a fluent builder for the ListProvisioningArtifacts operation.

source§

impl Client

source

pub fn list_provisioning_artifacts_for_service_action( &self ) -> ListProvisioningArtifactsForServiceActionFluentBuilder

Constructs a fluent builder for the ListProvisioningArtifactsForServiceAction operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_record_history(&self) -> ListRecordHistoryFluentBuilder

Constructs a fluent builder for the ListRecordHistory operation.

source§

impl Client

source

pub fn list_resources_for_tag_option( &self ) -> ListResourcesForTagOptionFluentBuilder

Constructs a fluent builder for the ListResourcesForTagOption operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_service_actions(&self) -> ListServiceActionsFluentBuilder

Constructs a fluent builder for the ListServiceActions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_service_actions_for_provisioning_artifact( &self ) -> ListServiceActionsForProvisioningArtifactFluentBuilder

Constructs a fluent builder for the ListServiceActionsForProvisioningArtifact operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_stack_instances_for_provisioned_product( &self ) -> ListStackInstancesForProvisionedProductFluentBuilder

Constructs a fluent builder for the ListStackInstancesForProvisionedProduct operation.

source§

impl Client

source

pub fn list_tag_options(&self) -> ListTagOptionsFluentBuilder

Constructs a fluent builder for the ListTagOptions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn notify_provision_product_engine_workflow_result( &self ) -> NotifyProvisionProductEngineWorkflowResultFluentBuilder

Constructs a fluent builder for the NotifyProvisionProductEngineWorkflowResult operation.

source§

impl Client

source

pub fn notify_terminate_provisioned_product_engine_workflow_result( &self ) -> NotifyTerminateProvisionedProductEngineWorkflowResultFluentBuilder

Constructs a fluent builder for the NotifyTerminateProvisionedProductEngineWorkflowResult operation.

source§

impl Client

source

pub fn notify_update_provisioned_product_engine_workflow_result( &self ) -> NotifyUpdateProvisionedProductEngineWorkflowResultFluentBuilder

Constructs a fluent builder for the NotifyUpdateProvisionedProductEngineWorkflowResult operation.

source§

impl Client

source

pub fn provision_product(&self) -> ProvisionProductFluentBuilder

Constructs a fluent builder for the ProvisionProduct operation.

source§

impl Client

source

pub fn reject_portfolio_share(&self) -> RejectPortfolioShareFluentBuilder

Constructs a fluent builder for the RejectPortfolioShare operation.

source§

impl Client

source

pub fn scan_provisioned_products(&self) -> ScanProvisionedProductsFluentBuilder

Constructs a fluent builder for the ScanProvisionedProducts operation.

source§

impl Client

source

pub fn search_products(&self) -> SearchProductsFluentBuilder

Constructs a fluent builder for the SearchProducts operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn search_products_as_admin(&self) -> SearchProductsAsAdminFluentBuilder

Constructs a fluent builder for the SearchProductsAsAdmin operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn search_provisioned_products( &self ) -> SearchProvisionedProductsFluentBuilder

Constructs a fluent builder for the SearchProvisionedProducts operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn terminate_provisioned_product( &self ) -> TerminateProvisionedProductFluentBuilder

Constructs a fluent builder for the TerminateProvisionedProduct operation.

source§

impl Client

source

pub fn update_constraint(&self) -> UpdateConstraintFluentBuilder

Constructs a fluent builder for the UpdateConstraint operation.

  • The fluent builder is configurable:
    • accept_language(impl Into<String>) / set_accept_language(Option<String>):
      required: false

      The language code.

      • jp - Japanese

      • zh - Chinese


    • id(impl Into<String>) / set_id(Option<String>):
      required: true

      The identifier of the constraint.


    • description(impl Into<String>) / set_description(Option<String>):
      required: false

      The updated description of the constraint.


    • parameters(impl Into<String>) / set_parameters(Option<String>):
      required: false

      The constraint parameters, in JSON format. The syntax depends on the constraint type as follows:

      LAUNCH

      You are required to specify either the RoleArn or the LocalRoleName but can’t use both.

      Specify the RoleArn property as follows:

      {“RoleArn” : “arn:aws:iam::123456789012:role/LaunchRole”}

      Specify the LocalRoleName property as follows:

      {“LocalRoleName”: “SCBasicLaunchRole”}

      If you specify the LocalRoleName property, when an account uses the launch constraint, the IAM role with that name in the account will be used. This allows launch-role constraints to be account-agnostic so the administrator can create fewer resources per shared account.

      The given role name must exist in the account used to create the launch constraint and the account of the user who launches a product with this launch constraint.

      You cannot have both a LAUNCH and a STACKSET constraint.

      You also cannot have more than one LAUNCH constraint on a product and portfolio.

      NOTIFICATION

      Specify the NotificationArns property as follows:

      {“NotificationArns” : [“arn:aws:sns:us-east-1:123456789012:Topic”]}

      RESOURCE_UPDATE

      Specify the TagUpdatesOnProvisionedProduct property as follows:

      {“Version”:“2.0”,“Properties”:{“TagUpdateOnProvisionedProduct”:“String”}}

      The TagUpdatesOnProvisionedProduct property accepts a string value of ALLOWED or NOT_ALLOWED.

      STACKSET

      Specify the Parameters property as follows:

      {“Version”: “String”, “Properties”: {“AccountList”: [ “String” ], “RegionList”: [ “String” ], “AdminRole”: “String”, “ExecutionRole”: “String”}}

      You cannot have both a LAUNCH and a STACKSET constraint.

      You also cannot have more than one STACKSET constraint on a product and portfolio.

      Products with a STACKSET constraint will launch an CloudFormation stack set.

      TEMPLATE

      Specify the Rules property. For more information, see Template Constraint Rules.


  • On success, responds with UpdateConstraintOutput with field(s):
  • On failure, responds with SdkError<UpdateConstraintError>
source§

impl Client

source

pub fn update_portfolio(&self) -> UpdatePortfolioFluentBuilder

Constructs a fluent builder for the UpdatePortfolio operation.

source§

impl Client

source

pub fn update_portfolio_share(&self) -> UpdatePortfolioShareFluentBuilder

Constructs a fluent builder for the UpdatePortfolioShare operation.

source§

impl Client

source

pub fn update_product(&self) -> UpdateProductFluentBuilder

Constructs a fluent builder for the UpdateProduct operation.

source§

impl Client

source

pub fn update_provisioned_product( &self ) -> UpdateProvisionedProductFluentBuilder

Constructs a fluent builder for the UpdateProvisionedProduct operation.

source§

impl Client

source

pub fn update_provisioned_product_properties( &self ) -> UpdateProvisionedProductPropertiesFluentBuilder

Constructs a fluent builder for the UpdateProvisionedProductProperties operation.

source§

impl Client

source

pub fn update_provisioning_artifact( &self ) -> UpdateProvisioningArtifactFluentBuilder

Constructs a fluent builder for the UpdateProvisioningArtifact operation.

source§

impl Client

source

pub fn update_service_action(&self) -> UpdateServiceActionFluentBuilder

Constructs a fluent builder for the UpdateServiceAction operation.

source§

impl Client

source

pub fn update_tag_option(&self) -> UpdateTagOptionFluentBuilder

Constructs a fluent builder for the UpdateTagOption operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

§Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

§Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more