pub struct InviteMembersFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to InviteMembers.
Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account that the invitation is sent from.
This operation is only used to invite accounts that do not belong to an organization. Organization accounts do not receive invitations.
Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.
When the account owner enables Security Hub and accepts the invitation to become a member account, the administrator account can view the findings generated from the member account.
Implementations§
source§impl InviteMembersFluentBuilder
impl InviteMembersFluentBuilder
sourcepub fn as_input(&self) -> &InviteMembersInputBuilder
pub fn as_input(&self) -> &InviteMembersInputBuilder
Access the InviteMembers as a reference.
sourcepub async fn send(
self,
) -> Result<InviteMembersOutput, SdkError<InviteMembersError, HttpResponse>>
pub async fn send( self, ) -> Result<InviteMembersOutput, SdkError<InviteMembersError, 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<InviteMembersOutput, InviteMembersError, Self>
pub fn customize( self, ) -> CustomizableOperation<InviteMembersOutput, InviteMembersError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn account_ids(self, input: impl Into<String>) -> Self
pub fn account_ids(self, input: impl Into<String>) -> Self
Appends an item to AccountIds.
To override the contents of this collection use set_account_ids.
The list of account IDs of the Amazon Web Services accounts to invite to Security Hub as members.
sourcepub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_account_ids(self, input: Option<Vec<String>>) -> Self
The list of account IDs of the Amazon Web Services accounts to invite to Security Hub as members.
sourcepub fn get_account_ids(&self) -> &Option<Vec<String>>
pub fn get_account_ids(&self) -> &Option<Vec<String>>
The list of account IDs of the Amazon Web Services accounts to invite to Security Hub as members.
Trait Implementations§
source§impl Clone for InviteMembersFluentBuilder
impl Clone for InviteMembersFluentBuilder
source§fn clone(&self) -> InviteMembersFluentBuilder
fn clone(&self) -> InviteMembersFluentBuilder
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 InviteMembersFluentBuilder
impl !RefUnwindSafe for InviteMembersFluentBuilder
impl Send for InviteMembersFluentBuilder
impl Sync for InviteMembersFluentBuilder
impl Unpin for InviteMembersFluentBuilder
impl !UnwindSafe for InviteMembersFluentBuilder
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