Struct aws_sdk_securityhub::client::fluent_builders::InviteMembers
source · pub struct InviteMembers { /* 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 InviteMembers
impl InviteMembers
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<InviteMembers, AwsResponseRetryClassifier>, SdkError<InviteMembersError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<InviteMembers, AwsResponseRetryClassifier>, SdkError<InviteMembersError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<InviteMembersOutput, SdkError<InviteMembersError>>
pub async fn send(
self
) -> Result<InviteMembersOutput, SdkError<InviteMembersError>>
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 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.
Trait Implementations§
source§impl Clone for InviteMembers
impl Clone for InviteMembers
source§fn clone(&self) -> InviteMembers
fn clone(&self) -> InviteMembers
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more