Skip to content

Typed dictionaries

Index > CloudWatchLogs > Typed dictionaries

Auto-generated documentation for CloudWatchLogs type annotations stubs module mypy-boto3-logs.

AssociateKmsKeyRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import AssociateKmsKeyRequestRequestTypeDef

def get_value() -> AssociateKmsKeyRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "kmsKeyId": ...,
    }
Definition
class AssociateKmsKeyRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    kmsKeyId: str,

CancelExportTaskRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import CancelExportTaskRequestRequestTypeDef

def get_value() -> CancelExportTaskRequestRequestTypeDef:
    return {
        "taskId": ...,
    }
Definition
class CancelExportTaskRequestRequestTypeDef(TypedDict):
    taskId: str,

CreateExportTaskRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import CreateExportTaskRequestRequestTypeDef

def get_value() -> CreateExportTaskRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "fromTime": ...,
        "to": ...,
        "destination": ...,
    }
Definition
class CreateExportTaskRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    fromTime: int,
    to: int,
    destination: str,
    taskName: NotRequired[str],
    logStreamNamePrefix: NotRequired[str],
    destinationPrefix: NotRequired[str],

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_logs.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

CreateLogGroupRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import CreateLogGroupRequestRequestTypeDef

def get_value() -> CreateLogGroupRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class CreateLogGroupRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    kmsKeyId: NotRequired[str],
    tags: NotRequired[Mapping[str, str]],

CreateLogStreamRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import CreateLogStreamRequestRequestTypeDef

def get_value() -> CreateLogStreamRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "logStreamName": ...,
    }
Definition
class CreateLogStreamRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    logStreamName: str,

DeleteDestinationRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteDestinationRequestRequestTypeDef

def get_value() -> DeleteDestinationRequestRequestTypeDef:
    return {
        "destinationName": ...,
    }
Definition
class DeleteDestinationRequestRequestTypeDef(TypedDict):
    destinationName: str,

DeleteLogGroupRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteLogGroupRequestRequestTypeDef

def get_value() -> DeleteLogGroupRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DeleteLogGroupRequestRequestTypeDef(TypedDict):
    logGroupName: str,

DeleteLogStreamRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteLogStreamRequestRequestTypeDef

def get_value() -> DeleteLogStreamRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "logStreamName": ...,
    }
Definition
class DeleteLogStreamRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    logStreamName: str,

DeleteMetricFilterRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteMetricFilterRequestRequestTypeDef

def get_value() -> DeleteMetricFilterRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "filterName": ...,
    }
Definition
class DeleteMetricFilterRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    filterName: str,

DeleteQueryDefinitionRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteQueryDefinitionRequestRequestTypeDef

def get_value() -> DeleteQueryDefinitionRequestRequestTypeDef:
    return {
        "queryDefinitionId": ...,
    }
Definition
class DeleteQueryDefinitionRequestRequestTypeDef(TypedDict):
    queryDefinitionId: str,

DeleteResourcePolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteResourcePolicyRequestRequestTypeDef

def get_value() -> DeleteResourcePolicyRequestRequestTypeDef:
    return {
        "policyName": ...,
    }
Definition
class DeleteResourcePolicyRequestRequestTypeDef(TypedDict):
    policyName: NotRequired[str],

DeleteRetentionPolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteRetentionPolicyRequestRequestTypeDef

def get_value() -> DeleteRetentionPolicyRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DeleteRetentionPolicyRequestRequestTypeDef(TypedDict):
    logGroupName: str,

DeleteSubscriptionFilterRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteSubscriptionFilterRequestRequestTypeDef

def get_value() -> DeleteSubscriptionFilterRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "filterName": ...,
    }
Definition
class DeleteSubscriptionFilterRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    filterName: str,

PaginatorConfigTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
Definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

DescribeDestinationsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeDestinationsRequestRequestTypeDef

def get_value() -> DescribeDestinationsRequestRequestTypeDef:
    return {
        "DestinationNamePrefix": ...,
    }
Definition
class DescribeDestinationsRequestRequestTypeDef(TypedDict):
    DestinationNamePrefix: NotRequired[str],
    nextToken: NotRequired[str],
    limit: NotRequired[int],

DestinationTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DestinationTypeDef

def get_value() -> DestinationTypeDef:
    return {
        "destinationName": ...,
    }
Definition
class DestinationTypeDef(TypedDict):
    destinationName: NotRequired[str],
    targetArn: NotRequired[str],
    roleArn: NotRequired[str],
    accessPolicy: NotRequired[str],
    arn: NotRequired[str],
    creationTime: NotRequired[int],

DescribeExportTasksRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeExportTasksRequestRequestTypeDef

def get_value() -> DescribeExportTasksRequestRequestTypeDef:
    return {
        "taskId": ...,
    }
Definition
class DescribeExportTasksRequestRequestTypeDef(TypedDict):
    taskId: NotRequired[str],
    statusCode: NotRequired[ExportTaskStatusCodeType],  # (1)
    nextToken: NotRequired[str],
    limit: NotRequired[int],
  1. See ExportTaskStatusCodeType

DescribeLogGroupsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeLogGroupsRequestRequestTypeDef

def get_value() -> DescribeLogGroupsRequestRequestTypeDef:
    return {
        "logGroupNamePrefix": ...,
    }
Definition
class DescribeLogGroupsRequestRequestTypeDef(TypedDict):
    logGroupNamePrefix: NotRequired[str],
    nextToken: NotRequired[str],
    limit: NotRequired[int],

LogGroupTypeDef

Usage Example
from mypy_boto3_logs.type_defs import LogGroupTypeDef

def get_value() -> LogGroupTypeDef:
    return {
        "logGroupName": ...,
    }
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],

DescribeLogStreamsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeLogStreamsRequestRequestTypeDef

def get_value() -> DescribeLogStreamsRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DescribeLogStreamsRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    logStreamNamePrefix: NotRequired[str],
    orderBy: NotRequired[OrderByType],  # (1)
    descending: NotRequired[bool],
    nextToken: NotRequired[str],
    limit: NotRequired[int],
  1. See OrderByType

LogStreamTypeDef

Usage Example
from mypy_boto3_logs.type_defs import LogStreamTypeDef

def get_value() -> LogStreamTypeDef:
    return {
        "logStreamName": ...,
    }
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

Usage Example
from mypy_boto3_logs.type_defs import DescribeMetricFiltersRequestRequestTypeDef

def get_value() -> DescribeMetricFiltersRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DescribeMetricFiltersRequestRequestTypeDef(TypedDict):
    logGroupName: NotRequired[str],
    filterNamePrefix: NotRequired[str],
    nextToken: NotRequired[str],
    limit: NotRequired[int],
    metricName: NotRequired[str],
    metricNamespace: NotRequired[str],

DescribeQueriesRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeQueriesRequestRequestTypeDef

def get_value() -> DescribeQueriesRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DescribeQueriesRequestRequestTypeDef(TypedDict):
    logGroupName: NotRequired[str],
    status: NotRequired[QueryStatusType],  # (1)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
  1. See QueryStatusType

QueryInfoTypeDef

Usage Example
from mypy_boto3_logs.type_defs import QueryInfoTypeDef

def get_value() -> QueryInfoTypeDef:
    return {
        "queryId": ...,
    }
Definition
class QueryInfoTypeDef(TypedDict):
    queryId: NotRequired[str],
    queryString: NotRequired[str],
    status: NotRequired[QueryStatusType],  # (1)
    createTime: NotRequired[int],
    logGroupName: NotRequired[str],
  1. See QueryStatusType

DescribeQueryDefinitionsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeQueryDefinitionsRequestRequestTypeDef

def get_value() -> DescribeQueryDefinitionsRequestRequestTypeDef:
    return {
        "queryDefinitionNamePrefix": ...,
    }
Definition
class DescribeQueryDefinitionsRequestRequestTypeDef(TypedDict):
    queryDefinitionNamePrefix: NotRequired[str],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

QueryDefinitionTypeDef

Usage Example
from mypy_boto3_logs.type_defs import QueryDefinitionTypeDef

def get_value() -> QueryDefinitionTypeDef:
    return {
        "queryDefinitionId": ...,
    }
Definition
class QueryDefinitionTypeDef(TypedDict):
    queryDefinitionId: NotRequired[str],
    name: NotRequired[str],
    queryString: NotRequired[str],
    lastModified: NotRequired[int],
    logGroupNames: NotRequired[List[str]],

DescribeResourcePoliciesRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeResourcePoliciesRequestRequestTypeDef

def get_value() -> DescribeResourcePoliciesRequestRequestTypeDef:
    return {
        "nextToken": ...,
    }
Definition
class DescribeResourcePoliciesRequestRequestTypeDef(TypedDict):
    nextToken: NotRequired[str],
    limit: NotRequired[int],

ResourcePolicyTypeDef

Usage Example
from mypy_boto3_logs.type_defs import ResourcePolicyTypeDef

