Skip to content

Type definitions#

Index > CloudWatchRUM > Type definitions

Auto-generated documentation for CloudWatchRUM type annotations stubs module mypy-boto3-rum.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

AppMonitorConfigurationUnionTypeDef#

# AppMonitorConfigurationUnionTypeDef definition

AppMonitorConfigurationUnionTypeDef = Union[
    AppMonitorConfigurationTypeDef,  # (1)
    AppMonitorConfigurationOutputTypeDef,  # (2)
]
  1. See AppMonitorConfigurationTypeDef
  2. See AppMonitorConfigurationOutputTypeDef

MetricDefinitionRequestUnionTypeDef#

# MetricDefinitionRequestUnionTypeDef definition

MetricDefinitionRequestUnionTypeDef = Union[
    MetricDefinitionRequestTypeDef,  # (1)
    MetricDefinitionRequestOutputTypeDef,  # (2)
]
  1. See MetricDefinitionRequestTypeDef
  2. See MetricDefinitionRequestOutputTypeDef

AppMonitorConfigurationOutputTypeDef#

# AppMonitorConfigurationOutputTypeDef definition

class AppMonitorConfigurationOutputTypeDef(TypedDict):
    AllowCookies: NotRequired[bool],
    EnableXRay: NotRequired[bool],
    ExcludedPages: NotRequired[List[str]],
    FavoritePages: NotRequired[List[str]],
    GuestRoleArn: NotRequired[str],
    IdentityPoolId: NotRequired[str],
    IncludedPages: NotRequired[List[str]],
    SessionSampleRate: NotRequired[float],
    Telemetries: NotRequired[List[TelemetryType]],  # (1)
  1. See TelemetryType

AppMonitorConfigurationTypeDef#

# AppMonitorConfigurationTypeDef definition

class AppMonitorConfigurationTypeDef(TypedDict):
    AllowCookies: NotRequired[bool],
    EnableXRay: NotRequired[bool],
    ExcludedPages: NotRequired[Sequence[str]],
    FavoritePages: NotRequired[Sequence[str]],
    GuestRoleArn: NotRequired[str],
    IdentityPoolId: NotRequired[str],
    IncludedPages: NotRequired[Sequence[str]],
    SessionSampleRate: NotRequired[float],
    Telemetries: NotRequired[Sequence[TelemetryType]],  # (1)
  1. See TelemetryType

AppMonitorDetailsTypeDef#

# AppMonitorDetailsTypeDef definition

class AppMonitorDetailsTypeDef(TypedDict):
    id: NotRequired[str],
    name: NotRequired[str],
    version: NotRequired[str],

AppMonitorSummaryTypeDef#

# AppMonitorSummaryTypeDef definition

class AppMonitorSummaryTypeDef(TypedDict):
    Created: NotRequired[str],
    Id: NotRequired[str],
    LastModified: NotRequired[str],
    Name: NotRequired[str],
    State: NotRequired[StateEnumType],  # (1)
  1. See StateEnumType

CustomEventsTypeDef#

# CustomEventsTypeDef definition

class CustomEventsTypeDef(TypedDict):
    Status: NotRequired[CustomEventsStatusType],  # (1)
  1. See CustomEventsStatusType

MetricDefinitionRequestOutputTypeDef#

# MetricDefinitionRequestOutputTypeDef definition

class MetricDefinitionRequestOutputTypeDef(TypedDict):
    Name: str,
    DimensionKeys: NotRequired[Dict[str, str]],
    EventPattern: NotRequired[str],
    Namespace: NotRequired[str],
    UnitLabel: NotRequired[str],
    ValueKey: NotRequired[str],

MetricDefinitionTypeDef#

# MetricDefinitionTypeDef definition

class MetricDefinitionTypeDef(TypedDict):
    MetricDefinitionId: str,
    Name: str,
    DimensionKeys: NotRequired[Dict[str, str]],
    EventPattern: NotRequired[str],
    Namespace: NotRequired[str],
    UnitLabel: NotRequired[str],
    ValueKey: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

