pub struct PutAdminAccountFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutAdminAccount
.
Creates or updates an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount
. Only the organization's management account can create an Firewall Manager administrator account. When you create an Firewall Manager administrator account, the service checks to see if the account is already a delegated administrator within Organizations. If the account isn't a delegated administrator, Firewall Manager calls Organizations to delegate the account within Organizations. For more information about administrator accounts within Organizations, see Managing the Amazon Web Services Accounts in Your Organization.
Implementations§
source§impl PutAdminAccountFluentBuilder
impl PutAdminAccountFluentBuilder
sourcepub fn as_input(&self) -> &PutAdminAccountInputBuilder
pub fn as_input(&self) -> &PutAdminAccountInputBuilder
Access the PutAdminAccount as a reference.
sourcepub async fn send(
self
) -> Result<PutAdminAccountOutput, SdkError<PutAdminAccountError, HttpResponse>>
pub async fn send( self ) -> Result<PutAdminAccountOutput, SdkError<PutAdminAccountError, 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<PutAdminAccountOutput, PutAdminAccountError, Self>
pub fn customize( self ) -> CustomizableOperation<PutAdminAccountOutput, PutAdminAccountError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn admin_account(self, input: impl Into<String>) -> Self
pub fn admin_account(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID to add as an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount
. For more information about Organizations, see Managing the Amazon Web Services Accounts in Your Organization.
sourcepub fn set_admin_account(self, input: Option<String>) -> Self
pub fn set_admin_account(self, input: Option<String>) -> Self
The Amazon Web Services account ID to add as an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount
. For more information about Organizations, see Managing the Amazon Web Services Accounts in Your Organization.
sourcepub fn get_admin_account(&self) -> &Option<String>
pub fn get_admin_account(&self) -> &Option<String>
The Amazon Web Services account ID to add as an Firewall Manager administrator account. The account must be a member of the organization that was onboarded to Firewall Manager by AssociateAdminAccount
. For more information about Organizations, see Managing the Amazon Web Services Accounts in Your Organization.
sourcepub fn admin_scope(self, input: AdminScope) -> Self
pub fn admin_scope(self, input: AdminScope) -> Self
Configures the resources that the specified Firewall Manager administrator can manage. As a best practice, set the administrative scope according to the principles of least privilege. Only grant the administrator the specific resources or permissions that they need to perform the duties of their role.
sourcepub fn set_admin_scope(self, input: Option<AdminScope>) -> Self
pub fn set_admin_scope(self, input: Option<AdminScope>) -> Self
Configures the resources that the specified Firewall Manager administrator can manage. As a best practice, set the administrative scope according to the principles of least privilege. Only grant the administrator the specific resources or permissions that they need to perform the duties of their role.
sourcepub fn get_admin_scope(&self) -> &Option<AdminScope>
pub fn get_admin_scope(&self) -> &Option<AdminScope>
Configures the resources that the specified Firewall Manager administrator can manage. As a best practice, set the administrative scope according to the principles of least privilege. Only grant the administrator the specific resources or permissions that they need to perform the duties of their role.
Trait Implementations§
source§impl Clone for PutAdminAccountFluentBuilder
impl Clone for PutAdminAccountFluentBuilder
source§fn clone(&self) -> PutAdminAccountFluentBuilder
fn clone(&self) -> PutAdminAccountFluentBuilder
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 PutAdminAccountFluentBuilder
impl !RefUnwindSafe for PutAdminAccountFluentBuilder
impl Send for PutAdminAccountFluentBuilder
impl Sync for PutAdminAccountFluentBuilder
impl Unpin for PutAdminAccountFluentBuilder
impl !UnwindSafe for PutAdminAccountFluentBuilder
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> 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