def get_value() -> ResourcePolicyTypeDef:
    return {
        "policyName": ...,
    }
Definition
class ResourcePolicyTypeDef(TypedDict):
    policyName: NotRequired[str],
    policyDocument: NotRequired[str],
    lastUpdatedTime: NotRequired[int],

DescribeSubscriptionFiltersRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeSubscriptionFiltersRequestRequestTypeDef

def get_value() -> DescribeSubscriptionFiltersRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DescribeSubscriptionFiltersRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    filterNamePrefix: NotRequired[str],
    nextToken: NotRequired[str],
    limit: NotRequired[int],

SubscriptionFilterTypeDef

Usage Example
from mypy_boto3_logs.type_defs import SubscriptionFilterTypeDef

def get_value() -> SubscriptionFilterTypeDef:
    return {
        "filterName": ...,
    }
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],
  1. See DistributionType

DisassociateKmsKeyRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DisassociateKmsKeyRequestRequestTypeDef

def get_value() -> DisassociateKmsKeyRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DisassociateKmsKeyRequestRequestTypeDef(TypedDict):
    logGroupName: str,

ExportTaskExecutionInfoTypeDef

Usage Example
from mypy_boto3_logs.type_defs import ExportTaskExecutionInfoTypeDef

def get_value() -> ExportTaskExecutionInfoTypeDef:
    return {
        "creationTime": ...,
    }
Definition
class ExportTaskExecutionInfoTypeDef(TypedDict):
    creationTime: NotRequired[int],
    completionTime: NotRequired[int],

ExportTaskStatusTypeDef

Usage Example
from mypy_boto3_logs.type_defs import ExportTaskStatusTypeDef

def get_value() -> ExportTaskStatusTypeDef:
    return {
        "code": ...,
    }
Definition
class ExportTaskStatusTypeDef(TypedDict):
    code: NotRequired[ExportTaskStatusCodeType],  # (1)
    message: NotRequired[str],
  1. See ExportTaskStatusCodeType

FilterLogEventsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import FilterLogEventsRequestRequestTypeDef

def get_value() -> FilterLogEventsRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class FilterLogEventsRequestRequestTypeDef(TypedDict):
    logGroupName: 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],

FilteredLogEventTypeDef

Usage Example
from mypy_boto3_logs.type_defs import FilteredLogEventTypeDef

def get_value() -> FilteredLogEventTypeDef:
    return {
        "logStreamName": ...,
    }
Definition
class FilteredLogEventTypeDef(TypedDict):
    logStreamName: NotRequired[str],
    timestamp: NotRequired[int],
    message: NotRequired[str],
    ingestionTime: NotRequired[int],
    eventId: NotRequired[str],

SearchedLogStreamTypeDef

Usage Example
from mypy_boto3_logs.type_defs import SearchedLogStreamTypeDef

def get_value() -> SearchedLogStreamTypeDef:
    return {
        "logStreamName": ...,
    }
Definition
class SearchedLogStreamTypeDef(TypedDict):
    logStreamName: NotRequired[str],
    searchedCompletely: NotRequired[bool],

GetLogEventsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import GetLogEventsRequestRequestTypeDef

def get_value() -> GetLogEventsRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "logStreamName": ...,
    }
Definition
class GetLogEventsRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    logStreamName: str,
    startTime: NotRequired[int],
    endTime: NotRequired[int],
    nextToken: NotRequired[str],
    limit: NotRequired[int],
    startFromHead: NotRequired[bool],

OutputLogEventTypeDef

Usage Example
from mypy_boto3_logs.type_defs import OutputLogEventTypeDef

def get_value() -> OutputLogEventTypeDef:
    return {
        "timestamp": ...,
    }
Definition
class OutputLogEventTypeDef(TypedDict):
    timestamp: NotRequired[int],
    message: NotRequired[str],
    ingestionTime: NotRequired[int],

GetLogGroupFieldsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import GetLogGroupFieldsRequestRequestTypeDef

def get_value() -> GetLogGroupFieldsRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class GetLogGroupFieldsRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    time: NotRequired[int],

LogGroupFieldTypeDef

Usage Example
from mypy_boto3_logs.type_defs import LogGroupFieldTypeDef

def get_value() -> LogGroupFieldTypeDef:
    return {
        "name": ...,
    }
Definition
class LogGroupFieldTypeDef(TypedDict):
    name: NotRequired[str],
    percent: NotRequired[int],

GetLogRecordRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import GetLogRecordRequestRequestTypeDef