BatchDeleteRumMetricDefinitionsErrorTypeDef#

# BatchDeleteRumMetricDefinitionsErrorTypeDef definition

class BatchDeleteRumMetricDefinitionsErrorTypeDef(TypedDict):
    ErrorCode: str,
    ErrorMessage: str,
    MetricDefinitionId: str,

BatchDeleteRumMetricDefinitionsRequestRequestTypeDef#

# BatchDeleteRumMetricDefinitionsRequestRequestTypeDef definition

class BatchDeleteRumMetricDefinitionsRequestRequestTypeDef(TypedDict):
    AppMonitorName: str,
    Destination: MetricDestinationType,  # (1)
    MetricDefinitionIds: Sequence[str],
    DestinationArn: NotRequired[str],
  1. See MetricDestinationType

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

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

BatchGetRumMetricDefinitionsRequestRequestTypeDef#

# BatchGetRumMetricDefinitionsRequestRequestTypeDef definition

class BatchGetRumMetricDefinitionsRequestRequestTypeDef(TypedDict):
    AppMonitorName: str,
    Destination: MetricDestinationType,  # (1)
    DestinationArn: NotRequired[str],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
  1. See MetricDestinationType

CwLogTypeDef#

# CwLogTypeDef definition

class CwLogTypeDef(TypedDict):
    CwLogEnabled: NotRequired[bool],
    CwLogGroup: NotRequired[str],

DeleteAppMonitorRequestRequestTypeDef#

# DeleteAppMonitorRequestRequestTypeDef definition

class DeleteAppMonitorRequestRequestTypeDef(TypedDict):
    Name: str,

DeleteRumMetricsDestinationRequestRequestTypeDef#

# DeleteRumMetricsDestinationRequestRequestTypeDef definition

class DeleteRumMetricsDestinationRequestRequestTypeDef(TypedDict):
    AppMonitorName: str,
    Destination: MetricDestinationType,  # (1)
    DestinationArn: NotRequired[str],
  1. See MetricDestinationType

QueryFilterTypeDef#

# QueryFilterTypeDef definition

class QueryFilterTypeDef(TypedDict):
    Name: NotRequired[str],
    Values: NotRequired[Sequence[str]],

TimeRangeTypeDef#

# TimeRangeTypeDef definition

class TimeRangeTypeDef(TypedDict):
    After: int,
    Before: NotRequired[int],

GetAppMonitorRequestRequestTypeDef#

# GetAppMonitorRequestRequestTypeDef definition

class GetAppMonitorRequestRequestTypeDef(TypedDict):
    Name: str,

ListAppMonitorsRequestRequestTypeDef#

# ListAppMonitorsRequestRequestTypeDef definition

class ListAppMonitorsRequestRequestTypeDef(TypedDict):
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

ListRumMetricsDestinationsRequestRequestTypeDef#

# ListRumMetricsDestinationsRequestRequestTypeDef definition

class ListRumMetricsDestinationsRequestRequestTypeDef(TypedDict):
    AppMonitorName: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

MetricDestinationSummaryTypeDef#

# MetricDestinationSummaryTypeDef definition

class MetricDestinationSummaryTypeDef(TypedDict):
    Destination: NotRequired[MetricDestinationType],  # (1)
    DestinationArn: NotRequired[str],
    IamRoleArn: NotRequired[str],
  1. See MetricDestinationType

ListTagsForResourceRequestRequestTypeDef#

# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,

MetricDefinitionRequestTypeDef#

# MetricDefinitionRequestTypeDef definition

class MetricDefinitionRequestTypeDef(TypedDict):
    Name: str,
    DimensionKeys: NotRequired[Mapping[str, str]],
    EventPattern: NotRequired[str],
    Namespace: NotRequired[str],
    UnitLabel: NotRequired[str],
    ValueKey: NotRequired[str],

