Struct aws_sdk_globalaccelerator::operation::update_cross_account_attachment::builders::UpdateCrossAccountAttachmentFluentBuilder
source · pub struct UpdateCrossAccountAttachmentFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to UpdateCrossAccountAttachment.
Update a cross-account attachment to add or remove principals or resources. When you update an attachment to remove a principal (account ID or accelerator) or a resource, Global Accelerator revokes the permission for specific resources by doing the following:
-
If the principal is an account ID, Global Accelerator reviews every accelerator in the account and removes cross-account endpoints from all accelerators.
-
If the principal is an accelerator, Global Accelerator reviews just that accelerator and removes cross-account endpoints from it.
If there are overlapping permissions provided by multiple cross-account attachments, Global Accelerator only removes endpoints if there are no current cross-account attachments that provide access permission. For example, if you delete a cross-account attachment that lists an accelerator as a principal, but another cross-account attachment includes the account ID that owns that accelerator, endpoints will not be removed from the accelerator.
Implementations§
source§impl UpdateCrossAccountAttachmentFluentBuilder
impl UpdateCrossAccountAttachmentFluentBuilder
sourcepub fn as_input(&self) -> &UpdateCrossAccountAttachmentInputBuilder
pub fn as_input(&self) -> &UpdateCrossAccountAttachmentInputBuilder
Access the UpdateCrossAccountAttachment as a reference.
sourcepub async fn send(
self
) -> Result<UpdateCrossAccountAttachmentOutput, SdkError<UpdateCrossAccountAttachmentError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateCrossAccountAttachmentOutput, SdkError<UpdateCrossAccountAttachmentError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateCrossAccountAttachmentOutput, UpdateCrossAccountAttachmentError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateCrossAccountAttachmentOutput, UpdateCrossAccountAttachmentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn attachment_arn(self, input: impl Into<String>) -> Self
pub fn attachment_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the cross-account attachment to update.
sourcepub fn set_attachment_arn(self, input: Option<String>) -> Self
pub fn set_attachment_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the cross-account attachment to update.
sourcepub fn get_attachment_arn(&self) -> &Option<String>
pub fn get_attachment_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the cross-account attachment to update.
sourcepub fn add_principals(self, input: impl Into<String>) -> Self
pub fn add_principals(self, input: impl Into<String>) -> Self
Appends an item to AddPrincipals.
To override the contents of this collection use set_add_principals.
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 add the resources from another account, listed in the attachment.
To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
sourcepub fn set_add_principals(self, input: Option<Vec<String>>) -> Self
pub fn set_add_principals(self, input: Option<Vec<String>>) -> Self
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 add the resources from another account, listed in the attachment.
To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
sourcepub fn get_add_principals(&self) -> &Option<Vec<String>>
pub fn get_add_principals(&self) -> &Option<Vec<String>>
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 add the resources from another account, listed in the attachment.
To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
sourcepub fn remove_principals(self, input: impl Into<String>) -> Self
pub fn remove_principals(self, input: impl Into<String>) -> Self
Appends an item to RemovePrincipals.
To override the contents of this collection use set_remove_principals.
The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that is given permission to add the resources from another account, listed in the cross-account attachment.
To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
sourcepub fn set_remove_principals(self, input: Option<Vec<String>>) -> Self
pub fn set_remove_principals(self, input: Option<Vec<String>>) -> Self
The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that is given permission to add the resources from another account, listed in the cross-account attachment.
To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
sourcepub fn get_remove_principals(&self) -> &Option<Vec<String>>
pub fn get_remove_principals(&self) -> &Option<Vec<String>>
The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that is given permission to add the resources from another account, listed in the cross-account attachment.
To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
sourcepub fn add_resources(self, input: Resource) -> Self
pub fn add_resources(self, input: Resource) -> Self
Appends an item to AddResources.
To override the contents of this collection use set_add_resources.
The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be added to an accelerator by the principals that are listed in the attachment.
To add more than one resource, separate the resource ARNs with commas.
sourcepub fn set_add_resources(self, input: Option<Vec<Resource>>) -> Self
pub fn set_add_resources(self, input: Option<Vec<Resource>>) -> Self
The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be added to an accelerator by the principals that are listed in the attachment.
To add more than one resource, separate the resource ARNs with commas.
sourcepub fn get_add_resources(&self) -> &Option<Vec<Resource>>
pub fn get_add_resources(&self) -> &Option<Vec<Resource>>
The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be added to an accelerator by the principals that are listed in the attachment.
To add more than one resource, separate the resource ARNs with commas.
sourcepub fn remove_resources(self, input: Resource) -> Self
pub fn remove_resources(self, input: Resource) -> Self
Appends an item to RemoveResources.
To override the contents of this collection use set_remove_resources.
The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be added to an accelerator fy principals that are listed in the cross-account attachment.
To remove more than one resource, separate the resource ARNs with commas.
sourcepub fn set_remove_resources(self, input: Option<Vec<Resource>>) -> Self
pub fn set_remove_resources(self, input: Option<Vec<Resource>>) -> Self
The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be added to an accelerator fy principals that are listed in the cross-account attachment.
To remove more than one resource, separate the resource ARNs with commas.
sourcepub fn get_remove_resources(&self) -> &Option<Vec<Resource>>
pub fn get_remove_resources(&self) -> &Option<Vec<Resource>>
The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be added to an accelerator fy principals that are listed in the cross-account attachment.
To remove more than one resource, separate the resource ARNs with commas.
Trait Implementations§
source§impl Clone for UpdateCrossAccountAttachmentFluentBuilder
impl Clone for UpdateCrossAccountAttachmentFluentBuilder
source§fn clone(&self) -> UpdateCrossAccountAttachmentFluentBuilder
fn clone(&self) -> UpdateCrossAccountAttachmentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more