def get_value() -> GetLogRecordRequestRequestTypeDef:
    return {
        "logRecordPointer": ...,
    }
Definition
class GetLogRecordRequestRequestTypeDef(TypedDict):
    logRecordPointer: str,

GetQueryResultsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import GetQueryResultsRequestRequestTypeDef

def get_value() -> GetQueryResultsRequestRequestTypeDef:
    return {
        "queryId": ...,
    }
Definition
class GetQueryResultsRequestRequestTypeDef(TypedDict):
    queryId: str,

QueryStatisticsTypeDef

Usage Example
from mypy_boto3_logs.type_defs import QueryStatisticsTypeDef

def get_value() -> QueryStatisticsTypeDef:
    return {
        "recordsMatched": ...,
    }
Definition
class QueryStatisticsTypeDef(TypedDict):
    recordsMatched: NotRequired[float],
    recordsScanned: NotRequired[float],
    bytesScanned: NotRequired[float],

ResultFieldTypeDef

Usage Example
from mypy_boto3_logs.type_defs import ResultFieldTypeDef

def get_value() -> ResultFieldTypeDef:
    return {
        "field": ...,
    }
Definition
class ResultFieldTypeDef(TypedDict):
    field: NotRequired[str],
    value: NotRequired[str],

InputLogEventTypeDef

Usage Example
from mypy_boto3_logs.type_defs import InputLogEventTypeDef

def get_value() -> InputLogEventTypeDef:
    return {
        "timestamp": ...,
        "message": ...,
    }
Definition
class InputLogEventTypeDef(TypedDict):
    timestamp: int,
    message: str,

ListTagsLogGroupRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import ListTagsLogGroupRequestRequestTypeDef

def get_value() -> ListTagsLogGroupRequestRequestTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class ListTagsLogGroupRequestRequestTypeDef(TypedDict):
    logGroupName: str,

MetricFilterMatchRecordTypeDef

Usage Example
from mypy_boto3_logs.type_defs import MetricFilterMatchRecordTypeDef

def get_value() -> MetricFilterMatchRecordTypeDef:
    return {
        "eventNumber": ...,
    }
Definition
class MetricFilterMatchRecordTypeDef(TypedDict):
    eventNumber: NotRequired[int],
    eventMessage: NotRequired[str],
    extractedValues: NotRequired[Dict[str, str]],

MetricTransformationTypeDef

Usage Example
from mypy_boto3_logs.type_defs import MetricTransformationTypeDef

def get_value() -> MetricTransformationTypeDef:
    return {
        "metricName": ...,
        "metricNamespace": ...,
        "metricValue": ...,
    }
Definition
class MetricTransformationTypeDef(TypedDict):
    metricName: str,
    metricNamespace: str,
    metricValue: str,
    defaultValue: NotRequired[float],
    dimensions: NotRequired[Dict[str, str]],
    unit: NotRequired[StandardUnitType],  # (1)
  1. See StandardUnitType

PutDestinationPolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutDestinationPolicyRequestRequestTypeDef

def get_value() -> PutDestinationPolicyRequestRequestTypeDef:
    return {
        "destinationName": ...,
        "accessPolicy": ...,
    }
Definition
class PutDestinationPolicyRequestRequestTypeDef(TypedDict):
    destinationName: str,
    accessPolicy: str,
    forceUpdate: NotRequired[bool],

PutDestinationRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutDestinationRequestRequestTypeDef

def get_value() -> PutDestinationRequestRequestTypeDef:
    return {
        "destinationName": ...,
        "targetArn": ...,
        "roleArn": ...,
    }
Definition
class PutDestinationRequestRequestTypeDef(TypedDict):
    destinationName: str,
    targetArn: str,
    roleArn: str,

RejectedLogEventsInfoTypeDef

Usage Example
from mypy_boto3_logs.type_defs import RejectedLogEventsInfoTypeDef

def get_value() -> RejectedLogEventsInfoTypeDef:
    return {
        "tooNewLogEventStartIndex": ...,
    }
Definition
class RejectedLogEventsInfoTypeDef(TypedDict):
    tooNewLogEventStartIndex: NotRequired[int],
    tooOldLogEventEndIndex: NotRequired[int],
    expiredLogEventEndIndex: NotRequired[int],

PutQueryDefinitionRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutQueryDefinitionRequestRequestTypeDef

def get_value() -> PutQueryDefinitionRequestRequestTypeDef:
    return {
        "name": ...,
        "queryString": ...,
    }
