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 more