HealthClient#
Auto-generated documentation for Health type annotations stubs module mypy-boto3-health.
HealthClient#
Type annotations and code completion for boto3.client("health")
.
boto3 documentation
# HealthClient usage example
from boto3.session import Session
from mypy_boto3_health.client import HealthClient
def get_health_client() -> HealthClient:
return Session().client("health")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("health").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("health")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.ConcurrentModificationException,
client.exceptions.InvalidPaginationToken,
client.exceptions.UnsupportedLocale,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_health.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("health").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("health").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
describe_affected_accounts_for_organization#
Returns a list of accounts in the organization from Organizations that are affected by the provided event.
Type annotations and code completion for boto3.client("health").describe_affected_accounts_for_organization
method.
boto3 documentation
# describe_affected_accounts_for_organization method definition
def describe_affected_accounts_for_organization(
self,
*,
eventArn: str,
nextToken: str = ...,
maxResults: int = ...,
) -> DescribeAffectedAccountsForOrganizationResponseTypeDef: # (1)
...
# describe_affected_accounts_for_organization method usage example with argument unpacking
kwargs: DescribeAffectedAccountsForOrganizationRequestRequestTypeDef = { # (1)
"eventArn": ...,
}
parent.describe_affected_accounts_for_organization(**kwargs)
describe_affected_entities#
Returns a list of entities that have been affected by the specified events, based on the specified filter criteria.
Type annotations and code completion for boto3.client("health").describe_affected_entities
method.
boto3 documentation
# describe_affected_entities method definition
def describe_affected_entities(
self,
*,
filter: EntityFilterTypeDef, # (1)
locale: str = ...,
nextToken: str = ...,
maxResults: int = ...,
) -> DescribeAffectedEntitiesResponseTypeDef: # (2)
...
# describe_affected_entities method usage example with argument unpacking
kwargs: DescribeAffectedEntitiesRequestRequestTypeDef = { # (1)
"filter": ...,
}
parent.describe_affected_entities(**kwargs)
describe_affected_entities_for_organization#
Returns a list of entities that have been affected by one or more events for one or more accounts in your organization in Organizations, based on the filter criteria.
Type annotations and code completion for boto3.client("health").describe_affected_entities_for_organization
method.
boto3 documentation
# describe_affected_entities_for_organization method definition
def describe_affected_entities_for_organization(
self,
*,
organizationEntityFilters: Sequence[EventAccountFilterTypeDef] = ..., # (1)
locale: str = ...,
nextToken: str = ...,
maxResults: int = ...,
organizationEntityAccountFilters: Sequence[EntityAccountFilterTypeDef] = ..., # (2)
) -> DescribeAffectedEntitiesForOrganizationResponseTypeDef: # (3)
...
- See EventAccountFilterTypeDef
- See EntityAccountFilterTypeDef
- See DescribeAffectedEntitiesForOrganizationResponseTypeDef
# describe_affected_entities_for_organization method usage example with argument unpacking
kwargs: DescribeAffectedEntitiesForOrganizationRequestRequestTypeDef = { # (1)
"organizationEntityFilters": ...,
}
parent.describe_affected_entities_for_organization(**kwargs)
describe_entity_aggregates#
Returns the number of entities that are affected by each of the specified events.
Type annotations and code completion for boto3.client("health").describe_entity_aggregates
method.
boto3 documentation
# describe_entity_aggregates method definition
def describe_entity_aggregates(
self,
*,
eventArns: Sequence[str] = ...,
) -> DescribeEntityAggregatesResponseTypeDef: # (1)
...
# describe_entity_aggregates method usage example with argument unpacking
kwargs: DescribeEntityAggregatesRequestRequestTypeDef = { # (1)
"eventArns": ...,
}
parent.describe_entity_aggregates(**kwargs)
describe_entity_aggregates_for_organization#
Returns a list of entity aggregates for your Organizations that are affected by each of the specified events.
Type annotations and code completion for boto3.client("health").describe_entity_aggregates_for_organization
method.
boto3 documentation
# describe_entity_aggregates_for_organization method definition
def describe_entity_aggregates_for_organization(
self,
*,
eventArns: Sequence[str],
awsAccountIds: Sequence[str] = ...,
) -> DescribeEntityAggregatesForOrganizationResponseTypeDef: # (1)
...
# describe_entity_aggregates_for_organization method usage example with argument unpacking
kwargs: DescribeEntityAggregatesForOrganizationRequestRequestTypeDef = { # (1)
"eventArns": ...,
}
parent.describe_entity_aggregates_for_organization(**kwargs)
describe_event_aggregates#
Returns the number of events of each event type (issue, scheduled change, and account notification).
Type annotations and code completion for boto3.client("health").describe_event_aggregates
method.