Type definitions#
Index > CloudWatchLogs > Type definitions
Auto-generated documentation for CloudWatchLogs type annotations stubs module mypy-boto3-logs.
MetricTransformationUnionTypeDef#
# MetricTransformationUnionTypeDef definition
MetricTransformationUnionTypeDef = Union[
MetricTransformationTypeDef, # (1)
MetricTransformationOutputTypeDef, # (2)
]
AccountPolicyTypeDef#
# AccountPolicyTypeDef definition
class AccountPolicyTypeDef(TypedDict):
policyName: NotRequired[str],
policyDocument: NotRequired[str],
lastUpdatedTime: NotRequired[int],
policyType: NotRequired[PolicyTypeType], # (1)
scope: NotRequired[ScopeType], # (2)
selectionCriteria: NotRequired[str],
accountId: NotRequired[str],
- See PolicyTypeType
- See ScopeType
AnomalyDetectorTypeDef#
# AnomalyDetectorTypeDef definition
class AnomalyDetectorTypeDef(TypedDict):
anomalyDetectorArn: NotRequired[str],
detectorName: NotRequired[str],
logGroupArnList: NotRequired[List[str]],
evaluationFrequency: NotRequired[EvaluationFrequencyType], # (1)
filterPattern: NotRequired[str],
anomalyDetectorStatus: NotRequired[AnomalyDetectorStatusType], # (2)
kmsKeyId: NotRequired[str],
creationTimeStamp: NotRequired[int],
lastModifiedTimeStamp: NotRequired[int],
anomalyVisibilityTime: NotRequired[int],
LogEventTypeDef#
# LogEventTypeDef definition
class LogEventTypeDef(TypedDict):
timestamp: NotRequired[int],
message: NotRequired[str],
PatternTokenTypeDef#
# PatternTokenTypeDef definition
class PatternTokenTypeDef(TypedDict):
dynamicTokenPosition: NotRequired[int],
isDynamic: NotRequired[bool],
tokenString: NotRequired[str],
enumerations: NotRequired[Dict[str, int]],
inferredTokenName: NotRequired[str],
AssociateKmsKeyRequestRequestTypeDef#
# AssociateKmsKeyRequestRequestTypeDef definition
class AssociateKmsKeyRequestRequestTypeDef(TypedDict):
kmsKeyId: str,
logGroupName: NotRequired[str],
resourceIdentifier: NotRequired[str],
CancelExportTaskRequestRequestTypeDef#
# CancelExportTaskRequestRequestTypeDef definition
class CancelExportTaskRequestRequestTypeDef(TypedDict):
taskId: str,
S3DeliveryConfigurationTypeDef#
# S3DeliveryConfigurationTypeDef definition
class S3DeliveryConfigurationTypeDef(TypedDict):
suffixPath: NotRequired[str],
enableHiveCompatiblePath: NotRequired[bool],
RecordFieldTypeDef#
# RecordFieldTypeDef definition
class RecordFieldTypeDef(TypedDict):
name: NotRequired[str],
mandatory: NotRequired[bool],
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
CreateExportTaskRequestRequestTypeDef#
# CreateExportTaskRequestRequestTypeDef definition
class CreateExportTaskRequestRequestTypeDef(TypedDict):
logGroupName: str,
fromTime: int,
to: int,
destination: str,
taskName: NotRequired[str],
logStreamNamePrefix: NotRequired[str],
destinationPrefix: NotRequired[str],
CreateLogAnomalyDetectorRequestRequestTypeDef#
# CreateLogAnomalyDetectorRequestRequestTypeDef definition
class CreateLogAnomalyDetectorRequestRequestTypeDef(TypedDict):
logGroupArnList: Sequence[str],
detectorName: NotRequired[str],
evaluationFrequency: NotRequired[EvaluationFrequencyType], # (1)
filterPattern: NotRequired[str],
kmsKeyId: NotRequired[str],
anomalyVisibilityTime: NotRequired[int],
tags: NotRequired[Mapping[str, str]],
CreateLogGroupRequestRequestTypeDef#
# CreateLogGroupRequestRequestTypeDef definition
class CreateLogGroupRequestRequestTypeDef(TypedDict):
logGroupName: str,
kmsKeyId: NotRequired[str],
tags: NotRequired[Mapping[str, str]],
logGroupClass: NotRequired[LogGroupClassType], # (1)
CreateLogStreamRequestRequestTypeDef#
# CreateLogStreamRequestRequestTypeDef definition
class CreateLogStreamRequestRequestTypeDef(TypedDict):
logGroupName: str,
logStreamName: str,
DeleteAccountPolicyRequestRequestTypeDef#
# DeleteAccountPolicyRequestRequestTypeDef definition
class DeleteAccountPolicyRequestRequestTypeDef(TypedDict):
policyName: str,
policyType: PolicyTypeType, # (1)
- See PolicyTypeType
DeleteDataProtectionPolicyRequestRequestTypeDef#
# DeleteDataProtectionPolicyRequestRequestTypeDef definition
class DeleteDataProtectionPolicyRequestRequestTypeDef(TypedDict):
logGroupIdentifier: str,
DeleteDeliveryDestinationPolicyRequestRequestTypeDef#
# DeleteDeliveryDestinationPolicyRequestRequestTypeDef definition
class DeleteDeliveryDestinationPolicyRequestRequestTypeDef(TypedDict):
deliveryDestinationName: str,
DeleteDeliveryDestinationRequestRequestTypeDef#
# DeleteDeliveryDestinationRequestRequestTypeDef definition
class DeleteDeliveryDestinationRequestRequestTypeDef(TypedDict):
name: str,
DeleteDeliveryRequestRequestTypeDef#
# DeleteDeliveryRequestRequestTypeDef definition
class DeleteDeliveryRequestRequestTypeDef(TypedDict):
id: str,
DeleteDeliverySourceRequestRequestTypeDef#
# DeleteDeliverySourceRequestRequestTypeDef definition
class DeleteDeliverySourceRequestRequestTypeDef(TypedDict):
name: str,
DeleteDestinationRequestRequestTypeDef#
# DeleteDestinationRequestRequestTypeDef definition
class DeleteDestinationRequestRequestTypeDef(TypedDict):
destinationName: str,
DeleteLogAnomalyDetectorRequestRequestTypeDef#
# DeleteLogAnomalyDetectorRequestRequestTypeDef definition
class DeleteLogAnomalyDetectorRequestRequestTypeDef(TypedDict):
anomalyDetectorArn: str,
DeleteLogGroupRequestRequestTypeDef#
# DeleteLogGroupRequestRequestTypeDef definition
class DeleteLogGroupRequestRequestTypeDef(TypedDict):
logGroupName: str,
DeleteLogStreamRequestRequestTypeDef#
# DeleteLogStreamRequestRequestTypeDef definition
class DeleteLogStreamRequestRequestTypeDef(TypedDict):
logGroupName: str,
logStreamName: str,
DeleteMetricFilterRequestRequestTypeDef#
# DeleteMetricFilterRequestRequestTypeDef definition
class DeleteMetricFilterRequestRequestTypeDef(TypedDict):
logGroupName: str,
filterName: str,
DeleteQueryDefinitionRequestRequestTypeDef#
# DeleteQueryDefinitionRequestRequestTypeDef definition
class DeleteQueryDefinitionRequestRequestTypeDef(TypedDict):
queryDefinitionId: str,
DeleteResourcePolicyRequestRequestTypeDef#
# DeleteResourcePolicyRequestRequestTypeDef definition
class DeleteResourcePolicyRequestRequestTypeDef(TypedDict):
policyName: NotRequired[str],
DeleteRetentionPolicyRequestRequestTypeDef#
# DeleteRetentionPolicyRequestRequestTypeDef definition
class DeleteRetentionPolicyRequestRequestTypeDef(TypedDict):
logGroupName: str,
DeleteSubscriptionFilterRequestRequestTypeDef#
# DeleteSubscriptionFilterRequestRequestTypeDef definition
class DeleteSubscriptionFilterRequestRequestTypeDef(TypedDict):
logGroupName: str,
filterName: str,
DeliveryDestinationConfigurationTypeDef#
# DeliveryDestinationConfigurationTypeDef definition
class DeliveryDestinationConfigurationTypeDef(TypedDict):
destinationResourceArn: str,
DeliverySourceTypeDef#
# DeliverySourceTypeDef definition
class DeliverySourceTypeDef(TypedDict):
name: NotRequired[str],
arn: NotRequired[str],
resourceArns: NotRequired[List[str]],
service: NotRequired[str],
logType: NotRequired[str],
tags: NotRequired[Dict[str, str]],
DescribeAccountPoliciesRequestRequestTypeDef#
# DescribeAccountPoliciesRequestRequestTypeDef definition
class DescribeAccountPoliciesRequestRequestTypeDef(TypedDict):
policyType: PolicyTypeType, # (1)
policyName: NotRequired[str],
accountIdentifiers: NotRequired[Sequence[str]],
- See PolicyTypeType
PaginatorConfigTypeDef#
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
DescribeConfigurationTemplatesRequestRequestTypeDef#
# DescribeConfigurationTemplatesRequestRequestTypeDef definition
class DescribeConfigurationTemplatesRequestRequestTypeDef(TypedDict):
service: NotRequired[str],
logTypes: NotRequired[Sequence[str]],
resourceTypes: NotRequired[Sequence[str]],
deliveryDestinationTypes: NotRequired[Sequence[DeliveryDestinationTypeType]], # (1)
nextToken: NotRequired[str],
limit: NotRequired[int],
DescribeDeliveriesRequestRequestTypeDef#
# DescribeDeliveriesRequestRequestTypeDef definition
class DescribeDeliveriesRequestRequestTypeDef(TypedDict):
nextToken: NotRequired[str],
limit: NotRequired[int],
DescribeDeliveryDestinationsRequestRequestTypeDef#
# DescribeDeliveryDestinationsRequestRequestTypeDef definition
class DescribeDeliveryDestinationsRequestRequestTypeDef(TypedDict):
nextToken: NotRequired[str],
limit: NotRequired[int],
DescribeDeliverySourcesRequestRequestTypeDef#
# DescribeDeliverySourcesRequestRequestTypeDef definition
class DescribeDeliverySourcesRequestRequestTypeDef(TypedDict):
nextToken: NotRequired[str],
limit: NotRequired[int],
DescribeDestinationsRequestRequestTypeDef#
# DescribeDestinationsRequestRequestTypeDef definition
class DescribeDestinationsRequestRequestTypeDef(TypedDict):
DestinationNamePrefix: NotRequired[str],
nextToken: NotRequired[str],
limit: NotRequired[int],
DestinationTypeDef#
# DestinationTypeDef definition
class DestinationTypeDef(TypedDict):
destinationName: NotRequired[str],
targetArn: NotRequired[str],
roleArn: NotRequired[str],
accessPolicy: NotRequired[str],
arn: NotRequired[str],
creationTime: NotRequired[int],
DescribeExportTasksRequestRequestTypeDef#
# DescribeExportTasksRequestRequestTypeDef definition
class DescribeExportTasksRequestRequestTypeDef(TypedDict):
taskId: NotRequired[str],
statusCode: NotRequired[ExportTaskStatusCodeType], # (1)
nextToken: NotRequired[str],
limit: NotRequired[int],
DescribeLogGroupsRequestRequestTypeDef#
# DescribeLogGroupsRequestRequestTypeDef definition
class DescribeLogGroupsRequestRequestTypeDef(TypedDict):
accountIdentifiers: NotRequired[Sequence[str]],
logGroupNamePrefix: NotRequired[str],
logGroupNamePattern: NotRequired[str],
nextToken: NotRequired[str],
limit: NotRequired[int],
includeLinkedAccounts: NotRequired[bool],
logGroupClass: NotRequired[LogGroupClassType], # (1)
LogGroupTypeDef#
# LogGroupTypeDef definition
class LogGroupTypeDef(TypedDict):
logGroupName: NotRequired[str],
creationTime: NotRequired[int],
retentionInDays: NotRequired[int],
metricFilterCount: NotRequired[int],
arn: NotRequired[str],
storedBytes: NotRequired[int],
kmsKeyId: NotRequired[str],
dataProtectionStatus: NotRequired[DataProtectionStatusType], # (1)
inheritedProperties: NotRequired[List[InheritedPropertyType]], # (2)
logGroupClass: NotRequired[LogGroupClassType], # (3)
logGroupArn: NotRequired[str],
DescribeLogStreamsRequestRequestTypeDef#
# DescribeLogStreamsRequestRequestTypeDef definition
class DescribeLogStreamsRequestRequestTypeDef(TypedDict):
logGroupName: NotRequired[str],
logGroupIdentifier: NotRequired[str],
logStreamNamePrefix: NotRequired[str],
orderBy: NotRequired[OrderByType], # (1)
descending: NotRequired[bool],
nextToken: NotRequired[str],
limit: NotRequired[int],
- See OrderByType
LogStreamTypeDef#
# LogStreamTypeDef definition
class LogStreamTypeDef(TypedDict):
logStreamName: NotRequired[str],
creationTime: NotRequired[int],
firstEventTimestamp: NotRequired[int],
lastEventTimestamp: NotRequired[int],
lastIngestionTime: NotRequired[int],
uploadSequenceToken: NotRequired[str],
arn: NotRequired[str],
storedBytes: NotRequired[int],
DescribeMetricFiltersRequestRequestTypeDef#
# DescribeMetricFiltersRequestRequestTypeDef definition
class DescribeMetricFiltersRequestRequestTypeDef(TypedDict):
logGroupName: NotRequired[str],
filterNamePrefix: NotRequired[str],
nextToken: NotRequired[str],
limit: NotRequired[int],
metricName: NotRequired[str],
metricNamespace: NotRequired[str],
DescribeQueriesRequestRequestTypeDef#
# DescribeQueriesRequestRequestTypeDef definition
class DescribeQueriesRequestRequestTypeDef(TypedDict):
logGroupName: NotRequired[str],
status: NotRequired[QueryStatusType], # (1)
maxResults: NotRequired[int],
nextToken: NotRequired[str],
- See QueryStatusType
QueryInfoTypeDef#
# QueryInfoTypeDef definition
class QueryInfoTypeDef(TypedDict):
queryId: NotRequired[str],
queryString: NotRequired[str],
status: NotRequired[QueryStatusType], # (1)
createTime: NotRequired[int],
logGroupName: NotRequired[str],
- See QueryStatusType
DescribeQueryDefinitionsRequestRequestTypeDef#
# DescribeQueryDefinitionsRequestRequestTypeDef definition
class DescribeQueryDefinitionsRequestRequestTypeDef(TypedDict):
queryDefinitionNamePrefix: NotRequired[str],
maxResults: NotRequired[int],
nextToken: NotRequired[str],
QueryDefinitionTypeDef#
# QueryDefinitionTypeDef definition
class QueryDefinitionTypeDef(TypedDict):
queryDefinitionId: NotRequired[str],
name: NotRequired[str],
queryString: NotRequired[str],
lastModified: NotRequired[int],
logGroupNames: NotRequired[List[str]],
DescribeResourcePoliciesRequestRequestTypeDef#
# DescribeResourcePoliciesRequestRequestTypeDef definition
class DescribeResourcePoliciesRequestRequestTypeDef(TypedDict):
nextToken: NotRequired[str],
limit: NotRequired[int],
ResourcePolicyTypeDef#
# ResourcePolicyTypeDef definition
class ResourcePolicyTypeDef(TypedDict):
policyName: NotRequired[str],
policyDocument: NotRequired[str],
lastUpdatedTime: NotRequired[int],
DescribeSubscriptionFiltersRequestRequestTypeDef#
# DescribeSubscriptionFiltersRequestRequestTypeDef definition
class DescribeSubscriptionFiltersRequestRequestTypeDef(TypedDict):
logGroupName: str,
filterNamePrefix: NotRequired[str],
nextToken: NotRequired[str],
limit: NotRequired[int],
SubscriptionFilterTypeDef#
# SubscriptionFilterTypeDef definition
class SubscriptionFilterTypeDef(TypedDict):
filterName: NotRequired[str],
logGroupName: NotRequired[str],
filterPattern: NotRequired[str],
destinationArn: NotRequired[str],
roleArn: NotRequired[str],
distribution: NotRequired[DistributionType], # (1)
creationTime: NotRequired[int],
- See DistributionType
DisassociateKmsKeyRequestRequestTypeDef#
# DisassociateKmsKeyRequestRequestTypeDef definition
class DisassociateKmsKeyRequestRequestTypeDef(TypedDict):
logGroupName: NotRequired[str],
resourceIdentifier: NotRequired[str],
EntityTypeDef#
# EntityTypeDef definition
class EntityTypeDef(TypedDict):
keyAttributes: NotRequired[Mapping[str, str]],
attributes: NotRequired[Mapping[str, str]],
ExportTaskExecutionInfoTypeDef#
# ExportTaskExecutionInfoTypeDef definition
class ExportTaskExecutionInfoTypeDef(TypedDict):
creationTime: NotRequired[int],
completionTime: NotRequired[int],
ExportTaskStatusTypeDef#
# ExportTaskStatusTypeDef definition
class ExportTaskStatusTypeDef(TypedDict):
code: NotRequired[ExportTaskStatusCodeType], # (1)
message: NotRequired[str],
FilterLogEventsRequestRequestTypeDef#
# FilterLogEventsRequestRequestTypeDef definition
class FilterLogEventsRequestRequestTypeDef(TypedDict):
logGroupName: NotRequired[str],
logGroupIdentifier: NotRequired[str],
logStreamNames: NotRequired[Sequence[str]],
logStreamNamePrefix: NotRequired[str],
startTime: NotRequired[int],
endTime: NotRequired[int],
filterPattern: NotRequired[str],
nextToken: NotRequired[str],
limit: NotRequired[int],
interleaved: NotRequired[bool],
unmask: NotRequired[bool],
FilteredLogEventTypeDef#
# FilteredLogEventTypeDef definition
class FilteredLogEventTypeDef(TypedDict):
logStreamName: NotRequired[str],
timestamp: NotRequired[int],
message: NotRequired[str],
ingestionTime: NotRequired[int],
eventId: NotRequired[str],
SearchedLogStreamTypeDef#
# SearchedLogStreamTypeDef definition
class SearchedLogStreamTypeDef(TypedDict):
logStreamName: NotRequired[str],
searchedCompletely: NotRequired[bool],
GetDataProtectionPolicyRequestRequestTypeDef#
# GetDataProtectionPolicyRequestRequestTypeDef definition
class GetDataProtectionPolicyRequestRequestTypeDef(TypedDict):
logGroupIdentifier: str,
GetDeliveryDestinationPolicyRequestRequestTypeDef#
# GetDeliveryDestinationPolicyRequestRequestTypeDef definition
class GetDeliveryDestinationPolicyRequestRequestTypeDef(TypedDict):
deliveryDestinationName: str,
PolicyTypeDef#
# PolicyTypeDef definition
class PolicyTypeDef(TypedDict):
deliveryDestinationPolicy: NotRequired[str],
GetDeliveryDestinationRequestRequestTypeDef#
# GetDeliveryDestinationRequestRequestTypeDef definition
class GetDeliveryDestinationRequestRequestTypeDef(TypedDict):
name: str,
GetDeliveryRequestRequestTypeDef#
# GetDeliveryRequestRequestTypeDef definition
class GetDeliveryRequestRequestTypeDef(TypedDict):
id: str,
GetDeliverySourceRequestRequestTypeDef#
# GetDeliverySourceRequestRequestTypeDef definition
class GetDeliverySourceRequestRequestTypeDef(TypedDict):
name: str,
GetLogAnomalyDetectorRequestRequestTypeDef#
# GetLogAnomalyDetectorRequestRequestTypeDef definition
class GetLogAnomalyDetectorRequestRequestTypeDef(TypedDict):
anomalyDetectorArn: str,
GetLogEventsRequestRequestTypeDef#
# GetLogEventsRequestRequestTypeDef definition
class GetLogEventsRequestRequestTypeDef(TypedDict):
logStreamName: str,
logGroupName: NotRequired[str],
logGroupIdentifier: NotRequired[str],
startTime: NotRequired[int],
endTime: NotRequired[int],
nextToken: NotRequired[str],
limit: NotRequired[int],
startFromHead: NotRequired[bool],
unmask: NotRequired[bool],
OutputLogEventTypeDef#
# OutputLogEventTypeDef definition
class OutputLogEventTypeDef(TypedDict):
timestamp: NotRequired[int],
message: NotRequired[str],
ingestionTime: NotRequired[int],
GetLogGroupFieldsRequestRequestTypeDef#
# GetLogGroupFieldsRequestRequestTypeDef definition
class GetLogGroupFieldsRequestRequestTypeDef(TypedDict):
logGroupName: NotRequired[str],
time: NotRequired[int],
logGroupIdentifier: NotRequired[str],
LogGroupFieldTypeDef#
# LogGroupFieldTypeDef definition
class LogGroupFieldTypeDef(TypedDict):
name: NotRequired[str],
percent: NotRequired[int],
GetLogRecordRequestRequestTypeDef#
# GetLogRecordRequestRequestTypeDef definition
class GetLogRecordRequestRequestTypeDef(TypedDict):
logRecordPointer: str,
unmask: NotRequired[bool],
GetQueryResultsRequestRequestTypeDef#
# GetQueryResultsRequestRequestTypeDef definition
class GetQueryResultsRequestRequestTypeDef(TypedDict):
queryId: str,
QueryStatisticsTypeDef#
# QueryStatisticsTypeDef definition
class QueryStatisticsTypeDef(TypedDict):
recordsMatched: NotRequired[float],
recordsScanned: NotRequired[float],
bytesScanned: NotRequired[float],
ResultFieldTypeDef#
# ResultFieldTypeDef definition
class ResultFieldTypeDef(TypedDict):
field: NotRequired[str],
value: NotRequired[str],
InputLogEventTypeDef#
# InputLogEventTypeDef definition
class InputLogEventTypeDef(TypedDict):
timestamp: int,
message: str,
ListAnomaliesRequestRequestTypeDef#
# ListAnomaliesRequestRequestTypeDef definition
class ListAnomaliesRequestRequestTypeDef(TypedDict):
anomalyDetectorArn: NotRequired[str],
suppressionState: NotRequired[SuppressionStateType], # (1)
limit: NotRequired[int],
nextToken: NotRequired[str],
ListLogAnomalyDetectorsRequestRequestTypeDef#
# ListLogAnomalyDetectorsRequestRequestTypeDef definition
class ListLogAnomalyDetectorsRequestRequestTypeDef(TypedDict):
filterLogGroupArn: NotRequired[str],
limit: NotRequired[int],
nextToken: NotRequired[str],
ListTagsForResourceRequestRequestTypeDef#
# ListTagsForResourceRequestRequestTypeDef definition
class ListTagsForResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
ListTagsLogGroupRequestRequestTypeDef#
# ListTagsLogGroupRequestRequestTypeDef definition
class ListTagsLogGroupRequestRequestTypeDef(TypedDict):
logGroupName: str,
LiveTailSessionLogEventTypeDef#
# LiveTailSessionLogEventTypeDef definition
class LiveTailSessionLogEventTypeDef(TypedDict):
logStreamName: NotRequired[str],
logGroupIdentifier: NotRequired[str],
message: NotRequired[str],
timestamp: NotRequired[int],
ingestionTime: NotRequired[int],
LiveTailSessionMetadataTypeDef#
# LiveTailSessionMetadataTypeDef definition
class LiveTailSessionMetadataTypeDef(TypedDict):
sampled: NotRequired[bool],
LiveTailSessionStartTypeDef#
# LiveTailSessionStartTypeDef definition
class LiveTailSessionStartTypeDef(TypedDict):
requestId: NotRequired[str],
sessionId: NotRequired[str],
logGroupIdentifiers: NotRequired[List[str]],
logStreamNames: NotRequired[List[str]],
logStreamNamePrefixes: NotRequired[List[str]],
logEventFilterPattern: NotRequired[str],
MetricFilterMatchRecordTypeDef#
# MetricFilterMatchRecordTypeDef definition
class MetricFilterMatchRecordTypeDef(TypedDict):
eventNumber: NotRequired[int],
eventMessage: NotRequired[str],
extractedValues: NotRequired[Dict[str, str]],
MetricTransformationOutputTypeDef#
# MetricTransformationOutputTypeDef definition
class MetricTransformationOutputTypeDef(TypedDict):
metricName: str,
metricNamespace: str,
metricValue: str,
defaultValue: NotRequired[float],
dimensions: NotRequired[Dict[str, str]],
unit: NotRequired[StandardUnitType], # (1)
- See StandardUnitType
MetricTransformationTypeDef#
# MetricTransformationTypeDef definition
class MetricTransformationTypeDef(TypedDict):
metricName: str,
metricNamespace: str,
metricValue: str,
defaultValue: NotRequired[float],
dimensions: NotRequired[Mapping[str, str]],
unit: NotRequired[StandardUnitType], # (1)
- See StandardUnitType
PutAccountPolicyRequestRequestTypeDef#
# PutAccountPolicyRequestRequestTypeDef definition
class PutAccountPolicyRequestRequestTypeDef(TypedDict):
policyName: str,
policyDocument: str,
policyType: PolicyTypeType, # (1)
scope: NotRequired[ScopeType], # (2)
selectionCriteria: NotRequired[str],
- See PolicyTypeType
- See ScopeType
PutDataProtectionPolicyRequestRequestTypeDef#
# PutDataProtectionPolicyRequestRequestTypeDef definition
class PutDataProtectionPolicyRequestRequestTypeDef(TypedDict):
logGroupIdentifier: str,
policyDocument: str,
PutDeliveryDestinationPolicyRequestRequestTypeDef#
# PutDeliveryDestinationPolicyRequestRequestTypeDef definition
class PutDeliveryDestinationPolicyRequestRequestTypeDef(TypedDict):
deliveryDestinationName: str,
deliveryDestinationPolicy: str,
PutDeliverySourceRequestRequestTypeDef#
# PutDeliverySourceRequestRequestTypeDef definition
class PutDeliverySourceRequestRequestTypeDef(TypedDict):
name: str,
resourceArn: str,
logType: str,
tags: NotRequired[Mapping[str, str]],
PutDestinationPolicyRequestRequestTypeDef#
# PutDestinationPolicyRequestRequestTypeDef definition
class PutDestinationPolicyRequestRequestTypeDef(TypedDict):
destinationName: str,
accessPolicy: str,
forceUpdate: NotRequired[bool],
PutDestinationRequestRequestTypeDef#
# PutDestinationRequestRequestTypeDef definition
class PutDestinationRequestRequestTypeDef(TypedDict):
destinationName: str,
targetArn: str,
roleArn: str,
tags: NotRequired[Mapping[str, str]],
RejectedEntityInfoTypeDef#
# RejectedEntityInfoTypeDef definition
class RejectedEntityInfoTypeDef(TypedDict):
errorType: EntityRejectionErrorTypeType, # (1)
RejectedLogEventsInfoTypeDef#
# RejectedLogEventsInfoTypeDef definition
class RejectedLogEventsInfoTypeDef(TypedDict):
tooNewLogEventStartIndex: NotRequired[int],
tooOldLogEventEndIndex: NotRequired[int],
expiredLogEventEndIndex: NotRequired[int],
PutQueryDefinitionRequestRequestTypeDef#
# PutQueryDefinitionRequestRequestTypeDef definition
class PutQueryDefinitionRequestRequestTypeDef(TypedDict):
name: str,
queryString: str,
queryDefinitionId: NotRequired[str],
logGroupNames: NotRequired[Sequence[str]],
clientToken: NotRequired[str],
PutResourcePolicyRequestRequestTypeDef#
# PutResourcePolicyRequestRequestTypeDef definition
class PutResourcePolicyRequestRequestTypeDef(TypedDict):
policyName: NotRequired[str],
policyDocument: NotRequired[str],
PutRetentionPolicyRequestRequestTypeDef#
# PutRetentionPolicyRequestRequestTypeDef definition
class PutRetentionPolicyRequestRequestTypeDef(TypedDict):
logGroupName: str,
retentionInDays: int,
PutSubscriptionFilterRequestRequestTypeDef#
# PutSubscriptionFilterRequestRequestTypeDef definition
class PutSubscriptionFilterRequestRequestTypeDef(TypedDict):
logGroupName: str,
filterName: str,
filterPattern: str,
destinationArn: str,
roleArn: NotRequired[str],
distribution: NotRequired[DistributionType], # (1)
- See DistributionType
SessionStreamingExceptionTypeDef#
# SessionStreamingExceptionTypeDef definition
class SessionStreamingExceptionTypeDef(TypedDict):
message: NotRequired[str],
SessionTimeoutExceptionTypeDef#
# SessionTimeoutExceptionTypeDef definition
class SessionTimeoutExceptionTypeDef(TypedDict):
message: NotRequired[str],
StartLiveTailRequestRequestTypeDef#
# StartLiveTailRequestRequestTypeDef definition
class StartLiveTailRequestRequestTypeDef(TypedDict):
logGroupIdentifiers: Sequence[str],
logStreamNames: NotRequired[Sequence[str]],
logStreamNamePrefixes: NotRequired[Sequence[str]],
logEventFilterPattern: NotRequired[str],
StartQueryRequestRequestTypeDef#
# StartQueryRequestRequestTypeDef definition
class StartQueryRequestRequestTypeDef(TypedDict):
startTime: int,
endTime: int,
queryString: str,
logGroupName: NotRequired[str],
logGroupNames: NotRequired[Sequence[str]],
logGroupIdentifiers: NotRequired[Sequence[str]],
limit: NotRequired[int],
StopQueryRequestRequestTypeDef#
# StopQueryRequestRequestTypeDef definition
class StopQueryRequestRequestTypeDef(TypedDict):
queryId: str,
SuppressionPeriodTypeDef#
# SuppressionPeriodTypeDef definition
class SuppressionPeriodTypeDef(TypedDict):
value: NotRequired[int],
suppressionUnit: NotRequired[SuppressionUnitType], # (1)
TagLogGroupRequestRequestTypeDef#
# TagLogGroupRequestRequestTypeDef definition
class TagLogGroupRequestRequestTypeDef(TypedDict):
logGroupName: str,
tags: Mapping[str, str],
TagResourceRequestRequestTypeDef#
# TagResourceRequestRequestTypeDef definition
class TagResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
tags: Mapping[str, str],
TestMetricFilterRequestRequestTypeDef#
# TestMetricFilterRequestRequestTypeDef definition
class TestMetricFilterRequestRequestTypeDef(TypedDict):
filterPattern: str,
logEventMessages: Sequence[str],
UntagLogGroupRequestRequestTypeDef#
# UntagLogGroupRequestRequestTypeDef definition
class UntagLogGroupRequestRequestTypeDef(TypedDict):
logGroupName: str,
tags: Sequence[str],
UntagResourceRequestRequestTypeDef#
# UntagResourceRequestRequestTypeDef definition
class UntagResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
tagKeys: Sequence[str],
UpdateLogAnomalyDetectorRequestRequestTypeDef#
# UpdateLogAnomalyDetectorRequestRequestTypeDef definition
class UpdateLogAnomalyDetectorRequestRequestTypeDef(TypedDict):
anomalyDetectorArn: str,
enabled: bool,
evaluationFrequency: NotRequired[EvaluationFrequencyType], # (1)
filterPattern: NotRequired[str],
anomalyVisibilityTime: NotRequired[int],
AnomalyTypeDef#
# AnomalyTypeDef definition
class AnomalyTypeDef(TypedDict):
anomalyId: str,
patternId: str,
anomalyDetectorArn: str,
patternString: str,
firstSeen: int,
lastSeen: int,
description: str,
active: bool,
state: StateType, # (1)
histogram: Dict[str, int],
logSamples: List[LogEventTypeDef], # (2)
patternTokens: List[PatternTokenTypeDef], # (3)
logGroupArnList: List[str],
patternRegex: NotRequired[str],
priority: NotRequired[str],
suppressed: NotRequired[bool],
suppressedDate: NotRequired[int],
suppressedUntil: NotRequired[int],
isPatternLevelSuppression: NotRequired[bool],
- See StateType
- See LogEventTypeDef
- See PatternTokenTypeDef
ConfigurationTemplateDeliveryConfigValuesTypeDef#
# ConfigurationTemplateDeliveryConfigValuesTypeDef definition
class ConfigurationTemplateDeliveryConfigValuesTypeDef(TypedDict):
recordFields: NotRequired[List[str]],
fieldDelimiter: NotRequired[str],
s3DeliveryConfiguration: NotRequired[S3DeliveryConfigurationTypeDef], # (1)
CreateDeliveryRequestRequestTypeDef#
# CreateDeliveryRequestRequestTypeDef definition
class CreateDeliveryRequestRequestTypeDef(TypedDict):
deliverySourceName: str,
deliveryDestinationArn: str,
recordFields: NotRequired[Sequence[str]],
fieldDelimiter: NotRequired[str],
s3DeliveryConfiguration: NotRequired[S3DeliveryConfigurationTypeDef], # (1)
tags: NotRequired[Mapping[str, str]],
DeliveryTypeDef#
# DeliveryTypeDef definition
class DeliveryTypeDef(TypedDict):
id: NotRequired[str],
arn: NotRequired[str],
deliverySourceName: NotRequired[str],
deliveryDestinationArn: NotRequired[str],
deliveryDestinationType: NotRequired[DeliveryDestinationTypeType], # (1)
recordFields: NotRequired[List[str]],
fieldDelimiter: NotRequired[str],
s3DeliveryConfiguration: NotRequired[S3DeliveryConfigurationTypeDef], # (2)
tags: NotRequired[Dict[str, str]],
UpdateDeliveryConfigurationRequestRequestTypeDef#
# UpdateDeliveryConfigurationRequestRequestTypeDef definition
class UpdateDeliveryConfigurationRequestRequestTypeDef(TypedDict):
id: str,
recordFields: NotRequired[Sequence[str]],
fieldDelimiter: NotRequired[str],
s3DeliveryConfiguration: NotRequired[S3DeliveryConfigurationTypeDef], # (1)
CreateExportTaskResponseTypeDef#
# CreateExportTaskResponseTypeDef definition
class CreateExportTaskResponseTypeDef(TypedDict):
taskId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
CreateLogAnomalyDetectorResponseTypeDef#
# CreateLogAnomalyDetectorResponseTypeDef definition
class CreateLogAnomalyDetectorResponseTypeDef(TypedDict):
anomalyDetectorArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DeleteQueryDefinitionResponseTypeDef#
# DeleteQueryDefinitionResponseTypeDef definition
class DeleteQueryDefinitionResponseTypeDef(TypedDict):
success: bool,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DescribeAccountPoliciesResponseTypeDef#
# DescribeAccountPoliciesResponseTypeDef definition
class DescribeAccountPoliciesResponseTypeDef(TypedDict):
accountPolicies: List[AccountPolicyTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
EmptyResponseMetadataTypeDef#
# EmptyResponseMetadataTypeDef definition
class EmptyResponseMetadataTypeDef(TypedDict):
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetDataProtectionPolicyResponseTypeDef#
# GetDataProtectionPolicyResponseTypeDef definition
class GetDataProtectionPolicyResponseTypeDef(TypedDict):
logGroupIdentifier: str,
policyDocument: str,
lastUpdatedTime: int,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetLogAnomalyDetectorResponseTypeDef#
# GetLogAnomalyDetectorResponseTypeDef definition
class GetLogAnomalyDetectorResponseTypeDef(TypedDict):
detectorName: str,
logGroupArnList: List[str],
evaluationFrequency: EvaluationFrequencyType, # (1)
filterPattern: str,
anomalyDetectorStatus: AnomalyDetectorStatusType, # (2)
kmsKeyId: str,
creationTimeStamp: int,
lastModifiedTimeStamp: int,
anomalyVisibilityTime: int,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
GetLogRecordResponseTypeDef#
# GetLogRecordResponseTypeDef definition
class GetLogRecordResponseTypeDef(TypedDict):
logRecord: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListLogAnomalyDetectorsResponseTypeDef#
# ListLogAnomalyDetectorsResponseTypeDef definition
class ListLogAnomalyDetectorsResponseTypeDef(TypedDict):
anomalyDetectors: List[AnomalyDetectorTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
ListTagsForResourceResponseTypeDef#
# ListTagsForResourceResponseTypeDef definition
class ListTagsForResourceResponseTypeDef(TypedDict):
tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListTagsLogGroupResponseTypeDef#
# ListTagsLogGroupResponseTypeDef definition
class ListTagsLogGroupResponseTypeDef(TypedDict):
tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
PutAccountPolicyResponseTypeDef#
# PutAccountPolicyResponseTypeDef definition
class PutAccountPolicyResponseTypeDef(TypedDict):
accountPolicy: AccountPolicyTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
PutDataProtectionPolicyResponseTypeDef#
# PutDataProtectionPolicyResponseTypeDef definition
class PutDataProtectionPolicyResponseTypeDef(TypedDict):
logGroupIdentifier: str,
policyDocument: str,
lastUpdatedTime: int,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
PutQueryDefinitionResponseTypeDef#
# PutQueryDefinitionResponseTypeDef definition
class PutQueryDefinitionResponseTypeDef(TypedDict):
queryDefinitionId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
StartQueryResponseTypeDef#
# StartQueryResponseTypeDef definition
class StartQueryResponseTypeDef(TypedDict):
queryId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
StopQueryResponseTypeDef#
# StopQueryResponseTypeDef definition
class StopQueryResponseTypeDef(TypedDict):
success: bool,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DeliveryDestinationTypeDef#
# DeliveryDestinationTypeDef definition
class DeliveryDestinationTypeDef(TypedDict):
name: NotRequired[str],
arn: NotRequired[str],
deliveryDestinationType: NotRequired[DeliveryDestinationTypeType], # (1)
outputFormat: NotRequired[OutputFormatType], # (2)
deliveryDestinationConfiguration: NotRequired[DeliveryDestinationConfigurationTypeDef], # (3)
tags: NotRequired[Dict[str, str]],
PutDeliveryDestinationRequestRequestTypeDef#
# PutDeliveryDestinationRequestRequestTypeDef definition
class PutDeliveryDestinationRequestRequestTypeDef(TypedDict):
name: str,
deliveryDestinationConfiguration: DeliveryDestinationConfigurationTypeDef, # (1)
outputFormat: NotRequired[OutputFormatType], # (2)
tags: NotRequired[Mapping[str, str]],
DescribeDeliverySourcesResponseTypeDef#
# DescribeDeliverySourcesResponseTypeDef definition
class DescribeDeliverySourcesResponseTypeDef(TypedDict):
deliverySources: List[DeliverySourceTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
GetDeliverySourceResponseTypeDef#
# GetDeliverySourceResponseTypeDef definition
class GetDeliverySourceResponseTypeDef(TypedDict):
deliverySource: DeliverySourceTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
PutDeliverySourceResponseTypeDef#
# PutDeliverySourceResponseTypeDef definition
class PutDeliverySourceResponseTypeDef(TypedDict):
deliverySource: DeliverySourceTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeConfigurationTemplatesRequestDescribeConfigurationTemplatesPaginateTypeDef#
# DescribeConfigurationTemplatesRequestDescribeConfigurationTemplatesPaginateTypeDef definition
class DescribeConfigurationTemplatesRequestDescribeConfigurationTemplatesPaginateTypeDef(TypedDict):
service: NotRequired[str],
logTypes: NotRequired[Sequence[str]],
resourceTypes: NotRequired[Sequence[str]],
deliveryDestinationTypes: NotRequired[Sequence[DeliveryDestinationTypeType]], # (1)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
DescribeDeliveriesRequestDescribeDeliveriesPaginateTypeDef#
# DescribeDeliveriesRequestDescribeDeliveriesPaginateTypeDef definition
class DescribeDeliveriesRequestDescribeDeliveriesPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
DescribeDeliveryDestinationsRequestDescribeDeliveryDestinationsPaginateTypeDef#
# DescribeDeliveryDestinationsRequestDescribeDeliveryDestinationsPaginateTypeDef definition
class DescribeDeliveryDestinationsRequestDescribeDeliveryDestinationsPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
DescribeDeliverySourcesRequestDescribeDeliverySourcesPaginateTypeDef#
# DescribeDeliverySourcesRequestDescribeDeliverySourcesPaginateTypeDef definition
class DescribeDeliverySourcesRequestDescribeDeliverySourcesPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
DescribeDestinationsRequestDescribeDestinationsPaginateTypeDef#
# DescribeDestinationsRequestDescribeDestinationsPaginateTypeDef definition
class DescribeDestinationsRequestDescribeDestinationsPaginateTypeDef(TypedDict):
DestinationNamePrefix: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
DescribeExportTasksRequestDescribeExportTasksPaginateTypeDef#
# DescribeExportTasksRequestDescribeExportTasksPaginateTypeDef definition
class DescribeExportTasksRequestDescribeExportTasksPaginateTypeDef(TypedDict):
taskId: NotRequired[str],
statusCode: NotRequired[ExportTaskStatusCodeType], # (1)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
DescribeLogGroupsRequestDescribeLogGroupsPaginateTypeDef#
# DescribeLogGroupsRequestDescribeLogGroupsPaginateTypeDef definition
class DescribeLogGroupsRequestDescribeLogGroupsPaginateTypeDef(TypedDict):
accountIdentifiers: NotRequired[Sequence[str]],
logGroupNamePrefix: NotRequired[str],
logGroupNamePattern: NotRequired[str],
includeLinkedAccounts: NotRequired[bool],
logGroupClass: NotRequired[LogGroupClassType], # (1)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
DescribeLogStreamsRequestDescribeLogStreamsPaginateTypeDef#
# DescribeLogStreamsRequestDescribeLogStreamsPaginateTypeDef definition
class DescribeLogStreamsRequestDescribeLogStreamsPaginateTypeDef(TypedDict):
logGroupName: NotRequired[str],
logGroupIdentifier: NotRequired[str],
logStreamNamePrefix: NotRequired[str],
orderBy: NotRequired[OrderByType], # (1)
descending: NotRequired[bool],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
- See OrderByType
- See PaginatorConfigTypeDef
DescribeMetricFiltersRequestDescribeMetricFiltersPaginateTypeDef#
# DescribeMetricFiltersRequestDescribeMetricFiltersPaginateTypeDef definition
class DescribeMetricFiltersRequestDescribeMetricFiltersPaginateTypeDef(TypedDict):
logGroupName: NotRequired[str],
filterNamePrefix: NotRequired[str],
metricName: NotRequired[str],
metricNamespace: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
DescribeQueriesRequestDescribeQueriesPaginateTypeDef#
# DescribeQueriesRequestDescribeQueriesPaginateTypeDef definition
class DescribeQueriesRequestDescribeQueriesPaginateTypeDef(TypedDict):
logGroupName: NotRequired[str],
status: NotRequired[QueryStatusType], # (1)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
DescribeResourcePoliciesRequestDescribeResourcePoliciesPaginateTypeDef#
# DescribeResourcePoliciesRequestDescribeResourcePoliciesPaginateTypeDef definition
class DescribeResourcePoliciesRequestDescribeResourcePoliciesPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
DescribeSubscriptionFiltersRequestDescribeSubscriptionFiltersPaginateTypeDef#
# DescribeSubscriptionFiltersRequestDescribeSubscriptionFiltersPaginateTypeDef definition
class DescribeSubscriptionFiltersRequestDescribeSubscriptionFiltersPaginateTypeDef(TypedDict):
logGroupName: str,
filterNamePrefix: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
FilterLogEventsRequestFilterLogEventsPaginateTypeDef#
# FilterLogEventsRequestFilterLogEventsPaginateTypeDef definition
class FilterLogEventsRequestFilterLogEventsPaginateTypeDef(TypedDict):
logGroupName: NotRequired[str],
logGroupIdentifier: NotRequired[str],
logStreamNames: NotRequired[Sequence[str]],
logStreamNamePrefix: NotRequired[str],
startTime: NotRequired[int],
endTime: NotRequired[int],
filterPattern: NotRequired[str],
interleaved: NotRequired[bool],
unmask: NotRequired[bool],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListAnomaliesRequestListAnomaliesPaginateTypeDef#
# ListAnomaliesRequestListAnomaliesPaginateTypeDef definition
class ListAnomaliesRequestListAnomaliesPaginateTypeDef(TypedDict):
anomalyDetectorArn: NotRequired[str],
suppressionState: NotRequired[SuppressionStateType], # (1)
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (2)
ListLogAnomalyDetectorsRequestListLogAnomalyDetectorsPaginateTypeDef#
# ListLogAnomalyDetectorsRequestListLogAnomalyDetectorsPaginateTypeDef definition
class ListLogAnomalyDetectorsRequestListLogAnomalyDetectorsPaginateTypeDef(TypedDict):
filterLogGroupArn: NotRequired[str],
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
DescribeDestinationsResponseTypeDef#
# DescribeDestinationsResponseTypeDef definition
class DescribeDestinationsResponseTypeDef(TypedDict):
destinations: List[DestinationTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
PutDestinationResponseTypeDef#
# PutDestinationResponseTypeDef definition
class PutDestinationResponseTypeDef(TypedDict):
destination: DestinationTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeLogGroupsResponseTypeDef#
# DescribeLogGroupsResponseTypeDef definition
class DescribeLogGroupsResponseTypeDef(TypedDict):
logGroups: List[LogGroupTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
DescribeLogStreamsResponseTypeDef#
# DescribeLogStreamsResponseTypeDef definition
class DescribeLogStreamsResponseTypeDef(TypedDict):
logStreams: List[LogStreamTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
DescribeQueriesResponseTypeDef#
# DescribeQueriesResponseTypeDef definition
class DescribeQueriesResponseTypeDef(TypedDict):
queries: List[QueryInfoTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
DescribeQueryDefinitionsResponseTypeDef#
# DescribeQueryDefinitionsResponseTypeDef definition
class DescribeQueryDefinitionsResponseTypeDef(TypedDict):
queryDefinitions: List[QueryDefinitionTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
DescribeResourcePoliciesResponseTypeDef#
# DescribeResourcePoliciesResponseTypeDef definition
class DescribeResourcePoliciesResponseTypeDef(TypedDict):
resourcePolicies: List[ResourcePolicyTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
PutResourcePolicyResponseTypeDef#
# PutResourcePolicyResponseTypeDef definition
class PutResourcePolicyResponseTypeDef(TypedDict):
resourcePolicy: ResourcePolicyTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeSubscriptionFiltersResponseTypeDef#
# DescribeSubscriptionFiltersResponseTypeDef definition
class DescribeSubscriptionFiltersResponseTypeDef(TypedDict):
subscriptionFilters: List[SubscriptionFilterTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
ExportTaskTypeDef#
# ExportTaskTypeDef definition
class ExportTaskTypeDef(TypedDict):
taskId: NotRequired[str],
taskName: NotRequired[str],
logGroupName: NotRequired[str],
from: NotRequired[int],
to: NotRequired[int],
destination: NotRequired[str],
destinationPrefix: NotRequired[str],
status: NotRequired[ExportTaskStatusTypeDef], # (1)
executionInfo: NotRequired[ExportTaskExecutionInfoTypeDef], # (2)
FilterLogEventsResponseTypeDef#
# FilterLogEventsResponseTypeDef definition
class FilterLogEventsResponseTypeDef(TypedDict):
events: List[FilteredLogEventTypeDef], # (1)
searchedLogStreams: List[SearchedLogStreamTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
nextToken: NotRequired[str],
GetDeliveryDestinationPolicyResponseTypeDef#
# GetDeliveryDestinationPolicyResponseTypeDef definition
class GetDeliveryDestinationPolicyResponseTypeDef(TypedDict):
policy: PolicyTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See PolicyTypeDef
- See ResponseMetadataTypeDef
PutDeliveryDestinationPolicyResponseTypeDef#
# PutDeliveryDestinationPolicyResponseTypeDef definition
class PutDeliveryDestinationPolicyResponseTypeDef(TypedDict):
policy: PolicyTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See PolicyTypeDef
- See ResponseMetadataTypeDef
GetLogEventsResponseTypeDef#
# GetLogEventsResponseTypeDef definition
class GetLogEventsResponseTypeDef(TypedDict):
events: List[OutputLogEventTypeDef], # (1)
nextForwardToken: str,
nextBackwardToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetLogGroupFieldsResponseTypeDef#
# GetLogGroupFieldsResponseTypeDef definition
class GetLogGroupFieldsResponseTypeDef(TypedDict):
logGroupFields: List[LogGroupFieldTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetQueryResultsResponseTypeDef#
# GetQueryResultsResponseTypeDef definition
class GetQueryResultsResponseTypeDef(TypedDict):
results: List[List[ResultFieldTypeDef]], # (1)
statistics: QueryStatisticsTypeDef, # (2)
status: QueryStatusType, # (3)
encryptionKey: str,
ResponseMetadata: ResponseMetadataTypeDef, # (4)
PutLogEventsRequestRequestTypeDef#
# PutLogEventsRequestRequestTypeDef definition
class PutLogEventsRequestRequestTypeDef(TypedDict):
logGroupName: str,
logStreamName: str,
logEvents: Sequence[InputLogEventTypeDef], # (1)
sequenceToken: NotRequired[str],
entity: NotRequired[EntityTypeDef], # (2)
- See InputLogEventTypeDef
- See EntityTypeDef
LiveTailSessionUpdateTypeDef#
# LiveTailSessionUpdateTypeDef definition
class LiveTailSessionUpdateTypeDef(TypedDict):
sessionMetadata: NotRequired[LiveTailSessionMetadataTypeDef], # (1)
sessionResults: NotRequired[List[LiveTailSessionLogEventTypeDef]], # (2)
TestMetricFilterResponseTypeDef#
# TestMetricFilterResponseTypeDef definition
class TestMetricFilterResponseTypeDef(TypedDict):
matches: List[MetricFilterMatchRecordTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
MetricFilterTypeDef#
# MetricFilterTypeDef definition
class MetricFilterTypeDef(TypedDict):
filterName: NotRequired[str],
filterPattern: NotRequired[str],
metricTransformations: NotRequired[List[MetricTransformationOutputTypeDef]], # (1)
creationTime: NotRequired[int],
logGroupName: NotRequired[str],
PutLogEventsResponseTypeDef#
# PutLogEventsResponseTypeDef definition
class PutLogEventsResponseTypeDef(TypedDict):
nextSequenceToken: str,
rejectedLogEventsInfo: RejectedLogEventsInfoTypeDef, # (1)
rejectedEntityInfo: RejectedEntityInfoTypeDef, # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
UpdateAnomalyRequestRequestTypeDef#
# UpdateAnomalyRequestRequestTypeDef definition
class UpdateAnomalyRequestRequestTypeDef(TypedDict):
anomalyDetectorArn: str,
anomalyId: NotRequired[str],
patternId: NotRequired[str],
suppressionType: NotRequired[SuppressionTypeType], # (1)
suppressionPeriod: NotRequired[SuppressionPeriodTypeDef], # (2)
baseline: NotRequired[bool],
ListAnomaliesResponseTypeDef#
# ListAnomaliesResponseTypeDef definition
class ListAnomaliesResponseTypeDef(TypedDict):
anomalies: List[AnomalyTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
ConfigurationTemplateTypeDef#
# ConfigurationTemplateTypeDef definition
class ConfigurationTemplateTypeDef(TypedDict):
service: NotRequired[str],
logType: NotRequired[str],
resourceType: NotRequired[str],
deliveryDestinationType: NotRequired[DeliveryDestinationTypeType], # (1)
defaultDeliveryConfigValues: NotRequired[ConfigurationTemplateDeliveryConfigValuesTypeDef], # (2)
allowedFields: NotRequired[List[RecordFieldTypeDef]], # (3)
allowedOutputFormats: NotRequired[List[OutputFormatType]], # (4)
allowedActionForAllowVendedLogsDeliveryForResource: NotRequired[str],
allowedFieldDelimiters: NotRequired[List[str]],
allowedSuffixPathFields: NotRequired[List[str]],
- See DeliveryDestinationTypeType
- See ConfigurationTemplateDeliveryConfigValuesTypeDef
- See RecordFieldTypeDef
- See OutputFormatType
CreateDeliveryResponseTypeDef#
# CreateDeliveryResponseTypeDef definition
class CreateDeliveryResponseTypeDef(TypedDict):
delivery: DeliveryTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeDeliveriesResponseTypeDef#
# DescribeDeliveriesResponseTypeDef definition
class DescribeDeliveriesResponseTypeDef(TypedDict):
deliveries: List[DeliveryTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
GetDeliveryResponseTypeDef#
# GetDeliveryResponseTypeDef definition
class GetDeliveryResponseTypeDef(TypedDict):
delivery: DeliveryTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeDeliveryDestinationsResponseTypeDef#
# DescribeDeliveryDestinationsResponseTypeDef definition
class DescribeDeliveryDestinationsResponseTypeDef(TypedDict):
deliveryDestinations: List[DeliveryDestinationTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
GetDeliveryDestinationResponseTypeDef#
# GetDeliveryDestinationResponseTypeDef definition
class GetDeliveryDestinationResponseTypeDef(TypedDict):
deliveryDestination: DeliveryDestinationTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
PutDeliveryDestinationResponseTypeDef#
# PutDeliveryDestinationResponseTypeDef definition
class PutDeliveryDestinationResponseTypeDef(TypedDict):
deliveryDestination: DeliveryDestinationTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeExportTasksResponseTypeDef#
# DescribeExportTasksResponseTypeDef definition
class DescribeExportTasksResponseTypeDef(TypedDict):
exportTasks: List[ExportTaskTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
StartLiveTailResponseStreamTypeDef#
# StartLiveTailResponseStreamTypeDef definition
class StartLiveTailResponseStreamTypeDef(TypedDict):
sessionStart: NotRequired[LiveTailSessionStartTypeDef], # (1)
sessionUpdate: NotRequired[LiveTailSessionUpdateTypeDef], # (2)
SessionTimeoutException: NotRequired[SessionTimeoutExceptionTypeDef], # (3)
SessionStreamingException: NotRequired[SessionStreamingExceptionTypeDef], # (4)
- See LiveTailSessionStartTypeDef
- See LiveTailSessionUpdateTypeDef
- See SessionTimeoutExceptionTypeDef
- See SessionStreamingExceptionTypeDef
DescribeMetricFiltersResponseTypeDef#
# DescribeMetricFiltersResponseTypeDef definition
class DescribeMetricFiltersResponseTypeDef(TypedDict):
metricFilters: List[MetricFilterTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
PutMetricFilterRequestRequestTypeDef#
# PutMetricFilterRequestRequestTypeDef definition
class PutMetricFilterRequestRequestTypeDef(TypedDict):
logGroupName: str,
filterName: str,
filterPattern: str,
metricTransformations: Sequence[MetricTransformationUnionTypeDef], # (1)
DescribeConfigurationTemplatesResponseTypeDef#
# DescribeConfigurationTemplatesResponseTypeDef definition
class DescribeConfigurationTemplatesResponseTypeDef(TypedDict):
configurationTemplates: List[ConfigurationTemplateTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
StartLiveTailResponseTypeDef#
# StartLiveTailResponseTypeDef definition
class StartLiveTailResponseTypeDef(TypedDict):
responseStream: EventStream[StartLiveTailResponseStreamTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)