UserDetailsTypeDef#

# UserDetailsTypeDef definition

class UserDetailsTypeDef(TypedDict):
    sessionId: NotRequired[str],
    userId: NotRequired[str],

PutRumMetricsDestinationRequestRequestTypeDef#

# PutRumMetricsDestinationRequestRequestTypeDef definition

class PutRumMetricsDestinationRequestRequestTypeDef(TypedDict):
    AppMonitorName: str,
    Destination: MetricDestinationType,  # (1)
    DestinationArn: NotRequired[str],
    IamRoleArn: NotRequired[str],
  1. See MetricDestinationType

TagResourceRequestRequestTypeDef#

# TagResourceRequestRequestTypeDef definition

class TagResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,
    Tags: Mapping[str, str],

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef definition

class UntagResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,
    TagKeys: Sequence[str],

CreateAppMonitorRequestRequestTypeDef#

# CreateAppMonitorRequestRequestTypeDef definition

class CreateAppMonitorRequestRequestTypeDef(TypedDict):
    Domain: str,
    Name: str,
    AppMonitorConfiguration: NotRequired[AppMonitorConfigurationTypeDef],  # (1)
    CustomEvents: NotRequired[CustomEventsTypeDef],  # (2)
    CwLogEnabled: NotRequired[bool],
    Tags: NotRequired[Mapping[str, str]],
  1. See AppMonitorConfigurationTypeDef
  2. See CustomEventsTypeDef

UpdateAppMonitorRequestRequestTypeDef#

# UpdateAppMonitorRequestRequestTypeDef definition

class UpdateAppMonitorRequestRequestTypeDef(TypedDict):
    Name: str,
    AppMonitorConfiguration: NotRequired[AppMonitorConfigurationTypeDef],  # (1)
    CustomEvents: NotRequired[CustomEventsTypeDef],  # (2)
    CwLogEnabled: NotRequired[bool],
    Domain: NotRequired[str],
  1. See AppMonitorConfigurationTypeDef
  2. See CustomEventsTypeDef

BatchCreateRumMetricDefinitionsErrorTypeDef#

# BatchCreateRumMetricDefinitionsErrorTypeDef definition

class BatchCreateRumMetricDefinitionsErrorTypeDef(TypedDict):
    ErrorCode: str,
    ErrorMessage: str,
    MetricDefinition: MetricDefinitionRequestOutputTypeDef,  # (1)
  1. See MetricDefinitionRequestOutputTypeDef

BatchGetRumMetricDefinitionsResponseTypeDef#

# BatchGetRumMetricDefinitionsResponseTypeDef definition

class BatchGetRumMetricDefinitionsResponseTypeDef(TypedDict):
    MetricDefinitions: List[MetricDefinitionTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See MetricDefinitionTypeDef
  2. See ResponseMetadataTypeDef

CreateAppMonitorResponseTypeDef#

# CreateAppMonitorResponseTypeDef definition

class CreateAppMonitorResponseTypeDef(TypedDict):
    Id: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetAppMonitorDataResponseTypeDef#

# GetAppMonitorDataResponseTypeDef definition

class GetAppMonitorDataResponseTypeDef(TypedDict):
    Events: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    NextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

ListAppMonitorsResponseTypeDef#

# ListAppMonitorsResponseTypeDef definition

class ListAppMonitorsResponseTypeDef(TypedDict):
    AppMonitorSummaries: List[AppMonitorSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See AppMonitorSummaryTypeDef
  2. See ResponseMetadataTypeDef

ListTagsForResourceResponseTypeDef#

# ListTagsForResourceResponseTypeDef definition

class ListTagsForResourceResponseTypeDef(TypedDict):
    ResourceArn: str,
    Tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

BatchDeleteRumMetricDefinitionsResponseTypeDef#