Struct aws_sdk_globalaccelerator::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentInput
source · #[non_exhaustive]pub struct UpdateCrossAccountAttachmentInput {
pub attachment_arn: Option<String>,
pub name: Option<String>,
pub add_principals: Option<Vec<String>>,
pub remove_principals: Option<Vec<String>>,
pub add_resources: Option<Vec<Resource>>,
pub remove_resources: Option<Vec<Resource>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attachment_arn: Option<String>The Amazon Resource Name (ARN) of the cross-account attachment to update.
name: Option<String>The name of the cross-account attachment.
add_principals: 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.
remove_principals: 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.
add_resources: 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.
remove_resources: 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.
Implementations§
source§impl UpdateCrossAccountAttachmentInput
impl UpdateCrossAccountAttachmentInput
sourcepub fn attachment_arn(&self) -> Option<&str>
pub fn attachment_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the cross-account attachment to update.
sourcepub fn add_principals(&self) -> &[String]
pub fn add_principals(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .add_principals.is_none().
sourcepub fn remove_principals(&self) -> &[String]
pub fn remove_principals(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .remove_principals.is_none().
sourcepub fn add_resources(&self) -> &[Resource]
pub fn add_resources(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .add_resources.is_none().
sourcepub fn remove_resources(&self) -> &[Resource]
pub fn remove_resources(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .remove_resources.is_none().
source§impl UpdateCrossAccountAttachmentInput
impl UpdateCrossAccountAttachmentInput
sourcepub fn builder() -> UpdateCrossAccountAttachmentInputBuilder
pub fn builder() -> UpdateCrossAccountAttachmentInputBuilder
Creates a new builder-style object to manufacture UpdateCrossAccountAttachmentInput.
Trait Implementations§
source§impl Clone for UpdateCrossAccountAttachmentInput
impl Clone for UpdateCrossAccountAttachmentInput
source§fn clone(&self) -> UpdateCrossAccountAttachmentInput
fn clone(&self) -> UpdateCrossAccountAttachmentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for UpdateCrossAccountAttachmentInput
impl PartialEq for UpdateCrossAccountAttachmentInput
source§fn eq(&self, other: &UpdateCrossAccountAttachmentInput) -> bool
fn eq(&self, other: &UpdateCrossAccountAttachmentInput) -> bool
self and other values to be equal, and is used
by ==.