Struct aws_sdk_health::operation::describe_affected_accounts_for_organization::DescribeAffectedAccountsForOrganizationOutput
source · #[non_exhaustive]pub struct DescribeAffectedAccountsForOrganizationOutput {
pub affected_accounts: Option<Vec<String>>,
pub event_scope_code: Option<EventScopeCode>,
pub next_token: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.affected_accounts: Option<Vec<String>>
A JSON set of elements of the affected accounts.
event_scope_code: Option<EventScopeCode>
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
-
If the
eventScopeCode
value isPUBLIC
, then theaffectedAccounts
value is always empty. -
If the
eventScopeCode
value isACCOUNT_SPECIFIC
, then theaffectedAccounts
value lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCode
value isNONE
, then theeventArn
that you specified in the request is invalid or doesn't exist.
next_token: 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.
Implementations§
source§impl DescribeAffectedAccountsForOrganizationOutput
impl DescribeAffectedAccountsForOrganizationOutput
sourcepub fn affected_accounts(&self) -> &[String]
pub fn affected_accounts(&self) -> &[String]
A JSON set of elements of the affected accounts.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .affected_accounts.is_none()
.
sourcepub fn event_scope_code(&self) -> Option<&EventScopeCode>
pub fn event_scope_code(&self) -> Option<&EventScopeCode>
This parameter specifies if the Health event is a public Amazon Web Service event or an account-specific event.
-
If the
eventScopeCode
value isPUBLIC
, then theaffectedAccounts
value is always empty. -
If the
eventScopeCode
value isACCOUNT_SPECIFIC
, then theaffectedAccounts
value lists the affected Amazon Web Services accounts in your organization. For example, if an event affects a service such as Amazon Elastic Compute Cloud and you have Amazon Web Services accounts that use that service, those account IDs appear in the response. -
If the
eventScopeCode
value isNONE
, then theeventArn
that you specified in the request is invalid or doesn't exist.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
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.
source§impl DescribeAffectedAccountsForOrganizationOutput
impl DescribeAffectedAccountsForOrganizationOutput
sourcepub fn builder() -> DescribeAffectedAccountsForOrganizationOutputBuilder
pub fn builder() -> DescribeAffectedAccountsForOrganizationOutputBuilder
Creates a new builder-style object to manufacture DescribeAffectedAccountsForOrganizationOutput
.
Trait Implementations§
source§impl Clone for DescribeAffectedAccountsForOrganizationOutput
impl Clone for DescribeAffectedAccountsForOrganizationOutput
source§fn clone(&self) -> DescribeAffectedAccountsForOrganizationOutput
fn clone(&self) -> DescribeAffectedAccountsForOrganizationOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DescribeAffectedAccountsForOrganizationOutput
impl PartialEq for DescribeAffectedAccountsForOrganizationOutput
source§fn eq(&self, other: &DescribeAffectedAccountsForOrganizationOutput) -> bool
fn eq(&self, other: &DescribeAffectedAccountsForOrganizationOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for DescribeAffectedAccountsForOrganizationOutput
impl RequestId for DescribeAffectedAccountsForOrganizationOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for DescribeAffectedAccountsForOrganizationOutput
Auto Trait Implementations§
impl Freeze for DescribeAffectedAccountsForOrganizationOutput
impl RefUnwindSafe for DescribeAffectedAccountsForOrganizationOutput
impl Send for DescribeAffectedAccountsForOrganizationOutput
impl Sync for DescribeAffectedAccountsForOrganizationOutput
impl Unpin for DescribeAffectedAccountsForOrganizationOutput
impl UnwindSafe for DescribeAffectedAccountsForOrganizationOutput
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