Skip to content

Type definitions#

Index > Health > Type definitions

Auto-generated documentation for Health type annotations stubs module mypy-boto3-health.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

AccountEntityAggregateTypeDef#

# AccountEntityAggregateTypeDef definition

class AccountEntityAggregateTypeDef(TypedDict):
    accountId: NotRequired[str],
    count: NotRequired[int],
    statuses: NotRequired[Dict[entityStatusCodeType, int]],  # (1)
  1. See entityStatusCodeType

AffectedEntityTypeDef#

# AffectedEntityTypeDef definition

class AffectedEntityTypeDef(TypedDict):
    entityArn: NotRequired[str],
    eventArn: NotRequired[str],
    entityValue: NotRequired[str],
    entityUrl: NotRequired[str],
    awsAccountId: NotRequired[str],
    lastUpdatedTime: NotRequired[datetime],
    statusCode: NotRequired[entityStatusCodeType],  # (1)
    tags: NotRequired[Dict[str, str]],
  1. See entityStatusCodeType

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

DescribeAffectedAccountsForOrganizationRequestRequestTypeDef#

# DescribeAffectedAccountsForOrganizationRequestRequestTypeDef definition

class DescribeAffectedAccountsForOrganizationRequestRequestTypeDef(TypedDict):
    eventArn: str,
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

EntityAccountFilterTypeDef#

# EntityAccountFilterTypeDef definition

class EntityAccountFilterTypeDef(TypedDict):
    eventArn: str,
    awsAccountId: NotRequired[str],
    statusCodes: NotRequired[Sequence[entityStatusCodeType]],  # (1)
  1. See entityStatusCodeType

EventAccountFilterTypeDef#

# EventAccountFilterTypeDef definition

class EventAccountFilterTypeDef(TypedDict):
    eventArn: str,
    awsAccountId: NotRequired[str],

OrganizationAffectedEntitiesErrorItemTypeDef#

# OrganizationAffectedEntitiesErrorItemTypeDef definition

class OrganizationAffectedEntitiesErrorItemTypeDef(TypedDict):
    awsAccountId: NotRequired[str],
    eventArn: NotRequired[str],
    errorName: NotRequired[str],
    errorMessage: NotRequired[str],

DescribeEntityAggregatesForOrganizationRequestRequestTypeDef#

# DescribeEntityAggregatesForOrganizationRequestRequestTypeDef definition

class DescribeEntityAggregatesForOrganizationRequestRequestTypeDef(TypedDict):
    eventArns: Sequence[str],
    awsAccountIds: NotRequired[Sequence[str]],

DescribeEntityAggregatesRequestRequestTypeDef#

# DescribeEntityAggregatesRequestRequestTypeDef definition

class DescribeEntityAggregatesRequestRequestTypeDef(TypedDict):
    eventArns: NotRequired[Sequence[str]],

EntityAggregateTypeDef#

# EntityAggregateTypeDef definition

class EntityAggregateTypeDef(TypedDict):
    eventArn: NotRequired[str],
    count: NotRequired[int],
    statuses: NotRequired[Dict[entityStatusCodeType, int]],  # (1)
  1. See entityStatusCodeType

EventAggregateTypeDef#

# EventAggregateTypeDef definition

class EventAggregateTypeDef(TypedDict):
    aggregateValue: NotRequired[str],
    count: NotRequired[int],

OrganizationEventDetailsErrorItemTypeDef#

# OrganizationEventDetailsErrorItemTypeDef definition

class OrganizationEventDetailsErrorItemTypeDef(TypedDict):
    awsAccountId: NotRequired[str],
    eventArn: NotRequired[str],
    errorName: NotRequired[str],
    errorMessage: NotRequired[str],

DescribeEventDetailsRequestRequestTypeDef#

# DescribeEventDetailsRequestRequestTypeDef definition

class DescribeEventDetailsRequestRequestTypeDef(TypedDict):
    eventArns: Sequence[str],
    locale: NotRequired[str],

