Struct aws_sdk_globalaccelerator::operation::update_cross_account_attachment::builders::UpdateCrossAccountAttachmentInputBuilder
source · #[non_exhaustive]pub struct UpdateCrossAccountAttachmentInputBuilder { /* private fields */ }Expand description
A builder for UpdateCrossAccountAttachmentInput.
Implementations§
source§impl UpdateCrossAccountAttachmentInputBuilder
impl UpdateCrossAccountAttachmentInputBuilder
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.
This field is required.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 add_principals.
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 remove_principals.
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 add_resources.
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 remove_resources.
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.
sourcepub fn build(self) -> Result<UpdateCrossAccountAttachmentInput, BuildError>
pub fn build(self) -> Result<UpdateCrossAccountAttachmentInput, BuildError>
Consumes the builder and constructs a UpdateCrossAccountAttachmentInput.
source§impl UpdateCrossAccountAttachmentInputBuilder
impl UpdateCrossAccountAttachmentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateCrossAccountAttachmentOutput, SdkError<UpdateCrossAccountAttachmentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateCrossAccountAttachmentOutput, SdkError<UpdateCrossAccountAttachmentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateCrossAccountAttachmentInputBuilder
impl Clone for UpdateCrossAccountAttachmentInputBuilder
source§fn clone(&self) -> UpdateCrossAccountAttachmentInputBuilder
fn clone(&self) -> UpdateCrossAccountAttachmentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for UpdateCrossAccountAttachmentInputBuilder
impl Default for UpdateCrossAccountAttachmentInputBuilder
source§fn default() -> UpdateCrossAccountAttachmentInputBuilder
fn default() -> UpdateCrossAccountAttachmentInputBuilder
source§impl PartialEq for UpdateCrossAccountAttachmentInputBuilder
impl PartialEq for UpdateCrossAccountAttachmentInputBuilder
source§fn eq(&self, other: &UpdateCrossAccountAttachmentInputBuilder) -> bool
fn eq(&self, other: &UpdateCrossAccountAttachmentInputBuilder) -> bool
self and other values to be equal, and is used
by ==.