Definition
class PutQueryDefinitionRequestRequestTypeDef(TypedDict):
    name: str,
    queryString: str,
    queryDefinitionId: NotRequired[str],
    logGroupNames: NotRequired[Sequence[str]],

PutResourcePolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutResourcePolicyRequestRequestTypeDef

def get_value() -> PutResourcePolicyRequestRequestTypeDef:
    return {
        "policyName": ...,
    }
Definition
class PutResourcePolicyRequestRequestTypeDef(TypedDict):
    policyName: NotRequired[str],
    policyDocument: NotRequired[str],

PutRetentionPolicyRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutRetentionPolicyRequestRequestTypeDef

def get_value() -> PutRetentionPolicyRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "retentionInDays": ...,
    }
Definition
class PutRetentionPolicyRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    retentionInDays: int,

PutSubscriptionFilterRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutSubscriptionFilterRequestRequestTypeDef

def get_value() -> PutSubscriptionFilterRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "filterName": ...,
        "filterPattern": ...,
        "destinationArn": ...,
    }
Definition
class PutSubscriptionFilterRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    filterName: str,
    filterPattern: str,
    destinationArn: str,
    roleArn: NotRequired[str],
    distribution: NotRequired[DistributionType],  # (1)
  1. See DistributionType

StartQueryRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import StartQueryRequestRequestTypeDef

def get_value() -> StartQueryRequestRequestTypeDef:
    return {
        "startTime": ...,
        "endTime": ...,
        "queryString": ...,
    }
Definition
class StartQueryRequestRequestTypeDef(TypedDict):
    startTime: int,
    endTime: int,
    queryString: str,
    logGroupName: NotRequired[str],
    logGroupNames: NotRequired[Sequence[str]],
    limit: NotRequired[int],

StopQueryRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import StopQueryRequestRequestTypeDef

def get_value() -> StopQueryRequestRequestTypeDef:
    return {
        "queryId": ...,
    }
Definition
class StopQueryRequestRequestTypeDef(TypedDict):
    queryId: str,

TagLogGroupRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import TagLogGroupRequestRequestTypeDef

def get_value() -> TagLogGroupRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "tags": ...,
    }
Definition
class TagLogGroupRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    tags: Mapping[str, str],

TestMetricFilterRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import TestMetricFilterRequestRequestTypeDef

def get_value() -> TestMetricFilterRequestRequestTypeDef:
    return {
        "filterPattern": ...,
        "logEventMessages": ...,
    }
Definition
class TestMetricFilterRequestRequestTypeDef(TypedDict):
    filterPattern: str,
    logEventMessages: Sequence[str],

UntagLogGroupRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import UntagLogGroupRequestRequestTypeDef

def get_value() -> UntagLogGroupRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "tags": ...,
    }
Definition
class UntagLogGroupRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    tags: Sequence[str],

CreateExportTaskResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import CreateExportTaskResponseTypeDef

def get_value() -> CreateExportTaskResponseTypeDef:
    return {
        "taskId": ...,
        "ResponseMetadata": ...,
    }
Definition
class CreateExportTaskResponseTypeDef(TypedDict):
    taskId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteQueryDefinitionResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DeleteQueryDefinitionResponseTypeDef