EventDetailsErrorItemTypeDef#

# EventDetailsErrorItemTypeDef definition

class EventDetailsErrorItemTypeDef(TypedDict):
    eventArn: NotRequired[str],
    errorName: NotRequired[str],
    errorMessage: NotRequired[str],

EventTypeFilterTypeDef#

# EventTypeFilterTypeDef definition

class EventTypeFilterTypeDef(TypedDict):
    eventTypeCodes: NotRequired[Sequence[str]],
    services: NotRequired[Sequence[str]],
    eventTypeCategories: NotRequired[Sequence[eventTypeCategoryType]],  # (1)
  1. See eventTypeCategoryType

EventTypeTypeDef#

# EventTypeTypeDef definition

class EventTypeTypeDef(TypedDict):
    service: NotRequired[str],
    code: NotRequired[str],
    category: NotRequired[eventTypeCategoryType],  # (1)
  1. See eventTypeCategoryType

OrganizationEventTypeDef#

# OrganizationEventTypeDef definition

class OrganizationEventTypeDef(TypedDict):
    arn: NotRequired[str],
    service: NotRequired[str],
    eventTypeCode: NotRequired[str],
    eventTypeCategory: NotRequired[eventTypeCategoryType],  # (1)
    eventScopeCode: NotRequired[eventScopeCodeType],  # (2)
    region: NotRequired[str],
    startTime: NotRequired[datetime],
    endTime: NotRequired[datetime],
    lastUpdatedTime: NotRequired[datetime],
    statusCode: NotRequired[eventStatusCodeType],  # (3)
  1. See eventTypeCategoryType
  2. See eventScopeCodeType
  3. See eventStatusCodeType

EventTypeDef#

# EventTypeDef definition

class EventTypeDef(TypedDict):
    arn: NotRequired[str],
    service: NotRequired[str],
    eventTypeCode: NotRequired[str],
    eventTypeCategory: NotRequired[eventTypeCategoryType],  # (1)
    region: NotRequired[str],
    availabilityZone: NotRequired[str],
    startTime: NotRequired[datetime],
    endTime: NotRequired[datetime],
    lastUpdatedTime: NotRequired[datetime],
    statusCode: NotRequired[eventStatusCodeType],  # (2)
    eventScopeCode: NotRequired[eventScopeCodeType],  # (3)
  1. See eventTypeCategoryType
  2. See eventStatusCodeType
  3. See eventScopeCodeType

EventDescriptionTypeDef#

# EventDescriptionTypeDef definition

class EventDescriptionTypeDef(TypedDict):
    latestDescription: NotRequired[str],

OrganizationEntityAggregateTypeDef#

# OrganizationEntityAggregateTypeDef definition

class OrganizationEntityAggregateTypeDef(TypedDict):
    eventArn: NotRequired[str],
    count: NotRequired[int],
    statuses: NotRequired[Dict[entityStatusCodeType, int]],  # (1)
    accounts: NotRequired[List[AccountEntityAggregateTypeDef]],  # (2)
  1. See entityStatusCodeType
  2. See AccountEntityAggregateTypeDef

DateTimeRangeTypeDef#

# DateTimeRangeTypeDef definition

class DateTimeRangeTypeDef(TypedDict):
    from: NotRequired[Union[datetime, str]],
    to: NotRequired[Union[datetime, str]],

DescribeAffectedAccountsForOrganizationRequestDescribeAffectedAccountsForOrganizationPaginateTypeDef#

# DescribeAffectedAccountsForOrganizationRequestDescribeAffectedAccountsForOrganizationPaginateTypeDef definition

class DescribeAffectedAccountsForOrganizationRequestDescribeAffectedAccountsForOrganizationPaginateTypeDef(TypedDict):
    eventArn: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeAffectedAccountsForOrganizationResponseTypeDef#

# DescribeAffectedAccountsForOrganizationResponseTypeDef definition

