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.
For more information, see Working with cross-account attachments and resources in Global Accelerator in the Global Accelerator Developer Guide.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 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.
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 moreAuto Trait Implementations§
impl Freeze for UpdateCrossAccountAttachmentFluentBuilder
impl !RefUnwindSafe for UpdateCrossAccountAttachmentFluentBuilder
impl Send for UpdateCrossAccountAttachmentFluentBuilder
impl Sync for UpdateCrossAccountAttachmentFluentBuilder
impl Unpin for UpdateCrossAccountAttachmentFluentBuilder
impl !UnwindSafe for UpdateCrossAccountAttachmentFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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