Interface UpdateCrossAccountAttachmentRequest.Builder

  • Method Details

    • attachmentArn

      The Amazon Resource Name (ARN) of the cross-account attachment to update.

      Parameters:
      attachmentArn - The Amazon Resource Name (ARN) of the cross-account attachment to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the cross-account attachment.

      Parameters:
      name - The name of the cross-account attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addPrincipals

      The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

      Parameters:
      addPrincipals - The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addPrincipals

      UpdateCrossAccountAttachmentRequest.Builder addPrincipals(String... addPrincipals)

      The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

      Parameters:
      addPrincipals - The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • removePrincipals

      UpdateCrossAccountAttachmentRequest.Builder removePrincipals(Collection<String> removePrincipals)

      The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

      Parameters:
      removePrincipals - The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • removePrincipals

      UpdateCrossAccountAttachmentRequest.Builder removePrincipals(String... removePrincipals)

      The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

      Parameters:
      removePrincipals - The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.

      To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addResources

      The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To add more than one resource, separate the resource ARNs with commas.

      Parameters:
      addResources - The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To add more than one resource, separate the resource ARNs with commas.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addResources

      The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To add more than one resource, separate the resource ARNs with commas.

      Parameters:
      addResources - The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To add more than one resource, separate the resource ARNs with commas.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • addResources

      The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To add more than one resource, separate the resource ARNs with commas.

      This is a convenience method that creates an instance of the Resource.Builder avoiding the need to create one manually via Resource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to addResources(List<Resource>).

      Parameters:
      addResources - a consumer that will call methods on Resource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • removeResources

      The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To remove more than one resource, separate the resource ARNs with commas.

      Parameters:
      removeResources - The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To remove more than one resource, separate the resource ARNs with commas.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • removeResources

      UpdateCrossAccountAttachmentRequest.Builder removeResources(Resource... removeResources)

      The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To remove more than one resource, separate the resource ARNs with commas.

      Parameters:
      removeResources - The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To remove more than one resource, separate the resource ARNs with commas.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • removeResources

      The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.

      To remove more than one resource, separate the resource ARNs with commas.

      This is a convenience method that creates an instance of the Resource.Builder avoiding the need to create one manually via Resource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to removeResources(List<Resource>).

      Parameters:
      removeResources - a consumer that will call methods on Resource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.