def get_value() -> DeleteQueryDefinitionResponseTypeDef:
    return {
        "success": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeleteQueryDefinitionResponseTypeDef(TypedDict):
    success: bool,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EmptyResponseMetadataTypeDef

Usage Example
from mypy_boto3_logs.type_defs import EmptyResponseMetadataTypeDef

def get_value() -> EmptyResponseMetadataTypeDef:
    return {
        "ResponseMetadata": ...,
    }
Definition
class EmptyResponseMetadataTypeDef(TypedDict):
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetLogRecordResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import GetLogRecordResponseTypeDef

def get_value() -> GetLogRecordResponseTypeDef:
    return {
        "logRecord": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetLogRecordResponseTypeDef(TypedDict):
    logRecord: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListTagsLogGroupResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import ListTagsLogGroupResponseTypeDef

def get_value() -> ListTagsLogGroupResponseTypeDef:
    return {
        "tags": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListTagsLogGroupResponseTypeDef(TypedDict):
    tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

PutQueryDefinitionResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutQueryDefinitionResponseTypeDef

def get_value() -> PutQueryDefinitionResponseTypeDef:
    return {
        "queryDefinitionId": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutQueryDefinitionResponseTypeDef(TypedDict):
    queryDefinitionId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartQueryResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import StartQueryResponseTypeDef

def get_value() -> StartQueryResponseTypeDef:
    return {
        "queryId": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartQueryResponseTypeDef(TypedDict):
    queryId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StopQueryResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import StopQueryResponseTypeDef

def get_value() -> StopQueryResponseTypeDef:
    return {
        "success": ...,
        "ResponseMetadata": ...,
    }
Definition
class StopQueryResponseTypeDef(TypedDict):
    success: bool,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DescribeDestinationsRequestDescribeDestinationsPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeDestinationsRequestDescribeDestinationsPaginateTypeDef

def get_value() -> DescribeDestinationsRequestDescribeDestinationsPaginateTypeDef:
    return {
        "DestinationNamePrefix": ...,
    }
Definition
class DescribeDestinationsRequestDescribeDestinationsPaginateTypeDef(TypedDict):
    DestinationNamePrefix: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeExportTasksRequestDescribeExportTasksPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeExportTasksRequestDescribeExportTasksPaginateTypeDef

def get_value() -> DescribeExportTasksRequestDescribeExportTasksPaginateTypeDef:
    return {
        "taskId": ...,
    }
Definition
class DescribeExportTasksRequestDescribeExportTasksPaginateTypeDef(TypedDict):
    taskId: NotRequired[str],
    statusCode: NotRequired[ExportTaskStatusCodeType],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See ExportTaskStatusCodeType
  2. See PaginatorConfigTypeDef

DescribeLogGroupsRequestDescribeLogGroupsPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeLogGroupsRequestDescribeLogGroupsPaginateTypeDef

def get_value() -> DescribeLogGroupsRequestDescribeLogGroupsPaginateTypeDef:
    return {
        "logGroupNamePrefix": ...,
    }
Definition
class DescribeLogGroupsRequestDescribeLogGroupsPaginateTypeDef(TypedDict):
    logGroupNamePrefix: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeLogStreamsRequestDescribeLogStreamsPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeLogStreamsRequestDescribeLogStreamsPaginateTypeDef

def get_value() -> DescribeLogStreamsRequestDescribeLogStreamsPaginateTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DescribeLogStreamsRequestDescribeLogStreamsPaginateTypeDef(TypedDict):
    logGroupName: str,
    logStreamNamePrefix: NotRequired[str],
    orderBy: NotRequired[OrderByType],  # (1)
    descending: NotRequired[bool],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See OrderByType
  2. See PaginatorConfigTypeDef

DescribeMetricFiltersRequestDescribeMetricFiltersPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeMetricFiltersRequestDescribeMetricFiltersPaginateTypeDef

def get_value() -> DescribeMetricFiltersRequestDescribeMetricFiltersPaginateTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DescribeMetricFiltersRequestDescribeMetricFiltersPaginateTypeDef(TypedDict):
    logGroupName: NotRequired[str],
    filterNamePrefix: NotRequired[str],
    metricName: NotRequired[str],
    metricNamespace: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeQueriesRequestDescribeQueriesPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeQueriesRequestDescribeQueriesPaginateTypeDef

def get_value() -> DescribeQueriesRequestDescribeQueriesPaginateTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DescribeQueriesRequestDescribeQueriesPaginateTypeDef(TypedDict):
    logGroupName: NotRequired[str],
    status: NotRequired[QueryStatusType],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See QueryStatusType
  2. See PaginatorConfigTypeDef

DescribeResourcePoliciesRequestDescribeResourcePoliciesPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeResourcePoliciesRequestDescribeResourcePoliciesPaginateTypeDef

def get_value() -> DescribeResourcePoliciesRequestDescribeResourcePoliciesPaginateTypeDef:
    return {
        "PaginationConfig": ...,
    }
Definition
class DescribeResourcePoliciesRequestDescribeResourcePoliciesPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeSubscriptionFiltersRequestDescribeSubscriptionFiltersPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeSubscriptionFiltersRequestDescribeSubscriptionFiltersPaginateTypeDef

def get_value() -> DescribeSubscriptionFiltersRequestDescribeSubscriptionFiltersPaginateTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class DescribeSubscriptionFiltersRequestDescribeSubscriptionFiltersPaginateTypeDef(TypedDict):
    logGroupName: str,
    filterNamePrefix: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

FilterLogEventsRequestFilterLogEventsPaginateTypeDef

Usage Example
from mypy_boto3_logs.type_defs import FilterLogEventsRequestFilterLogEventsPaginateTypeDef

def get_value() -> FilterLogEventsRequestFilterLogEventsPaginateTypeDef:
    return {
        "logGroupName": ...,
    }
Definition
class FilterLogEventsRequestFilterLogEventsPaginateTypeDef(TypedDict):
    logGroupName: str,
    logStreamNames: NotRequired[Sequence[str]],
    logStreamNamePrefix: NotRequired[str],
    startTime: NotRequired[int],
    endTime: NotRequired[int],
    filterPattern: NotRequired[str],
    interleaved: NotRequired[bool],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

DescribeDestinationsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeDestinationsResponseTypeDef

def get_value() -> DescribeDestinationsResponseTypeDef:
    return {
        "destinations": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeDestinationsResponseTypeDef(TypedDict):
    destinations: List[DestinationTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See DestinationTypeDef
  2. See ResponseMetadataTypeDef

PutDestinationResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutDestinationResponseTypeDef

def get_value() -> PutDestinationResponseTypeDef:
    return {
        "destination": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutDestinationResponseTypeDef(TypedDict):
    destination: DestinationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See DestinationTypeDef
  2. See ResponseMetadataTypeDef

DescribeLogGroupsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeLogGroupsResponseTypeDef

def get_value() -> DescribeLogGroupsResponseTypeDef:
    return {
        "logGroups": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeLogGroupsResponseTypeDef(TypedDict):
    logGroups: List[LogGroupTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See LogGroupTypeDef
  2. See ResponseMetadataTypeDef

DescribeLogStreamsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeLogStreamsResponseTypeDef

def get_value() -> DescribeLogStreamsResponseTypeDef:
    return {
        "logStreams": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeLogStreamsResponseTypeDef(TypedDict):
    logStreams: List[LogStreamTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See LogStreamTypeDef
  2. See ResponseMetadataTypeDef

DescribeQueriesResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeQueriesResponseTypeDef

def get_value() -> DescribeQueriesResponseTypeDef:
    return {
        "queries": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeQueriesResponseTypeDef(TypedDict):
    queries: List[QueryInfoTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See QueryInfoTypeDef
  2. See ResponseMetadataTypeDef

DescribeQueryDefinitionsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeQueryDefinitionsResponseTypeDef

def get_value() -> DescribeQueryDefinitionsResponseTypeDef:
    return {
        "queryDefinitions": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeQueryDefinitionsResponseTypeDef(TypedDict):
    queryDefinitions: List[QueryDefinitionTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See QueryDefinitionTypeDef
  2. See ResponseMetadataTypeDef

DescribeResourcePoliciesResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeResourcePoliciesResponseTypeDef

def get_value() -> DescribeResourcePoliciesResponseTypeDef:
    return {
        "resourcePolicies": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeResourcePoliciesResponseTypeDef(TypedDict):
    resourcePolicies: List[ResourcePolicyTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ResourcePolicyTypeDef
  2. See ResponseMetadataTypeDef

PutResourcePolicyResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutResourcePolicyResponseTypeDef

def get_value() -> PutResourcePolicyResponseTypeDef:
    return {
        "resourcePolicy": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutResourcePolicyResponseTypeDef(TypedDict):
    resourcePolicy: ResourcePolicyTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ResourcePolicyTypeDef
  2. See ResponseMetadataTypeDef

DescribeSubscriptionFiltersResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeSubscriptionFiltersResponseTypeDef

def get_value() -> DescribeSubscriptionFiltersResponseTypeDef:
    return {
        "subscriptionFilters": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeSubscriptionFiltersResponseTypeDef(TypedDict):
    subscriptionFilters: List[SubscriptionFilterTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See SubscriptionFilterTypeDef
  2. See ResponseMetadataTypeDef

ExportTaskTypeDef

Usage Example
from mypy_boto3_logs.type_defs import ExportTaskTypeDef

def get_value() -> ExportTaskTypeDef:
    return {
        "taskId": ...,
    }
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)
  1. See ExportTaskStatusTypeDef
  2. See ExportTaskExecutionInfoTypeDef

FilterLogEventsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import FilterLogEventsResponseTypeDef

def get_value() -> FilterLogEventsResponseTypeDef:
    return {
        "events": ...,
        "searchedLogStreams": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class FilterLogEventsResponseTypeDef(TypedDict):
    events: List[FilteredLogEventTypeDef],  # (1)
    searchedLogStreams: List[SearchedLogStreamTypeDef],  # (2)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See FilteredLogEventTypeDef
  2. See SearchedLogStreamTypeDef
  3. See ResponseMetadataTypeDef

GetLogEventsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import GetLogEventsResponseTypeDef

def get_value() -> GetLogEventsResponseTypeDef:
    return {
        "events": ...,
        "nextForwardToken": ...,
        "nextBackwardToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetLogEventsResponseTypeDef(TypedDict):
    events: List[OutputLogEventTypeDef],  # (1)
    nextForwardToken: str,
    nextBackwardToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See OutputLogEventTypeDef
  2. See ResponseMetadataTypeDef

GetLogGroupFieldsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import GetLogGroupFieldsResponseTypeDef

def get_value() -> GetLogGroupFieldsResponseTypeDef:
    return {
        "logGroupFields": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetLogGroupFieldsResponseTypeDef(TypedDict):
    logGroupFields: List[LogGroupFieldTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See LogGroupFieldTypeDef
  2. See ResponseMetadataTypeDef

GetQueryResultsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import GetQueryResultsResponseTypeDef

def get_value() -> GetQueryResultsResponseTypeDef:
    return {
        "results": ...,
        "statistics": ...,
        "status": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetQueryResultsResponseTypeDef(TypedDict):
    results: List[List[ResultFieldTypeDef]],  # (1)
    statistics: QueryStatisticsTypeDef,  # (2)
    status: QueryStatusType,  # (3)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See ResultFieldTypeDef
  2. See QueryStatisticsTypeDef
  3. See QueryStatusType
  4. See ResponseMetadataTypeDef

PutLogEventsRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutLogEventsRequestRequestTypeDef

def get_value() -> PutLogEventsRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "logStreamName": ...,
        "logEvents": ...,
    }
Definition
class PutLogEventsRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    logStreamName: str,
    logEvents: Sequence[InputLogEventTypeDef],  # (1)
    sequenceToken: NotRequired[str],
  1. See InputLogEventTypeDef

TestMetricFilterResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import TestMetricFilterResponseTypeDef

def get_value() -> TestMetricFilterResponseTypeDef:
    return {
        "matches": ...,
        "ResponseMetadata": ...,
    }
Definition
class TestMetricFilterResponseTypeDef(TypedDict):
    matches: List[MetricFilterMatchRecordTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See MetricFilterMatchRecordTypeDef
  2. See ResponseMetadataTypeDef

MetricFilterTypeDef

Usage Example
from mypy_boto3_logs.type_defs import MetricFilterTypeDef

def get_value() -> MetricFilterTypeDef:
    return {
        "filterName": ...,
    }
Definition
class MetricFilterTypeDef(TypedDict):
    filterName: NotRequired[str],
    filterPattern: NotRequired[str],
    metricTransformations: NotRequired[List[MetricTransformationTypeDef]],  # (1)
    creationTime: NotRequired[int],
    logGroupName: NotRequired[str],
  1. See MetricTransformationTypeDef

PutMetricFilterRequestRequestTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutMetricFilterRequestRequestTypeDef

def get_value() -> PutMetricFilterRequestRequestTypeDef:
    return {
        "logGroupName": ...,
        "filterName": ...,
        "filterPattern": ...,
        "metricTransformations": ...,
    }
Definition
class PutMetricFilterRequestRequestTypeDef(TypedDict):
    logGroupName: str,
    filterName: str,
    filterPattern: str,
    metricTransformations: Sequence[MetricTransformationTypeDef],  # (1)
  1. See MetricTransformationTypeDef

PutLogEventsResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import PutLogEventsResponseTypeDef

def get_value() -> PutLogEventsResponseTypeDef:
    return {
        "nextSequenceToken": ...,
        "rejectedLogEventsInfo": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutLogEventsResponseTypeDef(TypedDict):
    nextSequenceToken: str,
    rejectedLogEventsInfo: RejectedLogEventsInfoTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RejectedLogEventsInfoTypeDef
  2. See ResponseMetadataTypeDef

DescribeExportTasksResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeExportTasksResponseTypeDef

def get_value() -> DescribeExportTasksResponseTypeDef:
    return {
        "exportTasks": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeExportTasksResponseTypeDef(TypedDict):
    exportTasks: List[ExportTaskTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ExportTaskTypeDef
  2. See ResponseMetadataTypeDef

DescribeMetricFiltersResponseTypeDef

Usage Example
from mypy_boto3_logs.type_defs import DescribeMetricFiltersResponseTypeDef

def get_value() -> DescribeMetricFiltersResponseTypeDef:
    return {
        "metricFilters": ...,
        "nextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class DescribeMetricFiltersResponseTypeDef(TypedDict):
    metricFilters: List[MetricFilterTypeDef],  # (1)
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See MetricFilterTypeDef
  2. See ResponseMetadataTypeDef