Struct aws_sdk_health::operation::describe_affected_accounts_for_organization::builders::DescribeAffectedAccountsForOrganizationFluentBuilder
source · pub struct DescribeAffectedAccountsForOrganizationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeAffectedAccountsForOrganization
.
Returns a list of accounts in the organization from Organizations that are affected by the provided event. For more information about the different types of Health events, see Event.
Before you can call this operation, you must first enable Health to work with Organizations. To do this, call the EnableHealthServiceAccessForOrganization operation from your organization's management account.
This API operation uses pagination. Specify the nextToken
parameter in the next request to return more results.
Implementations§
source§impl DescribeAffectedAccountsForOrganizationFluentBuilder
impl DescribeAffectedAccountsForOrganizationFluentBuilder
sourcepub fn as_input(&self) -> &DescribeAffectedAccountsForOrganizationInputBuilder
pub fn as_input(&self) -> &DescribeAffectedAccountsForOrganizationInputBuilder
Access the DescribeAffectedAccountsForOrganization as a reference.
sourcepub async fn send(
self
) -> Result<DescribeAffectedAccountsForOrganizationOutput, SdkError<DescribeAffectedAccountsForOrganizationError, HttpResponse>>
pub async fn send( self ) -> Result<DescribeAffectedAccountsForOrganizationOutput, SdkError<DescribeAffectedAccountsForOrganizationError, 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<DescribeAffectedAccountsForOrganizationOutput, DescribeAffectedAccountsForOrganizationError, Self>
pub fn customize( self ) -> CustomizableOperation<DescribeAffectedAccountsForOrganizationOutput, DescribeAffectedAccountsForOrganizationError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn into_paginator(self) -> DescribeAffectedAccountsForOrganizationPaginator
pub fn into_paginator(self) -> DescribeAffectedAccountsForOrganizationPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
sourcepub fn event_arn(self, input: impl Into<String>) -> Self
pub fn event_arn(self, input: impl Into<String>) -> Self
The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
sourcepub fn set_event_arn(self, input: Option<String>) -> Self
pub fn set_event_arn(self, input: Option<String>) -> Self
The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
sourcepub fn get_event_arn(&self) -> &Option<String>
pub fn get_event_arn(&self) -> &Option<String>
The unique identifier for the event. The event ARN has the arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
format.
For example, an event ARN might look like the following:
arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If the results of a search are large, only a portion of the results are returned, and a nextToken
pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If the results of a search are large, only a portion of the results are returned, and a nextToken
pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
If the results of a search are large, only a portion of the results are returned, and a nextToken
pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of items to return in one batch, between 10 and 100, inclusive.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of items to return in one batch, between 10 and 100, inclusive.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of items to return in one batch, between 10 and 100, inclusive.
Trait Implementations§
source§impl Clone for DescribeAffectedAccountsForOrganizationFluentBuilder
impl Clone for DescribeAffectedAccountsForOrganizationFluentBuilder
source§fn clone(&self) -> DescribeAffectedAccountsForOrganizationFluentBuilder
fn clone(&self) -> DescribeAffectedAccountsForOrganizationFluentBuilder
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 DescribeAffectedAccountsForOrganizationFluentBuilder
impl !RefUnwindSafe for DescribeAffectedAccountsForOrganizationFluentBuilder
impl Send for DescribeAffectedAccountsForOrganizationFluentBuilder
impl Sync for DescribeAffectedAccountsForOrganizationFluentBuilder
impl Unpin for DescribeAffectedAccountsForOrganizationFluentBuilder
impl !UnwindSafe for DescribeAffectedAccountsForOrganizationFluentBuilder
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