class DescribeAffectedAccountsForOrganizationResponseTypeDef(TypedDict):
    affectedAccounts: List[str],
    eventScopeCode: eventScopeCodeType,  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See eventScopeCodeType
  2. See ResponseMetadataTypeDef

DescribeAffectedEntitiesResponseTypeDef#

# DescribeAffectedEntitiesResponseTypeDef definition

class DescribeAffectedEntitiesResponseTypeDef(TypedDict):
    entities: List[AffectedEntityTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AffectedEntityTypeDef
  2. See ResponseMetadataTypeDef

DescribeHealthServiceStatusForOrganizationResponseTypeDef#

# DescribeHealthServiceStatusForOrganizationResponseTypeDef definition

class DescribeHealthServiceStatusForOrganizationResponseTypeDef(TypedDict):
    healthServiceAccessStatusForOrganization: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EmptyResponseMetadataTypeDef#

# EmptyResponseMetadataTypeDef definition

class EmptyResponseMetadataTypeDef(TypedDict):
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DescribeAffectedEntitiesForOrganizationRequestDescribeAffectedEntitiesForOrganizationPaginateTypeDef#

# DescribeAffectedEntitiesForOrganizationRequestDescribeAffectedEntitiesForOrganizationPaginateTypeDef definition

class DescribeAffectedEntitiesForOrganizationRequestDescribeAffectedEntitiesForOrganizationPaginateTypeDef(TypedDict):
    organizationEntityFilters: NotRequired[Sequence[EventAccountFilterTypeDef]],  # (1)
    locale: NotRequired[str],
    organizationEntityAccountFilters: NotRequired[Sequence[EntityAccountFilterTypeDef]],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See EventAccountFilterTypeDef
  2. See EntityAccountFilterTypeDef
  3. See PaginatorConfigTypeDef

DescribeAffectedEntitiesForOrganizationRequestRequestTypeDef#

# DescribeAffectedEntitiesForOrganizationRequestRequestTypeDef definition

class DescribeAffectedEntitiesForOrganizationRequestRequestTypeDef(TypedDict):
    organizationEntityFilters: NotRequired[Sequence[EventAccountFilterTypeDef]],  # (1)
    locale: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
    organizationEntityAccountFilters: NotRequired[Sequence[EntityAccountFilterTypeDef]],  # (2)
  1. See EventAccountFilterTypeDef
  2. See EntityAccountFilterTypeDef

DescribeEventDetailsForOrganizationRequestRequestTypeDef#

# DescribeEventDetailsForOrganizationRequestRequestTypeDef definition

class DescribeEventDetailsForOrganizationRequestRequestTypeDef(TypedDict):
    organizationEventDetailFilters: Sequence[EventAccountFilterTypeDef],  # (1)
    locale: NotRequired[str],
  1. See EventAccountFilterTypeDef

DescribeAffectedEntitiesForOrganizationResponseTypeDef#

# DescribeAffectedEntitiesForOrganizationResponseTypeDef definition

class DescribeAffectedEntitiesForOrganizationResponseTypeDef(TypedDict):
    entities: List[AffectedEntityTypeDef],  # (1)
    failedSet: List[OrganizationAffectedEntitiesErrorItemTypeDef],  # (2)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See AffectedEntityTypeDef
  2. See OrganizationAffectedEntitiesErrorItemTypeDef
  3. See ResponseMetadataTypeDef

DescribeEntityAggregatesResponseTypeDef#

# DescribeEntityAggregatesResponseTypeDef definition

class DescribeEntityAggregatesResponseTypeDef(TypedDict):
    entityAggregates: List[EntityAggregateTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EntityAggregateTypeDef
  2. See ResponseMetadataTypeDef

DescribeEventAggregatesResponseTypeDef#

# DescribeEventAggregatesResponseTypeDef definition

class DescribeEventAggregatesResponseTypeDef(TypedDict):
    eventAggregates: List[EventAggregateTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EventAggregateTypeDef
  2. See ResponseMetadataTypeDef

DescribeEventTypesRequestDescribeEventTypesPaginateTypeDef#

# DescribeEventTypesRequestDescribeEventTypesPaginateTypeDef definition

class DescribeEventTypesRequestDescribeEventTypesPaginateTypeDef(TypedDict):
    filter: NotRequired[EventTypeFilterTypeDef],  # (1)
    locale: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See EventTypeFilterTypeDef
  2. See PaginatorConfigTypeDef

DescribeEventTypesRequestRequestTypeDef#

# DescribeEventTypesRequestRequestTypeDef definition

class DescribeEventTypesRequestRequestTypeDef(TypedDict):
    filter: NotRequired[EventTypeFilterTypeDef],  # (1)
    locale: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See EventTypeFilterTypeDef

DescribeEventTypesResponseTypeDef#

# DescribeEventTypesResponseTypeDef definition

class DescribeEventTypesResponseTypeDef(TypedDict):
    eventTypes: List[EventTypeTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EventTypeTypeDef
  2. See ResponseMetadataTypeDef

DescribeEventsForOrganizationResponseTypeDef#

# DescribeEventsForOrganizationResponseTypeDef definition

class DescribeEventsForOrganizationResponseTypeDef(TypedDict):
    events: List[OrganizationEventTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See OrganizationEventTypeDef
  2. See ResponseMetadataTypeDef

DescribeEventsResponseTypeDef#

# DescribeEventsResponseTypeDef definition

class DescribeEventsResponseTypeDef(TypedDict):
    events: List[EventTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EventTypeDef
  2. See ResponseMetadataTypeDef

EventDetailsTypeDef#

# EventDetailsTypeDef definition

class EventDetailsTypeDef(TypedDict):
    event: NotRequired[EventTypeDef],  # (1)
    eventDescription: NotRequired[EventDescriptionTypeDef],  # (2)
    eventMetadata: NotRequired[Dict[str, str]],
  1. See EventTypeDef
  2. See EventDescriptionTypeDef

OrganizationEventDetailsTypeDef#

# OrganizationEventDetailsTypeDef definition

class OrganizationEventDetailsTypeDef(TypedDict):
    awsAccountId: NotRequired[str],
    event: NotRequired[EventTypeDef],  # (1)
    eventDescription: NotRequired[EventDescriptionTypeDef],  # (2)
    eventMetadata: NotRequired[Dict[str, str]],
  1. See EventTypeDef
  2. See EventDescriptionTypeDef

DescribeEntityAggregatesForOrganizationResponseTypeDef#

# DescribeEntityAggregatesForOrganizationResponseTypeDef definition

class DescribeEntityAggregatesForOrganizationResponseTypeDef(TypedDict):
    organizationEntityAggregates: List[OrganizationEntityAggregateTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See OrganizationEntityAggregateTypeDef
  2. See ResponseMetadataTypeDef

EntityFilterTypeDef#

# EntityFilterTypeDef definition

class EntityFilterTypeDef(TypedDict):
    eventArns: Sequence[str],
    entityArns: NotRequired[Sequence[str]],
    entityValues: NotRequired[Sequence[str]],
    lastUpdatedTimes: NotRequired[Sequence[DateTimeRangeTypeDef]],  # (1)
    tags: NotRequired[Sequence[Mapping[str, str]]],
    statusCodes: NotRequired[Sequence[entityStatusCodeType]],  # (2)
  1. See DateTimeRangeTypeDef
  2. See entityStatusCodeType

EventFilterTypeDef#

# EventFilterTypeDef definition

class EventFilterTypeDef(TypedDict):
    eventArns: NotRequired[Sequence[str]],
    eventTypeCodes: NotRequired[Sequence[str]],
    services: NotRequired[Sequence[str]],
    regions: NotRequired[Sequence[str]],
    availabilityZones: NotRequired[Sequence[str]],
    startTimes: NotRequired[Sequence[DateTimeRangeTypeDef]],  # (1)
    endTimes: NotRequired[Sequence[DateTimeRangeTypeDef]],  # (1)
    lastUpdatedTimes: NotRequired[Sequence[DateTimeRangeTypeDef]],  # (1)
    entityArns: NotRequired[Sequence[str]],
    entityValues: NotRequired[Sequence[str]],
    eventTypeCategories: NotRequired[Sequence[eventTypeCategoryType]],  # (4)
    tags: NotRequired[Sequence[Mapping[str, str]]],
    eventStatusCodes: NotRequired[Sequence[eventStatusCodeType]],  # (5)
  1. See DateTimeRangeTypeDef
  2. See DateTimeRangeTypeDef
  3. See DateTimeRangeTypeDef
  4. See eventTypeCategoryType
  5. See eventStatusCodeType

OrganizationEventFilterTypeDef#

# OrganizationEventFilterTypeDef definition

class OrganizationEventFilterTypeDef(TypedDict):
    eventTypeCodes: NotRequired[Sequence[str]],
    awsAccountIds: NotRequired[Sequence[str]],
    services: NotRequired[Sequence[str]],
    regions: NotRequired[Sequence[str]],
    startTime: NotRequired[DateTimeRangeTypeDef],  # (1)
    endTime: NotRequired[DateTimeRangeTypeDef],  # (1)
    lastUpdatedTime: NotRequired[DateTimeRangeTypeDef],  # (1)
    entityArns: NotRequired[Sequence[str]],
    entityValues: NotRequired[Sequence[str]],
    eventTypeCategories: NotRequired[Sequence[eventTypeCategoryType]],  # (4)
    eventStatusCodes: NotRequired[Sequence[eventStatusCodeType]],  # (5)
  1. See DateTimeRangeTypeDef
  2. See DateTimeRangeTypeDef
  3. See DateTimeRangeTypeDef
  4. See eventTypeCategoryType
  5. See eventStatusCodeType

DescribeEventDetailsResponseTypeDef#

# DescribeEventDetailsResponseTypeDef definition

class DescribeEventDetailsResponseTypeDef(TypedDict):
    successfulSet: List[EventDetailsTypeDef],  # (1)
    failedSet: List[EventDetailsErrorItemTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See EventDetailsTypeDef
  2. See EventDetailsErrorItemTypeDef
  3. See ResponseMetadataTypeDef

DescribeEventDetailsForOrganizationResponseTypeDef#

# DescribeEventDetailsForOrganizationResponseTypeDef definition

class DescribeEventDetailsForOrganizationResponseTypeDef(TypedDict):
    successfulSet: List[OrganizationEventDetailsTypeDef],  # (1)
    failedSet: List[OrganizationEventDetailsErrorItemTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See OrganizationEventDetailsTypeDef
  2. See OrganizationEventDetailsErrorItemTypeDef
  3. See ResponseMetadataTypeDef

DescribeAffectedEntitiesRequestDescribeAffectedEntitiesPaginateTypeDef#

# DescribeAffectedEntitiesRequestDescribeAffectedEntitiesPaginateTypeDef definition

class DescribeAffectedEntitiesRequestDescribeAffectedEntitiesPaginateTypeDef(TypedDict):
    filter: EntityFilterTypeDef,  # (1)
    locale: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See EntityFilterTypeDef
  2. See PaginatorConfigTypeDef

DescribeAffectedEntitiesRequestRequestTypeDef#

# DescribeAffectedEntitiesRequestRequestTypeDef definition

class DescribeAffectedEntitiesRequestRequestTypeDef(TypedDict):
    filter: EntityFilterTypeDef,  # (1)
    locale: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See EntityFilterTypeDef

DescribeEventAggregatesRequestDescribeEventAggregatesPaginateTypeDef#

# DescribeEventAggregatesRequestDescribeEventAggregatesPaginateTypeDef definition

class DescribeEventAggregatesRequestDescribeEventAggregatesPaginateTypeDef(TypedDict):
    aggregateField: eventAggregateFieldType,  # (1)
    filter: NotRequired[EventFilterTypeDef],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See