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 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.
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 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.
add_resources: 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.
remove_resources: 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.
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 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.
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 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.
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 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.
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 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.
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 ==.impl StructuralPartialEq for UpdateCrossAccountAttachmentInput
Auto Trait Implementations§
impl Freeze for UpdateCrossAccountAttachmentInput
impl RefUnwindSafe for UpdateCrossAccountAttachmentInput
impl Send for UpdateCrossAccountAttachmentInput
impl Sync for UpdateCrossAccountAttachmentInput
impl Unpin for UpdateCrossAccountAttachmentInput
impl UnwindSafe for UpdateCrossAccountAttachmentInput
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