@aws-sdk/client-cloudwatch-logs 3.34.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/{dist/cjs → dist-cjs}/CloudWatchLogs.js +0 -0
- package/dist-cjs/CloudWatchLogs.js.map +1 -0
- package/dist-cjs/CloudWatchLogsClient.js +77 -0
- package/dist-cjs/CloudWatchLogsClient.js.map +1 -0
- package/dist-cjs/commands/AssociateKmsKeyCommand.js +73 -0
- package/dist-cjs/commands/AssociateKmsKeyCommand.js.map +1 -0
- package/dist-cjs/commands/CancelExportTaskCommand.js +62 -0
- package/dist-cjs/commands/CancelExportTaskCommand.js.map +1 -0
- package/dist-cjs/commands/CreateExportTaskCommand.js +74 -0
- package/dist-cjs/commands/CreateExportTaskCommand.js.map +1 -0
- package/dist-cjs/commands/CreateLogGroupCommand.js +87 -0
- package/dist-cjs/commands/CreateLogGroupCommand.js.map +1 -0
- package/dist-cjs/commands/CreateLogStreamCommand.js +77 -0
- package/dist-cjs/commands/CreateLogStreamCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteDestinationCommand.js +63 -0
- package/dist-cjs/commands/DeleteDestinationCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteLogGroupCommand.js +62 -0
- package/dist-cjs/commands/DeleteLogGroupCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteLogStreamCommand.js +62 -0
- package/dist-cjs/commands/DeleteLogStreamCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteMetricFilterCommand.js +61 -0
- package/dist-cjs/commands/DeleteMetricFilterCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteQueryDefinitionCommand.js +65 -0
- package/dist-cjs/commands/DeleteQueryDefinitionCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +62 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteRetentionPolicyCommand.js +62 -0
- package/dist-cjs/commands/DeleteRetentionPolicyCommand.js.map +1 -0
- package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js +61 -0
- package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeDestinationsCommand.js +61 -0
- package/dist-cjs/commands/DescribeDestinationsCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeExportTasksCommand.js +62 -0
- package/dist-cjs/commands/DescribeExportTasksCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeLogGroupsCommand.js +69 -0
- package/dist-cjs/commands/DescribeLogGroupsCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeLogStreamsCommand.js +64 -0
- package/dist-cjs/commands/DescribeLogStreamsCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeMetricFiltersCommand.js +63 -0
- package/dist-cjs/commands/DescribeMetricFiltersCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeQueriesCommand.js +63 -0
- package/dist-cjs/commands/DescribeQueriesCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js +63 -0
- package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeResourcePoliciesCommand.js +61 -0
- package/dist-cjs/commands/DescribeResourcePoliciesCommand.js.map +1 -0
- package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js +62 -0
- package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js.map +1 -0
- package/dist-cjs/commands/DisassociateKmsKeyCommand.js +64 -0
- package/dist-cjs/commands/DisassociateKmsKeyCommand.js.map +1 -0
- package/dist-cjs/commands/FilterLogEventsCommand.js +69 -0
- package/dist-cjs/commands/FilterLogEventsCommand.js.map +1 -0
- package/dist-cjs/commands/GetLogEventsCommand.js +66 -0
- package/dist-cjs/commands/GetLogEventsCommand.js.map +1 -0
- package/dist-cjs/commands/GetLogGroupFieldsCommand.js +68 -0
- package/dist-cjs/commands/GetLogGroupFieldsCommand.js.map +1 -0
- package/dist-cjs/commands/GetLogRecordCommand.js +64 -0
- package/dist-cjs/commands/GetLogRecordCommand.js.map +1 -0
- package/dist-cjs/commands/GetQueryResultsCommand.js +71 -0
- package/dist-cjs/commands/GetQueryResultsCommand.js.map +1 -0
- package/dist-cjs/commands/ListTagsLogGroupCommand.js +61 -0
- package/dist-cjs/commands/ListTagsLogGroupCommand.js.map +1 -0
- package/dist-cjs/commands/PutDestinationCommand.js +70 -0
- package/dist-cjs/commands/PutDestinationCommand.js.map +1 -0
- package/dist-cjs/commands/PutDestinationPolicyCommand.js +66 -0
- package/dist-cjs/commands/PutDestinationPolicyCommand.js.map +1 -0
- package/dist-cjs/commands/PutLogEventsCommand.js +98 -0
- package/dist-cjs/commands/PutLogEventsCommand.js.map +1 -0
- package/dist-cjs/commands/PutMetricFilterCommand.js +83 -0
- package/dist-cjs/commands/PutMetricFilterCommand.js.map +1 -0
- package/dist-cjs/commands/PutQueryDefinitionCommand.js +72 -0
- package/dist-cjs/commands/PutQueryDefinitionCommand.js.map +1 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +63 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js.map +1 -0
- package/dist-cjs/commands/PutRetentionPolicyCommand.js +63 -0
- package/dist-cjs/commands/PutRetentionPolicyCommand.js.map +1 -0
- package/dist-cjs/commands/PutSubscriptionFilterCommand.js +89 -0
- package/dist-cjs/commands/PutSubscriptionFilterCommand.js.map +1 -0
- package/dist-cjs/commands/StartQueryCommand.js +66 -0
- package/dist-cjs/commands/StartQueryCommand.js.map +1 -0
- package/dist-cjs/commands/StopQueryCommand.js +62 -0
- package/dist-cjs/commands/StopQueryCommand.js.map +1 -0
- package/dist-cjs/commands/TagLogGroupCommand.js +70 -0
- package/dist-cjs/commands/TagLogGroupCommand.js.map +1 -0
- package/dist-cjs/commands/TestMetricFilterCommand.js +62 -0
- package/dist-cjs/commands/TestMetricFilterCommand.js.map +1 -0
- package/dist-cjs/commands/UntagLogGroupCommand.js +67 -0
- package/dist-cjs/commands/UntagLogGroupCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -0
- package/dist-cjs/endpoints.js.map +1 -0
- package/{dist/cjs → dist-cjs}/index.js +0 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +0 -0
- package/dist-cjs/models/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeDestinationsPaginator.js +0 -0
- package/dist-cjs/pagination/DescribeDestinationsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeLogGroupsPaginator.js +0 -0
- package/dist-cjs/pagination/DescribeLogGroupsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeLogStreamsPaginator.js +0 -0
- package/dist-cjs/pagination/DescribeLogStreamsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeMetricFiltersPaginator.js +0 -0
- package/dist-cjs/pagination/DescribeMetricFiltersPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeSubscriptionFiltersPaginator.js +0 -0
- package/dist-cjs/pagination/DescribeSubscriptionFiltersPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/FilterLogEventsPaginator.js +0 -0
- package/dist-cjs/pagination/FilterLogEventsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetLogEventsPaginator.js +0 -0
- package/dist-cjs/pagination/GetLogEventsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/dist-cjs/pagination/Interfaces.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -0
- package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/dist-cjs/runtimeConfig.js +47 -0
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -0
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/CloudWatchLogs.js +0 -0
- package/dist-es/CloudWatchLogs.js.map +1 -0
- package/dist-es/CloudWatchLogsClient.js +38 -0
- package/dist-es/CloudWatchLogsClient.js.map +1 -0
- package/dist-es/commands/AssociateKmsKeyCommand.js +40 -0
- package/dist-es/commands/AssociateKmsKeyCommand.js.map +1 -0
- package/dist-es/commands/CancelExportTaskCommand.js +40 -0
- package/dist-es/commands/CancelExportTaskCommand.js.map +1 -0
- package/dist-es/commands/CreateExportTaskCommand.js +40 -0
- package/dist-es/commands/CreateExportTaskCommand.js.map +1 -0
- package/dist-es/commands/CreateLogGroupCommand.js +40 -0
- package/dist-es/commands/CreateLogGroupCommand.js.map +1 -0
- package/dist-es/commands/CreateLogStreamCommand.js +40 -0
- package/dist-es/commands/CreateLogStreamCommand.js.map +1 -0
- package/dist-es/commands/DeleteDestinationCommand.js +40 -0
- package/dist-es/commands/DeleteDestinationCommand.js.map +1 -0
- package/dist-es/commands/DeleteLogGroupCommand.js +40 -0
- package/dist-es/commands/DeleteLogGroupCommand.js.map +1 -0
- package/dist-es/commands/DeleteLogStreamCommand.js +40 -0
- package/dist-es/commands/DeleteLogStreamCommand.js.map +1 -0
- package/dist-es/commands/DeleteMetricFilterCommand.js +40 -0
- package/dist-es/commands/DeleteMetricFilterCommand.js.map +1 -0
- package/dist-es/commands/DeleteQueryDefinitionCommand.js +40 -0
- package/dist-es/commands/DeleteQueryDefinitionCommand.js.map +1 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +40 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js.map +1 -0
- package/dist-es/commands/DeleteRetentionPolicyCommand.js +40 -0
- package/dist-es/commands/DeleteRetentionPolicyCommand.js.map +1 -0
- package/dist-es/commands/DeleteSubscriptionFilterCommand.js +40 -0
- package/dist-es/commands/DeleteSubscriptionFilterCommand.js.map +1 -0
- package/dist-es/commands/DescribeDestinationsCommand.js +40 -0
- package/dist-es/commands/DescribeDestinationsCommand.js.map +1 -0
- package/dist-es/commands/DescribeExportTasksCommand.js +40 -0
- package/dist-es/commands/DescribeExportTasksCommand.js.map +1 -0
- package/dist-es/commands/DescribeLogGroupsCommand.js +40 -0
- package/dist-es/commands/DescribeLogGroupsCommand.js.map +1 -0
- package/dist-es/commands/DescribeLogStreamsCommand.js +40 -0
- package/dist-es/commands/DescribeLogStreamsCommand.js.map +1 -0
- package/dist-es/commands/DescribeMetricFiltersCommand.js +40 -0
- package/dist-es/commands/DescribeMetricFiltersCommand.js.map +1 -0
- package/dist-es/commands/DescribeQueriesCommand.js +40 -0
- package/dist-es/commands/DescribeQueriesCommand.js.map +1 -0
- package/dist-es/commands/DescribeQueryDefinitionsCommand.js +40 -0
- package/dist-es/commands/DescribeQueryDefinitionsCommand.js.map +1 -0
- package/dist-es/commands/DescribeResourcePoliciesCommand.js +40 -0
- package/dist-es/commands/DescribeResourcePoliciesCommand.js.map +1 -0
- package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +40 -0
- package/dist-es/commands/DescribeSubscriptionFiltersCommand.js.map +1 -0
- package/dist-es/commands/DisassociateKmsKeyCommand.js +40 -0
- package/dist-es/commands/DisassociateKmsKeyCommand.js.map +1 -0
- package/dist-es/commands/FilterLogEventsCommand.js +40 -0
- package/dist-es/commands/FilterLogEventsCommand.js.map +1 -0
- package/dist-es/commands/GetLogEventsCommand.js +40 -0
- package/dist-es/commands/GetLogEventsCommand.js.map +1 -0
- package/dist-es/commands/GetLogGroupFieldsCommand.js +40 -0
- package/dist-es/commands/GetLogGroupFieldsCommand.js.map +1 -0
- package/dist-es/commands/GetLogRecordCommand.js +40 -0
- package/dist-es/commands/GetLogRecordCommand.js.map +1 -0
- package/dist-es/commands/GetQueryResultsCommand.js +40 -0
- package/dist-es/commands/GetQueryResultsCommand.js.map +1 -0
- package/dist-es/commands/ListTagsLogGroupCommand.js +40 -0
- package/dist-es/commands/ListTagsLogGroupCommand.js.map +1 -0
- package/dist-es/commands/PutDestinationCommand.js +40 -0
- package/dist-es/commands/PutDestinationCommand.js.map +1 -0
- package/dist-es/commands/PutDestinationPolicyCommand.js +40 -0
- package/dist-es/commands/PutDestinationPolicyCommand.js.map +1 -0
- package/dist-es/commands/PutLogEventsCommand.js +40 -0
- package/dist-es/commands/PutLogEventsCommand.js.map +1 -0
- package/dist-es/commands/PutMetricFilterCommand.js +40 -0
- package/dist-es/commands/PutMetricFilterCommand.js.map +1 -0
- package/dist-es/commands/PutQueryDefinitionCommand.js +40 -0
- package/dist-es/commands/PutQueryDefinitionCommand.js.map +1 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +40 -0
- package/dist-es/commands/PutResourcePolicyCommand.js.map +1 -0
- package/dist-es/commands/PutRetentionPolicyCommand.js +40 -0
- package/dist-es/commands/PutRetentionPolicyCommand.js.map +1 -0
- package/dist-es/commands/PutSubscriptionFilterCommand.js +40 -0
- package/dist-es/commands/PutSubscriptionFilterCommand.js.map +1 -0
- package/dist-es/commands/StartQueryCommand.js +40 -0
- package/dist-es/commands/StartQueryCommand.js.map +1 -0
- package/dist-es/commands/StopQueryCommand.js +40 -0
- package/dist-es/commands/StopQueryCommand.js.map +1 -0
- package/dist-es/commands/TagLogGroupCommand.js +40 -0
- package/dist-es/commands/TagLogGroupCommand.js.map +1 -0
- package/dist-es/commands/TestMetricFilterCommand.js +40 -0
- package/dist-es/commands/TestMetricFilterCommand.js.map +1 -0
- package/dist-es/commands/UntagLogGroupCommand.js +40 -0
- package/dist-es/commands/UntagLogGroupCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +0 -0
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -0
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeDestinationsPaginator.js +0 -0
- package/dist-es/pagination/DescribeDestinationsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeLogGroupsPaginator.js +0 -0
- package/dist-es/pagination/DescribeLogGroupsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeLogStreamsPaginator.js +0 -0
- package/dist-es/pagination/DescribeLogStreamsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeMetricFiltersPaginator.js +0 -0
- package/dist-es/pagination/DescribeMetricFiltersPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeSubscriptionFiltersPaginator.js +0 -0
- package/dist-es/pagination/DescribeSubscriptionFiltersPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/FilterLogEventsPaginator.js +0 -0
- package/dist-es/pagination/FilterLogEventsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetLogEventsPaginator.js +0 -0
- package/dist-es/pagination/GetLogEventsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/dist-es/pagination/Interfaces.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -0
- package/dist-es/protocols/Aws_json1_1.js.map +1 -0
- package/dist-es/runtimeConfig.browser.js +17 -0
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/dist-es/runtimeConfig.js +22 -0
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -0
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/dist-types/CloudWatchLogs.d.ts +605 -0
- package/dist-types/CloudWatchLogsClient.d.ts +207 -0
- package/dist-types/commands/AssociateKmsKeyCommand.d.ts +47 -0
- package/dist-types/commands/CancelExportTaskCommand.d.ts +36 -0
- package/dist-types/commands/CreateExportTaskCommand.d.ts +48 -0
- package/dist-types/commands/CreateLogGroupCommand.d.ts +61 -0
- package/dist-types/commands/CreateLogStreamCommand.d.ts +51 -0
- package/dist-types/commands/DeleteDestinationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteLogGroupCommand.d.ts +36 -0
- package/dist-types/commands/DeleteLogStreamCommand.d.ts +36 -0
- package/dist-types/commands/DeleteMetricFilterCommand.d.ts +35 -0
- package/dist-types/commands/DeleteQueryDefinitionCommand.d.ts +39 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +36 -0
- package/dist-types/commands/DeleteRetentionPolicyCommand.d.ts +36 -0
- package/dist-types/commands/DeleteSubscriptionFilterCommand.d.ts +35 -0
- package/dist-types/commands/DescribeDestinationsCommand.d.ts +35 -0
- package/dist-types/commands/DescribeExportTasksCommand.d.ts +36 -0
- package/dist-types/commands/DescribeLogGroupsCommand.d.ts +43 -0
- package/dist-types/commands/DescribeLogStreamsCommand.d.ts +38 -0
- package/dist-types/commands/DescribeMetricFiltersCommand.d.ts +37 -0
- package/dist-types/commands/DescribeQueriesCommand.d.ts +37 -0
- package/dist-types/commands/DescribeQueryDefinitionsCommand.d.ts +37 -0
- package/dist-types/commands/DescribeResourcePoliciesCommand.d.ts +35 -0
- package/dist-types/commands/DescribeSubscriptionFiltersCommand.d.ts +36 -0
- package/dist-types/commands/DisassociateKmsKeyCommand.d.ts +38 -0
- package/dist-types/commands/FilterLogEventsCommand.d.ts +43 -0
- package/dist-types/commands/GetLogEventsCommand.d.ts +40 -0
- package/dist-types/commands/GetLogGroupFieldsCommand.d.ts +42 -0
- package/dist-types/commands/GetLogRecordCommand.d.ts +38 -0
- package/dist-types/commands/GetQueryResultsCommand.d.ts +45 -0
- package/dist-types/commands/ListTagsLogGroupCommand.d.ts +35 -0
- package/dist-types/commands/PutDestinationCommand.d.ts +44 -0
- package/dist-types/commands/PutDestinationPolicyCommand.d.ts +40 -0
- package/dist-types/commands/PutLogEventsCommand.d.ts +72 -0
- package/dist-types/commands/PutMetricFilterCommand.d.ts +57 -0
- package/dist-types/commands/PutQueryDefinitionCommand.d.ts +46 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +37 -0
- package/dist-types/commands/PutRetentionPolicyCommand.d.ts +37 -0
- package/dist-types/commands/PutSubscriptionFilterCommand.d.ts +63 -0
- package/dist-types/commands/StartQueryCommand.d.ts +40 -0
- package/dist-types/commands/StopQueryCommand.d.ts +36 -0
- package/dist-types/commands/TagLogGroupCommand.d.ts +44 -0
- package/dist-types/commands/TestMetricFilterCommand.d.ts +36 -0
- package/dist-types/commands/UntagLogGroupCommand.d.ts +41 -0
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/dist-types/pagination/DescribeDestinationsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeLogGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeLogStreamsPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeMetricFiltersPaginator.d.ts +4 -0
- package/dist-types/pagination/DescribeSubscriptionFiltersPaginator.d.ts +4 -0
- package/dist-types/pagination/FilterLogEventsPaginator.d.ts +4 -0
- package/dist-types/pagination/GetLogEventsPaginator.d.ts +4 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +128 -0
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/dist-types/runtimeConfig.d.ts +37 -0
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/CloudWatchLogs.d.ts +605 -0
- package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +207 -0
- package/dist-types/ts3.4/commands/AssociateKmsKeyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CancelExportTaskCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateExportTaskCommand.d.ts +48 -0
- package/dist-types/ts3.4/commands/CreateLogGroupCommand.d.ts +61 -0
- package/dist-types/ts3.4/commands/CreateLogStreamCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteDestinationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteLogGroupCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteLogStreamCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteMetricFilterCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeleteQueryDefinitionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteRetentionPolicyCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteSubscriptionFilterCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeDestinationsCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeExportTasksCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DescribeLogGroupsCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/DescribeLogStreamsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeMetricFiltersCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeQueriesCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeQueryDefinitionsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeResourcePoliciesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DescribeSubscriptionFiltersCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DisassociateKmsKeyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/FilterLogEventsCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/GetLogEventsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetLogGroupFieldsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetLogRecordCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/ListTagsLogGroupCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/PutDestinationCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/PutDestinationPolicyCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/PutLogEventsCommand.d.ts +72 -0
- package/dist-types/ts3.4/commands/PutMetricFilterCommand.d.ts +57 -0
- package/dist-types/ts3.4/commands/PutQueryDefinitionCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/PutRetentionPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/PutSubscriptionFilterCommand.d.ts +63 -0
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/StopQueryCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/TagLogGroupCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/TestMetricFilterCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UntagLogGroupCommand.d.ts +41 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/dist-types/ts3.4/pagination/DescribeDestinationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeLogGroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeLogStreamsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeMetricFiltersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/DescribeSubscriptionFiltersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/FilterLogEventsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/GetLogEventsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +128 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +0 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +42 -42
- package/src/CloudWatchLogs.ts +1827 -0
- package/src/CloudWatchLogsClient.ts +431 -0
- package/src/commands/AssociateKmsKeyCommand.ts +107 -0
- package/src/commands/CancelExportTaskCommand.ts +96 -0
- package/src/commands/CreateExportTaskCommand.ts +108 -0
- package/src/commands/CreateLogGroupCommand.ts +121 -0
- package/src/commands/CreateLogStreamCommand.ts +111 -0
- package/src/commands/DeleteDestinationCommand.ts +97 -0
- package/src/commands/DeleteLogGroupCommand.ts +96 -0
- package/src/commands/DeleteLogStreamCommand.ts +96 -0
- package/src/commands/DeleteMetricFilterCommand.ts +95 -0
- package/src/commands/DeleteQueryDefinitionCommand.ts +99 -0
- package/src/commands/DeleteResourcePolicyCommand.ts +96 -0
- package/src/commands/DeleteRetentionPolicyCommand.ts +96 -0
- package/src/commands/DeleteSubscriptionFilterCommand.ts +95 -0
- package/src/commands/DescribeDestinationsCommand.ts +95 -0
- package/src/commands/DescribeExportTasksCommand.ts +96 -0
- package/src/commands/DescribeLogGroupsCommand.ts +103 -0
- package/src/commands/DescribeLogStreamsCommand.ts +98 -0
- package/src/commands/DescribeMetricFiltersCommand.ts +97 -0
- package/src/commands/DescribeQueriesCommand.ts +97 -0
- package/src/commands/DescribeQueryDefinitionsCommand.ts +97 -0
- package/src/commands/DescribeResourcePoliciesCommand.ts +95 -0
- package/src/commands/DescribeSubscriptionFiltersCommand.ts +101 -0
- package/src/commands/DisassociateKmsKeyCommand.ts +98 -0
- package/src/commands/FilterLogEventsCommand.ts +103 -0
- package/src/commands/GetLogEventsCommand.ts +100 -0
- package/src/commands/GetLogGroupFieldsCommand.ts +102 -0
- package/src/commands/GetLogRecordCommand.ts +98 -0
- package/src/commands/GetQueryResultsCommand.ts +105 -0
- package/src/commands/ListTagsLogGroupCommand.ts +95 -0
- package/src/commands/PutDestinationCommand.ts +104 -0
- package/src/commands/PutDestinationPolicyCommand.ts +100 -0
- package/src/commands/PutLogEventsCommand.ts +132 -0
- package/src/commands/PutMetricFilterCommand.ts +117 -0
- package/src/commands/PutQueryDefinitionCommand.ts +106 -0
- package/src/commands/PutResourcePolicyCommand.ts +97 -0
- package/src/commands/PutRetentionPolicyCommand.ts +97 -0
- package/src/commands/PutSubscriptionFilterCommand.ts +123 -0
- package/src/commands/StartQueryCommand.ts +100 -0
- package/src/commands/StopQueryCommand.ts +93 -0
- package/src/commands/TagLogGroupCommand.ts +104 -0
- package/src/commands/TestMetricFilterCommand.ts +96 -0
- package/src/commands/UntagLogGroupCommand.ts +101 -0
- package/src/endpoints.ts +86 -0
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/src/pagination/DescribeDestinationsPaginator.ts +59 -0
- package/src/pagination/DescribeLogGroupsPaginator.ts +59 -0
- package/src/pagination/DescribeLogStreamsPaginator.ts +59 -0
- package/src/pagination/DescribeMetricFiltersPaginator.ts +59 -0
- package/src/pagination/DescribeSubscriptionFiltersPaginator.ts +59 -0
- package/src/pagination/FilterLogEventsPaginator.ts +59 -0
- package/src/pagination/GetLogEventsPaginator.ts +59 -0
- package/src/pagination/Interfaces.ts +8 -0
- package/src/protocols/Aws_json1_1.ts +5413 -0
- package/src/runtimeConfig.browser.ts +41 -0
- package/src/runtimeConfig.native.ts +17 -0
- package/src/runtimeConfig.shared.ts +17 -0
- package/src/runtimeConfig.ts +46 -0
- package/tsconfig.es.json +1 -1
- package/tsconfig.json +4 -2
- package/tsconfig.types.json +3 -2
- package/CloudWatchLogs.ts +0 -1826
- package/CloudWatchLogsClient.ts +0 -430
- package/commands/AssociateKmsKeyCommand.ts +0 -106
- package/commands/CancelExportTaskCommand.ts +0 -95
- package/commands/CreateExportTaskCommand.ts +0 -107
- package/commands/CreateLogGroupCommand.ts +0 -120
- package/commands/CreateLogStreamCommand.ts +0 -110
- package/commands/DeleteDestinationCommand.ts +0 -96
- package/commands/DeleteLogGroupCommand.ts +0 -95
- package/commands/DeleteLogStreamCommand.ts +0 -95
- package/commands/DeleteMetricFilterCommand.ts +0 -94
- package/commands/DeleteQueryDefinitionCommand.ts +0 -98
- package/commands/DeleteResourcePolicyCommand.ts +0 -95
- package/commands/DeleteRetentionPolicyCommand.ts +0 -95
- package/commands/DeleteSubscriptionFilterCommand.ts +0 -94
- package/commands/DescribeDestinationsCommand.ts +0 -94
- package/commands/DescribeExportTasksCommand.ts +0 -95
- package/commands/DescribeLogGroupsCommand.ts +0 -102
- package/commands/DescribeLogStreamsCommand.ts +0 -97
- package/commands/DescribeMetricFiltersCommand.ts +0 -96
- package/commands/DescribeQueriesCommand.ts +0 -96
- package/commands/DescribeQueryDefinitionsCommand.ts +0 -96
- package/commands/DescribeResourcePoliciesCommand.ts +0 -94
- package/commands/DescribeSubscriptionFiltersCommand.ts +0 -100
- package/commands/DisassociateKmsKeyCommand.ts +0 -97
- package/commands/FilterLogEventsCommand.ts +0 -102
- package/commands/GetLogEventsCommand.ts +0 -99
- package/commands/GetLogGroupFieldsCommand.ts +0 -101
- package/commands/GetLogRecordCommand.ts +0 -97
- package/commands/GetQueryResultsCommand.ts +0 -104
- package/commands/ListTagsLogGroupCommand.ts +0 -94
- package/commands/PutDestinationCommand.ts +0 -103
- package/commands/PutDestinationPolicyCommand.ts +0 -99
- package/commands/PutLogEventsCommand.ts +0 -131
- package/commands/PutMetricFilterCommand.ts +0 -116
- package/commands/PutQueryDefinitionCommand.ts +0 -105
- package/commands/PutResourcePolicyCommand.ts +0 -96
- package/commands/PutRetentionPolicyCommand.ts +0 -96
- package/commands/PutSubscriptionFilterCommand.ts +0 -122
- package/commands/StartQueryCommand.ts +0 -99
- package/commands/StopQueryCommand.ts +0 -92
- package/commands/TagLogGroupCommand.ts +0 -103
- package/commands/TestMetricFilterCommand.ts +0 -95
- package/commands/UntagLogGroupCommand.ts +0 -100
- package/dist/cjs/CloudWatchLogs.js.map +0 -1
- package/dist/cjs/CloudWatchLogsClient.js +0 -77
- package/dist/cjs/CloudWatchLogsClient.js.map +0 -1
- package/dist/cjs/commands/AssociateKmsKeyCommand.js +0 -73
- package/dist/cjs/commands/AssociateKmsKeyCommand.js.map +0 -1
- package/dist/cjs/commands/CancelExportTaskCommand.js +0 -62
- package/dist/cjs/commands/CancelExportTaskCommand.js.map +0 -1
- package/dist/cjs/commands/CreateExportTaskCommand.js +0 -74
- package/dist/cjs/commands/CreateExportTaskCommand.js.map +0 -1
- package/dist/cjs/commands/CreateLogGroupCommand.js +0 -87
- package/dist/cjs/commands/CreateLogGroupCommand.js.map +0 -1
- package/dist/cjs/commands/CreateLogStreamCommand.js +0 -77
- package/dist/cjs/commands/CreateLogStreamCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteDestinationCommand.js +0 -63
- package/dist/cjs/commands/DeleteDestinationCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteLogGroupCommand.js +0 -62
- package/dist/cjs/commands/DeleteLogGroupCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteLogStreamCommand.js +0 -62
- package/dist/cjs/commands/DeleteLogStreamCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteMetricFilterCommand.js +0 -61
- package/dist/cjs/commands/DeleteMetricFilterCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteQueryDefinitionCommand.js +0 -65
- package/dist/cjs/commands/DeleteQueryDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js +0 -62
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteRetentionPolicyCommand.js +0 -62
- package/dist/cjs/commands/DeleteRetentionPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteSubscriptionFilterCommand.js +0 -61
- package/dist/cjs/commands/DeleteSubscriptionFilterCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeDestinationsCommand.js +0 -61
- package/dist/cjs/commands/DescribeDestinationsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeExportTasksCommand.js +0 -62
- package/dist/cjs/commands/DescribeExportTasksCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeLogGroupsCommand.js +0 -69
- package/dist/cjs/commands/DescribeLogGroupsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeLogStreamsCommand.js +0 -64
- package/dist/cjs/commands/DescribeLogStreamsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeMetricFiltersCommand.js +0 -63
- package/dist/cjs/commands/DescribeMetricFiltersCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeQueriesCommand.js +0 -63
- package/dist/cjs/commands/DescribeQueriesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeQueryDefinitionsCommand.js +0 -63
- package/dist/cjs/commands/DescribeQueryDefinitionsCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeResourcePoliciesCommand.js +0 -61
- package/dist/cjs/commands/DescribeResourcePoliciesCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeSubscriptionFiltersCommand.js +0 -62
- package/dist/cjs/commands/DescribeSubscriptionFiltersCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateKmsKeyCommand.js +0 -64
- package/dist/cjs/commands/DisassociateKmsKeyCommand.js.map +0 -1
- package/dist/cjs/commands/FilterLogEventsCommand.js +0 -69
- package/dist/cjs/commands/FilterLogEventsCommand.js.map +0 -1
- package/dist/cjs/commands/GetLogEventsCommand.js +0 -66
- package/dist/cjs/commands/GetLogEventsCommand.js.map +0 -1
- package/dist/cjs/commands/GetLogGroupFieldsCommand.js +0 -68
- package/dist/cjs/commands/GetLogGroupFieldsCommand.js.map +0 -1
- package/dist/cjs/commands/GetLogRecordCommand.js +0 -64
- package/dist/cjs/commands/GetLogRecordCommand.js.map +0 -1
- package/dist/cjs/commands/GetQueryResultsCommand.js +0 -71
- package/dist/cjs/commands/GetQueryResultsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsLogGroupCommand.js +0 -61
- package/dist/cjs/commands/ListTagsLogGroupCommand.js.map +0 -1
- package/dist/cjs/commands/PutDestinationCommand.js +0 -70
- package/dist/cjs/commands/PutDestinationCommand.js.map +0 -1
- package/dist/cjs/commands/PutDestinationPolicyCommand.js +0 -66
- package/dist/cjs/commands/PutDestinationPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutLogEventsCommand.js +0 -98
- package/dist/cjs/commands/PutLogEventsCommand.js.map +0 -1
- package/dist/cjs/commands/PutMetricFilterCommand.js +0 -83
- package/dist/cjs/commands/PutMetricFilterCommand.js.map +0 -1
- package/dist/cjs/commands/PutQueryDefinitionCommand.js +0 -72
- package/dist/cjs/commands/PutQueryDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/PutResourcePolicyCommand.js +0 -63
- package/dist/cjs/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutRetentionPolicyCommand.js +0 -63
- package/dist/cjs/commands/PutRetentionPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutSubscriptionFilterCommand.js +0 -89
- package/dist/cjs/commands/PutSubscriptionFilterCommand.js.map +0 -1
- package/dist/cjs/commands/StartQueryCommand.js +0 -66
- package/dist/cjs/commands/StartQueryCommand.js.map +0 -1
- package/dist/cjs/commands/StopQueryCommand.js +0 -62
- package/dist/cjs/commands/StopQueryCommand.js.map +0 -1
- package/dist/cjs/commands/TagLogGroupCommand.js +0 -70
- package/dist/cjs/commands/TagLogGroupCommand.js.map +0 -1
- package/dist/cjs/commands/TestMetricFilterCommand.js +0 -62
- package/dist/cjs/commands/TestMetricFilterCommand.js.map +0 -1
- package/dist/cjs/commands/UntagLogGroupCommand.js +0 -67
- package/dist/cjs/commands/UntagLogGroupCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/DescribeDestinationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeLogGroupsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeLogStreamsPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeMetricFiltersPaginator.js.map +0 -1
- package/dist/cjs/pagination/DescribeSubscriptionFiltersPaginator.js.map +0 -1
- package/dist/cjs/pagination/FilterLogEventsPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetLogEventsPaginator.js.map +0 -1
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js +0 -41
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js +0 -46
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js +0 -21
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/CloudWatchLogs.js.map +0 -1
- package/dist/es/CloudWatchLogsClient.js +0 -38
- package/dist/es/CloudWatchLogsClient.js.map +0 -1
- package/dist/es/commands/AssociateKmsKeyCommand.js +0 -40
- package/dist/es/commands/AssociateKmsKeyCommand.js.map +0 -1
- package/dist/es/commands/CancelExportTaskCommand.js +0 -40
- package/dist/es/commands/CancelExportTaskCommand.js.map +0 -1
- package/dist/es/commands/CreateExportTaskCommand.js +0 -40
- package/dist/es/commands/CreateExportTaskCommand.js.map +0 -1
- package/dist/es/commands/CreateLogGroupCommand.js +0 -40
- package/dist/es/commands/CreateLogGroupCommand.js.map +0 -1
- package/dist/es/commands/CreateLogStreamCommand.js +0 -40
- package/dist/es/commands/CreateLogStreamCommand.js.map +0 -1
- package/dist/es/commands/DeleteDestinationCommand.js +0 -40
- package/dist/es/commands/DeleteDestinationCommand.js.map +0 -1
- package/dist/es/commands/DeleteLogGroupCommand.js +0 -40
- package/dist/es/commands/DeleteLogGroupCommand.js.map +0 -1
- package/dist/es/commands/DeleteLogStreamCommand.js +0 -40
- package/dist/es/commands/DeleteLogStreamCommand.js.map +0 -1
- package/dist/es/commands/DeleteMetricFilterCommand.js +0 -40
- package/dist/es/commands/DeleteMetricFilterCommand.js.map +0 -1
- package/dist/es/commands/DeleteQueryDefinitionCommand.js +0 -40
- package/dist/es/commands/DeleteQueryDefinitionCommand.js.map +0 -1
- package/dist/es/commands/DeleteResourcePolicyCommand.js +0 -40
- package/dist/es/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteRetentionPolicyCommand.js +0 -40
- package/dist/es/commands/DeleteRetentionPolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteSubscriptionFilterCommand.js +0 -40
- package/dist/es/commands/DeleteSubscriptionFilterCommand.js.map +0 -1
- package/dist/es/commands/DescribeDestinationsCommand.js +0 -40
- package/dist/es/commands/DescribeDestinationsCommand.js.map +0 -1
- package/dist/es/commands/DescribeExportTasksCommand.js +0 -40
- package/dist/es/commands/DescribeExportTasksCommand.js.map +0 -1
- package/dist/es/commands/DescribeLogGroupsCommand.js +0 -40
- package/dist/es/commands/DescribeLogGroupsCommand.js.map +0 -1
- package/dist/es/commands/DescribeLogStreamsCommand.js +0 -40
- package/dist/es/commands/DescribeLogStreamsCommand.js.map +0 -1
- package/dist/es/commands/DescribeMetricFiltersCommand.js +0 -40
- package/dist/es/commands/DescribeMetricFiltersCommand.js.map +0 -1
- package/dist/es/commands/DescribeQueriesCommand.js +0 -40
- package/dist/es/commands/DescribeQueriesCommand.js.map +0 -1
- package/dist/es/commands/DescribeQueryDefinitionsCommand.js +0 -40
- package/dist/es/commands/DescribeQueryDefinitionsCommand.js.map +0 -1
- package/dist/es/commands/DescribeResourcePoliciesCommand.js +0 -40
- package/dist/es/commands/DescribeResourcePoliciesCommand.js.map +0 -1
- package/dist/es/commands/DescribeSubscriptionFiltersCommand.js +0 -40
- package/dist/es/commands/DescribeSubscriptionFiltersCommand.js.map +0 -1
- package/dist/es/commands/DisassociateKmsKeyCommand.js +0 -40
- package/dist/es/commands/DisassociateKmsKeyCommand.js.map +0 -1
- package/dist/es/commands/FilterLogEventsCommand.js +0 -40
- package/dist/es/commands/FilterLogEventsCommand.js.map +0 -1
- package/dist/es/commands/GetLogEventsCommand.js +0 -40
- package/dist/es/commands/GetLogEventsCommand.js.map +0 -1
- package/dist/es/commands/GetLogGroupFieldsCommand.js +0 -40
- package/dist/es/commands/GetLogGroupFieldsCommand.js.map +0 -1
- package/dist/es/commands/GetLogRecordCommand.js +0 -40
- package/dist/es/commands/GetLogRecordCommand.js.map +0 -1
- package/dist/es/commands/GetQueryResultsCommand.js +0 -40
- package/dist/es/commands/GetQueryResultsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsLogGroupCommand.js +0 -40
- package/dist/es/commands/ListTagsLogGroupCommand.js.map +0 -1
- package/dist/es/commands/PutDestinationCommand.js +0 -40
- package/dist/es/commands/PutDestinationCommand.js.map +0 -1
- package/dist/es/commands/PutDestinationPolicyCommand.js +0 -40
- package/dist/es/commands/PutDestinationPolicyCommand.js.map +0 -1
- package/dist/es/commands/PutLogEventsCommand.js +0 -40
- package/dist/es/commands/PutLogEventsCommand.js.map +0 -1
- package/dist/es/commands/PutMetricFilterCommand.js +0 -40
- package/dist/es/commands/PutMetricFilterCommand.js.map +0 -1
- package/dist/es/commands/PutQueryDefinitionCommand.js +0 -40
- package/dist/es/commands/PutQueryDefinitionCommand.js.map +0 -1
- package/dist/es/commands/PutResourcePolicyCommand.js +0 -40
- package/dist/es/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist/es/commands/PutRetentionPolicyCommand.js +0 -40
- package/dist/es/commands/PutRetentionPolicyCommand.js.map +0 -1
- package/dist/es/commands/PutSubscriptionFilterCommand.js +0 -40
- package/dist/es/commands/PutSubscriptionFilterCommand.js.map +0 -1
- package/dist/es/commands/StartQueryCommand.js +0 -40
- package/dist/es/commands/StartQueryCommand.js.map +0 -1
- package/dist/es/commands/StopQueryCommand.js +0 -40
- package/dist/es/commands/StopQueryCommand.js.map +0 -1
- package/dist/es/commands/TagLogGroupCommand.js +0 -40
- package/dist/es/commands/TagLogGroupCommand.js.map +0 -1
- package/dist/es/commands/TestMetricFilterCommand.js +0 -40
- package/dist/es/commands/TestMetricFilterCommand.js.map +0 -1
- package/dist/es/commands/UntagLogGroupCommand.js +0 -40
- package/dist/es/commands/UntagLogGroupCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeDestinationsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeLogGroupsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeLogStreamsPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeMetricFiltersPaginator.js.map +0 -1
- package/dist/es/pagination/DescribeSubscriptionFiltersPaginator.js.map +0 -1
- package/dist/es/pagination/FilterLogEventsPaginator.js.map +0 -1
- package/dist/es/pagination/GetLogEventsPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js +0 -17
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js +0 -22
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js +0 -14
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/CloudWatchLogs.d.ts +0 -605
- package/dist/types/CloudWatchLogsClient.d.ts +0 -207
- package/dist/types/commands/AssociateKmsKeyCommand.d.ts +0 -47
- package/dist/types/commands/CancelExportTaskCommand.d.ts +0 -36
- package/dist/types/commands/CreateExportTaskCommand.d.ts +0 -48
- package/dist/types/commands/CreateLogGroupCommand.d.ts +0 -61
- package/dist/types/commands/CreateLogStreamCommand.d.ts +0 -51
- package/dist/types/commands/DeleteDestinationCommand.d.ts +0 -37
- package/dist/types/commands/DeleteLogGroupCommand.d.ts +0 -36
- package/dist/types/commands/DeleteLogStreamCommand.d.ts +0 -36
- package/dist/types/commands/DeleteMetricFilterCommand.d.ts +0 -35
- package/dist/types/commands/DeleteQueryDefinitionCommand.d.ts +0 -39
- package/dist/types/commands/DeleteResourcePolicyCommand.d.ts +0 -36
- package/dist/types/commands/DeleteRetentionPolicyCommand.d.ts +0 -36
- package/dist/types/commands/DeleteSubscriptionFilterCommand.d.ts +0 -35
- package/dist/types/commands/DescribeDestinationsCommand.d.ts +0 -35
- package/dist/types/commands/DescribeExportTasksCommand.d.ts +0 -36
- package/dist/types/commands/DescribeLogGroupsCommand.d.ts +0 -43
- package/dist/types/commands/DescribeLogStreamsCommand.d.ts +0 -38
- package/dist/types/commands/DescribeMetricFiltersCommand.d.ts +0 -37
- package/dist/types/commands/DescribeQueriesCommand.d.ts +0 -37
- package/dist/types/commands/DescribeQueryDefinitionsCommand.d.ts +0 -37
- package/dist/types/commands/DescribeResourcePoliciesCommand.d.ts +0 -35
- package/dist/types/commands/DescribeSubscriptionFiltersCommand.d.ts +0 -36
- package/dist/types/commands/DisassociateKmsKeyCommand.d.ts +0 -38
- package/dist/types/commands/FilterLogEventsCommand.d.ts +0 -43
- package/dist/types/commands/GetLogEventsCommand.d.ts +0 -40
- package/dist/types/commands/GetLogGroupFieldsCommand.d.ts +0 -42
- package/dist/types/commands/GetLogRecordCommand.d.ts +0 -38
- package/dist/types/commands/GetQueryResultsCommand.d.ts +0 -45
- package/dist/types/commands/ListTagsLogGroupCommand.d.ts +0 -35
- package/dist/types/commands/PutDestinationCommand.d.ts +0 -44
- package/dist/types/commands/PutDestinationPolicyCommand.d.ts +0 -40
- package/dist/types/commands/PutLogEventsCommand.d.ts +0 -72
- package/dist/types/commands/PutMetricFilterCommand.d.ts +0 -57
- package/dist/types/commands/PutQueryDefinitionCommand.d.ts +0 -46
- package/dist/types/commands/PutResourcePolicyCommand.d.ts +0 -37
- package/dist/types/commands/PutRetentionPolicyCommand.d.ts +0 -37
- package/dist/types/commands/PutSubscriptionFilterCommand.d.ts +0 -63
- package/dist/types/commands/StartQueryCommand.d.ts +0 -40
- package/dist/types/commands/StopQueryCommand.d.ts +0 -36
- package/dist/types/commands/TagLogGroupCommand.d.ts +0 -44
- package/dist/types/commands/TestMetricFilterCommand.d.ts +0 -36
- package/dist/types/commands/UntagLogGroupCommand.d.ts +0 -41
- package/dist/types/pagination/DescribeDestinationsPaginator.d.ts +0 -4
- package/dist/types/pagination/DescribeLogGroupsPaginator.d.ts +0 -4
- package/dist/types/pagination/DescribeLogStreamsPaginator.d.ts +0 -4
- package/dist/types/pagination/DescribeMetricFiltersPaginator.d.ts +0 -4
- package/dist/types/pagination/DescribeSubscriptionFiltersPaginator.d.ts +0 -4
- package/dist/types/pagination/FilterLogEventsPaginator.d.ts +0 -4
- package/dist/types/pagination/GetLogEventsPaginator.d.ts +0 -4
- package/dist/types/pagination/Interfaces.d.ts +0 -6
- package/dist/types/protocols/Aws_json1_1.d.ts +0 -128
- package/dist/types/runtimeConfig.d.ts +0 -37
- package/dist/types/ts3.4/CloudWatchLogs.d.ts +0 -605
- package/dist/types/ts3.4/CloudWatchLogsClient.d.ts +0 -207
- package/dist/types/ts3.4/commands/AssociateKmsKeyCommand.d.ts +0 -47
- package/dist/types/ts3.4/commands/CancelExportTaskCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/CreateExportTaskCommand.d.ts +0 -48
- package/dist/types/ts3.4/commands/CreateLogGroupCommand.d.ts +0 -61
- package/dist/types/ts3.4/commands/CreateLogStreamCommand.d.ts +0 -51
- package/dist/types/ts3.4/commands/DeleteDestinationCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DeleteLogGroupCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteLogStreamCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteMetricFilterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteQueryDefinitionCommand.d.ts +0 -39
- package/dist/types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteRetentionPolicyCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteSubscriptionFilterCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeDestinationsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeExportTasksCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DescribeLogGroupsCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/DescribeLogStreamsCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/DescribeMetricFiltersCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeQueriesCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeQueryDefinitionsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeResourcePoliciesCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeSubscriptionFiltersCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DisassociateKmsKeyCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/FilterLogEventsCommand.d.ts +0 -43
- package/dist/types/ts3.4/commands/GetLogEventsCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/GetLogGroupFieldsCommand.d.ts +0 -42
- package/dist/types/ts3.4/commands/GetLogRecordCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/GetQueryResultsCommand.d.ts +0 -45
- package/dist/types/ts3.4/commands/ListTagsLogGroupCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/PutDestinationCommand.d.ts +0 -44
- package/dist/types/ts3.4/commands/PutDestinationPolicyCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/PutLogEventsCommand.d.ts +0 -72
- package/dist/types/ts3.4/commands/PutMetricFilterCommand.d.ts +0 -57
- package/dist/types/ts3.4/commands/PutQueryDefinitionCommand.d.ts +0 -46
- package/dist/types/ts3.4/commands/PutResourcePolicyCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PutRetentionPolicyCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/PutSubscriptionFilterCommand.d.ts +0 -63
- package/dist/types/ts3.4/commands/StartQueryCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/StopQueryCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/TagLogGroupCommand.d.ts +0 -44
- package/dist/types/ts3.4/commands/TestMetricFilterCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/UntagLogGroupCommand.d.ts +0 -41
- package/dist/types/ts3.4/pagination/DescribeDestinationsPaginator.d.ts +0 -4
- package/dist/types/ts3.4/pagination/DescribeLogGroupsPaginator.d.ts +0 -4
- package/dist/types/ts3.4/pagination/DescribeLogStreamsPaginator.d.ts +0 -4
- package/dist/types/ts3.4/pagination/DescribeMetricFiltersPaginator.d.ts +0 -4
- package/dist/types/ts3.4/pagination/DescribeSubscriptionFiltersPaginator.d.ts +0 -4
- package/dist/types/ts3.4/pagination/FilterLogEventsPaginator.d.ts +0 -4
- package/dist/types/ts3.4/pagination/GetLogEventsPaginator.d.ts +0 -4
- package/dist/types/ts3.4/pagination/Interfaces.d.ts +0 -6
- package/dist/types/ts3.4/protocols/Aws_json1_1.d.ts +0 -128
- package/dist/types/ts3.4/runtimeConfig.d.ts +0 -37
- package/endpoints.ts +0 -86
- package/pagination/DescribeDestinationsPaginator.ts +0 -58
- package/pagination/DescribeLogGroupsPaginator.ts +0 -58
- package/pagination/DescribeLogStreamsPaginator.ts +0 -58
- package/pagination/DescribeMetricFiltersPaginator.ts +0 -58
- package/pagination/DescribeSubscriptionFiltersPaginator.ts +0 -58
- package/pagination/FilterLogEventsPaginator.ts +0 -58
- package/pagination/GetLogEventsPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -5412
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
|
|
15
|
+
import { GetQueryResultsRequest, GetQueryResultsResponse } from "../models/models_0";
|
|
16
|
+
import {
|
|
17
|
+
deserializeAws_json1_1GetQueryResultsCommand,
|
|
18
|
+
serializeAws_json1_1GetQueryResultsCommand,
|
|
19
|
+
} from "../protocols/Aws_json1_1";
|
|
20
|
+
|
|
21
|
+
export interface GetQueryResultsCommandInput extends GetQueryResultsRequest {}
|
|
22
|
+
export interface GetQueryResultsCommandOutput extends GetQueryResultsResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Returns the results from the specified query.</p>
|
|
26
|
+
* <p>Only the fields requested in the query are returned, along with a <code>@ptr</code>
|
|
27
|
+
* field, which is the identifier for the log record. You can use the value of <code>@ptr</code>
|
|
28
|
+
* in a <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogRecord.html">GetLogRecord</a>
|
|
29
|
+
* operation to get the full log record.</p>
|
|
30
|
+
* <p>
|
|
31
|
+
* <code>GetQueryResults</code>
|
|
32
|
+
* does not start a query execution. To run a query, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_StartQuery.html">StartQuery</a>.</p>
|
|
33
|
+
* <p>If the value of the <code>Status</code> field in the output is <code>Running</code>, this operation
|
|
34
|
+
* returns only partial results. If you see a value of <code>Scheduled</code> or <code>Running</code> for the status,
|
|
35
|
+
* you can retry the operation later to see the final results. </p>
|
|
36
|
+
* @example
|
|
37
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
+
* ```javascript
|
|
39
|
+
* import { CloudWatchLogsClient, GetQueryResultsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
40
|
+
* // const { CloudWatchLogsClient, GetQueryResultsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
41
|
+
* const client = new CloudWatchLogsClient(config);
|
|
42
|
+
* const command = new GetQueryResultsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @see {@link GetQueryResultsCommandInput} for command's `input` shape.
|
|
47
|
+
* @see {@link GetQueryResultsCommandOutput} for command's `response` shape.
|
|
48
|
+
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export class GetQueryResultsCommand extends $Command<
|
|
52
|
+
GetQueryResultsCommandInput,
|
|
53
|
+
GetQueryResultsCommandOutput,
|
|
54
|
+
CloudWatchLogsClientResolvedConfig
|
|
55
|
+
> {
|
|
56
|
+
// Start section: command_properties
|
|
57
|
+
// End section: command_properties
|
|
58
|
+
|
|
59
|
+
constructor(readonly input: GetQueryResultsCommandInput) {
|
|
60
|
+
// Start section: command_constructor
|
|
61
|
+
super();
|
|
62
|
+
// End section: command_constructor
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
resolveMiddleware(
|
|
69
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
70
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
71
|
+
options?: __HttpHandlerOptions
|
|
72
|
+
): Handler<GetQueryResultsCommandInput, GetQueryResultsCommandOutput> {
|
|
73
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
74
|
+
|
|
75
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
76
|
+
|
|
77
|
+
const { logger } = configuration;
|
|
78
|
+
const clientName = "CloudWatchLogsClient";
|
|
79
|
+
const commandName = "GetQueryResultsCommand";
|
|
80
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
81
|
+
logger,
|
|
82
|
+
clientName,
|
|
83
|
+
commandName,
|
|
84
|
+
inputFilterSensitiveLog: GetQueryResultsRequest.filterSensitiveLog,
|
|
85
|
+
outputFilterSensitiveLog: GetQueryResultsResponse.filterSensitiveLog,
|
|
86
|
+
};
|
|
87
|
+
const { requestHandler } = configuration;
|
|
88
|
+
return stack.resolve(
|
|
89
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
90
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
91
|
+
handlerExecutionContext
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
private serialize(input: GetQueryResultsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
96
|
+
return serializeAws_json1_1GetQueryResultsCommand(input, context);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetQueryResultsCommandOutput> {
|
|
100
|
+
return deserializeAws_json1_1GetQueryResultsCommand(output, context);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Start section: command_body_extra
|
|
104
|
+
// End section: command_body_extra
|
|
105
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
|
|
15
|
+
import { ListTagsLogGroupRequest, ListTagsLogGroupResponse } from "../models/models_0";
|
|
16
|
+
import {
|
|
17
|
+
deserializeAws_json1_1ListTagsLogGroupCommand,
|
|
18
|
+
serializeAws_json1_1ListTagsLogGroupCommand,
|
|
19
|
+
} from "../protocols/Aws_json1_1";
|
|
20
|
+
|
|
21
|
+
export interface ListTagsLogGroupCommandInput extends ListTagsLogGroupRequest {}
|
|
22
|
+
export interface ListTagsLogGroupCommandOutput extends ListTagsLogGroupResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Lists the tags for the specified log group.</p>
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { CloudWatchLogsClient, ListTagsLogGroupCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
30
|
+
* // const { CloudWatchLogsClient, ListTagsLogGroupCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
31
|
+
* const client = new CloudWatchLogsClient(config);
|
|
32
|
+
* const command = new ListTagsLogGroupCommand(input);
|
|
33
|
+
* const response = await client.send(command);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @see {@link ListTagsLogGroupCommandInput} for command's `input` shape.
|
|
37
|
+
* @see {@link ListTagsLogGroupCommandOutput} for command's `response` shape.
|
|
38
|
+
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export class ListTagsLogGroupCommand extends $Command<
|
|
42
|
+
ListTagsLogGroupCommandInput,
|
|
43
|
+
ListTagsLogGroupCommandOutput,
|
|
44
|
+
CloudWatchLogsClientResolvedConfig
|
|
45
|
+
> {
|
|
46
|
+
// Start section: command_properties
|
|
47
|
+
// End section: command_properties
|
|
48
|
+
|
|
49
|
+
constructor(readonly input: ListTagsLogGroupCommandInput) {
|
|
50
|
+
// Start section: command_constructor
|
|
51
|
+
super();
|
|
52
|
+
// End section: command_constructor
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
resolveMiddleware(
|
|
59
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
61
|
+
options?: __HttpHandlerOptions
|
|
62
|
+
): Handler<ListTagsLogGroupCommandInput, ListTagsLogGroupCommandOutput> {
|
|
63
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
+
|
|
65
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
+
|
|
67
|
+
const { logger } = configuration;
|
|
68
|
+
const clientName = "CloudWatchLogsClient";
|
|
69
|
+
const commandName = "ListTagsLogGroupCommand";
|
|
70
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
+
logger,
|
|
72
|
+
clientName,
|
|
73
|
+
commandName,
|
|
74
|
+
inputFilterSensitiveLog: ListTagsLogGroupRequest.filterSensitiveLog,
|
|
75
|
+
outputFilterSensitiveLog: ListTagsLogGroupResponse.filterSensitiveLog,
|
|
76
|
+
};
|
|
77
|
+
const { requestHandler } = configuration;
|
|
78
|
+
return stack.resolve(
|
|
79
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
+
handlerExecutionContext
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private serialize(input: ListTagsLogGroupCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
+
return serializeAws_json1_1ListTagsLogGroupCommand(input, context);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsLogGroupCommandOutput> {
|
|
90
|
+
return deserializeAws_json1_1ListTagsLogGroupCommand(output, context);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Start section: command_body_extra
|
|
94
|
+
// End section: command_body_extra
|
|
95
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
|
|
15
|
+
import { PutDestinationRequest, PutDestinationResponse } from "../models/models_0";
|
|
16
|
+
import {
|
|
17
|
+
deserializeAws_json1_1PutDestinationCommand,
|
|
18
|
+
serializeAws_json1_1PutDestinationCommand,
|
|
19
|
+
} from "../protocols/Aws_json1_1";
|
|
20
|
+
|
|
21
|
+
export interface PutDestinationCommandInput extends PutDestinationRequest {}
|
|
22
|
+
export interface PutDestinationCommandOutput extends PutDestinationResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.</p>
|
|
26
|
+
* <p>A destination encapsulates a physical resource (such
|
|
27
|
+
* as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events
|
|
28
|
+
* for a different account, ingested using <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
|
|
29
|
+
* <p>Through an access policy, a destination controls what is written to it.
|
|
30
|
+
* By default, <code>PutDestination</code> does not set any access policy with the destination,
|
|
31
|
+
* which means a cross-account user cannot call <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutSubscriptionFilter.html">PutSubscriptionFilter</a> against
|
|
32
|
+
* this destination. To enable this, the destination owner must call <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDestinationPolicy.html">PutDestinationPolicy</a> after <code>PutDestination</code>.</p>
|
|
33
|
+
* <p>To perform a <code>PutDestination</code> operation, you must also have the
|
|
34
|
+
* <code>iam:PassRole</code> permission.</p>
|
|
35
|
+
* @example
|
|
36
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
+
* ```javascript
|
|
38
|
+
* import { CloudWatchLogsClient, PutDestinationCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
39
|
+
* // const { CloudWatchLogsClient, PutDestinationCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
40
|
+
* const client = new CloudWatchLogsClient(config);
|
|
41
|
+
* const command = new PutDestinationCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @see {@link PutDestinationCommandInput} for command's `input` shape.
|
|
46
|
+
* @see {@link PutDestinationCommandOutput} for command's `response` shape.
|
|
47
|
+
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
export class PutDestinationCommand extends $Command<
|
|
51
|
+
PutDestinationCommandInput,
|
|
52
|
+
PutDestinationCommandOutput,
|
|
53
|
+
CloudWatchLogsClientResolvedConfig
|
|
54
|
+
> {
|
|
55
|
+
// Start section: command_properties
|
|
56
|
+
// End section: command_properties
|
|
57
|
+
|
|
58
|
+
constructor(readonly input: PutDestinationCommandInput) {
|
|
59
|
+
// Start section: command_constructor
|
|
60
|
+
super();
|
|
61
|
+
// End section: command_constructor
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
resolveMiddleware(
|
|
68
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
69
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
70
|
+
options?: __HttpHandlerOptions
|
|
71
|
+
): Handler<PutDestinationCommandInput, PutDestinationCommandOutput> {
|
|
72
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
73
|
+
|
|
74
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
75
|
+
|
|
76
|
+
const { logger } = configuration;
|
|
77
|
+
const clientName = "CloudWatchLogsClient";
|
|
78
|
+
const commandName = "PutDestinationCommand";
|
|
79
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
80
|
+
logger,
|
|
81
|
+
clientName,
|
|
82
|
+
commandName,
|
|
83
|
+
inputFilterSensitiveLog: PutDestinationRequest.filterSensitiveLog,
|
|
84
|
+
outputFilterSensitiveLog: PutDestinationResponse.filterSensitiveLog,
|
|
85
|
+
};
|
|
86
|
+
const { requestHandler } = configuration;
|
|
87
|
+
return stack.resolve(
|
|
88
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
89
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
90
|
+
handlerExecutionContext
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private serialize(input: PutDestinationCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
95
|
+
return serializeAws_json1_1PutDestinationCommand(input, context);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutDestinationCommandOutput> {
|
|
99
|
+
return deserializeAws_json1_1PutDestinationCommand(output, context);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Start section: command_body_extra
|
|
103
|
+
// End section: command_body_extra
|
|
104
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
|
|
15
|
+
import { PutDestinationPolicyRequest } from "../models/models_0";
|
|
16
|
+
import {
|
|
17
|
+
deserializeAws_json1_1PutDestinationPolicyCommand,
|
|
18
|
+
serializeAws_json1_1PutDestinationPolicyCommand,
|
|
19
|
+
} from "../protocols/Aws_json1_1";
|
|
20
|
+
|
|
21
|
+
export interface PutDestinationPolicyCommandInput extends PutDestinationPolicyRequest {}
|
|
22
|
+
export interface PutDestinationPolicyCommandOutput extends __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Creates or updates an access policy associated with an existing
|
|
26
|
+
* destination. An access policy is an <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html">IAM policy document</a> that is used
|
|
27
|
+
* to authorize claims to register a subscription filter against a given destination.</p>
|
|
28
|
+
* <p>If multiple Amazon Web Services accounts are sending logs to this destination, each sender account must be
|
|
29
|
+
* listed separately in the policy. The policy does not support specifying <code>*</code>
|
|
30
|
+
* as the Principal or the use of the <code>aws:PrincipalOrgId</code> global key.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { CloudWatchLogsClient, PutDestinationPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
35
|
+
* // const { CloudWatchLogsClient, PutDestinationPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
36
|
+
* const client = new CloudWatchLogsClient(config);
|
|
37
|
+
* const command = new PutDestinationPolicyCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @see {@link PutDestinationPolicyCommandInput} for command's `input` shape.
|
|
42
|
+
* @see {@link PutDestinationPolicyCommandOutput} for command's `response` shape.
|
|
43
|
+
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
export class PutDestinationPolicyCommand extends $Command<
|
|
47
|
+
PutDestinationPolicyCommandInput,
|
|
48
|
+
PutDestinationPolicyCommandOutput,
|
|
49
|
+
CloudWatchLogsClientResolvedConfig
|
|
50
|
+
> {
|
|
51
|
+
// Start section: command_properties
|
|
52
|
+
// End section: command_properties
|
|
53
|
+
|
|
54
|
+
constructor(readonly input: PutDestinationPolicyCommandInput) {
|
|
55
|
+
// Start section: command_constructor
|
|
56
|
+
super();
|
|
57
|
+
// End section: command_constructor
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
resolveMiddleware(
|
|
64
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
66
|
+
options?: __HttpHandlerOptions
|
|
67
|
+
): Handler<PutDestinationPolicyCommandInput, PutDestinationPolicyCommandOutput> {
|
|
68
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
+
|
|
70
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
+
|
|
72
|
+
const { logger } = configuration;
|
|
73
|
+
const clientName = "CloudWatchLogsClient";
|
|
74
|
+
const commandName = "PutDestinationPolicyCommand";
|
|
75
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
+
logger,
|
|
77
|
+
clientName,
|
|
78
|
+
commandName,
|
|
79
|
+
inputFilterSensitiveLog: PutDestinationPolicyRequest.filterSensitiveLog,
|
|
80
|
+
outputFilterSensitiveLog: (output: any) => output,
|
|
81
|
+
};
|
|
82
|
+
const { requestHandler } = configuration;
|
|
83
|
+
return stack.resolve(
|
|
84
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
+
handlerExecutionContext
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
private serialize(input: PutDestinationPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
+
return serializeAws_json1_1PutDestinationPolicyCommand(input, context);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutDestinationPolicyCommandOutput> {
|
|
95
|
+
return deserializeAws_json1_1PutDestinationPolicyCommand(output, context);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Start section: command_body_extra
|
|
99
|
+
// End section: command_body_extra
|
|
100
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
|
|
15
|
+
import { PutLogEventsRequest, PutLogEventsResponse } from "../models/models_0";
|
|
16
|
+
import {
|
|
17
|
+
deserializeAws_json1_1PutLogEventsCommand,
|
|
18
|
+
serializeAws_json1_1PutLogEventsCommand,
|
|
19
|
+
} from "../protocols/Aws_json1_1";
|
|
20
|
+
|
|
21
|
+
export interface PutLogEventsCommandInput extends PutLogEventsRequest {}
|
|
22
|
+
export interface PutLogEventsCommandOutput extends PutLogEventsResponse, __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Uploads a batch of log events to the specified log stream.</p>
|
|
26
|
+
* <p>You must include the sequence token obtained from the response of the previous call. An
|
|
27
|
+
* upload in a newly created log stream does not require a sequence token. You can also get the
|
|
28
|
+
* sequence token in the <code>expectedSequenceToken</code> field from
|
|
29
|
+
* <code>InvalidSequenceTokenException</code>. If you call <code>PutLogEvents</code> twice
|
|
30
|
+
* within a narrow time period using the same value for <code>sequenceToken</code>, both calls
|
|
31
|
+
* might be successful or one might be rejected.</p>
|
|
32
|
+
* <p>The batch of events must satisfy the following constraints:</p>
|
|
33
|
+
* <ul>
|
|
34
|
+
* <li>
|
|
35
|
+
* <p>The maximum batch size is 1,048,576 bytes. This size is calculated as the sum of
|
|
36
|
+
* all event messages in UTF-8, plus 26 bytes for each log event.</p>
|
|
37
|
+
* </li>
|
|
38
|
+
* <li>
|
|
39
|
+
* <p>None of the log events in the batch can be more than 2 hours in the future.</p>
|
|
40
|
+
* </li>
|
|
41
|
+
* <li>
|
|
42
|
+
* <p>None of the log events in the batch can be older than 14 days or older than the retention
|
|
43
|
+
* period of the log group.</p>
|
|
44
|
+
* </li>
|
|
45
|
+
* <li>
|
|
46
|
+
* <p>The log events in the batch must be in chronological order by their timestamp. The
|
|
47
|
+
* timestamp is the time the event occurred, expressed as the number of milliseconds after
|
|
48
|
+
* Jan 1, 1970 00:00:00 UTC. (In Amazon Web Services Tools for PowerShell and the Amazon Web Services SDK for .NET, the
|
|
49
|
+
* timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example,
|
|
50
|
+
* 2017-09-15T13:45:30.) </p>
|
|
51
|
+
* </li>
|
|
52
|
+
* <li>
|
|
53
|
+
* <p>A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.</p>
|
|
54
|
+
* </li>
|
|
55
|
+
* <li>
|
|
56
|
+
* <p>The maximum number of log events in a batch is 10,000.</p>
|
|
57
|
+
* </li>
|
|
58
|
+
* <li>
|
|
59
|
+
* <p>There is a quota of 5 requests per second per log stream. Additional requests are throttled. This quota can't be changed.</p>
|
|
60
|
+
* </li>
|
|
61
|
+
* </ul>
|
|
62
|
+
* <p>If a call to <code>PutLogEvents</code> returns "UnrecognizedClientException" the most likely cause is an invalid Amazon Web Services access key ID or secret key. </p>
|
|
63
|
+
* @example
|
|
64
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
65
|
+
* ```javascript
|
|
66
|
+
* import { CloudWatchLogsClient, PutLogEventsCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
67
|
+
* // const { CloudWatchLogsClient, PutLogEventsCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
68
|
+
* const client = new CloudWatchLogsClient(config);
|
|
69
|
+
* const command = new PutLogEventsCommand(input);
|
|
70
|
+
* const response = await client.send(command);
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @see {@link PutLogEventsCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link PutLogEventsCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
export class PutLogEventsCommand extends $Command<
|
|
79
|
+
PutLogEventsCommandInput,
|
|
80
|
+
PutLogEventsCommandOutput,
|
|
81
|
+
CloudWatchLogsClientResolvedConfig
|
|
82
|
+
> {
|
|
83
|
+
// Start section: command_properties
|
|
84
|
+
// End section: command_properties
|
|
85
|
+
|
|
86
|
+
constructor(readonly input: PutLogEventsCommandInput) {
|
|
87
|
+
// Start section: command_constructor
|
|
88
|
+
super();
|
|
89
|
+
// End section: command_constructor
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
resolveMiddleware(
|
|
96
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
97
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
98
|
+
options?: __HttpHandlerOptions
|
|
99
|
+
): Handler<PutLogEventsCommandInput, PutLogEventsCommandOutput> {
|
|
100
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
101
|
+
|
|
102
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
103
|
+
|
|
104
|
+
const { logger } = configuration;
|
|
105
|
+
const clientName = "CloudWatchLogsClient";
|
|
106
|
+
const commandName = "PutLogEventsCommand";
|
|
107
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
108
|
+
logger,
|
|
109
|
+
clientName,
|
|
110
|
+
commandName,
|
|
111
|
+
inputFilterSensitiveLog: PutLogEventsRequest.filterSensitiveLog,
|
|
112
|
+
outputFilterSensitiveLog: PutLogEventsResponse.filterSensitiveLog,
|
|
113
|
+
};
|
|
114
|
+
const { requestHandler } = configuration;
|
|
115
|
+
return stack.resolve(
|
|
116
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
117
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
118
|
+
handlerExecutionContext
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
private serialize(input: PutLogEventsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
123
|
+
return serializeAws_json1_1PutLogEventsCommand(input, context);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutLogEventsCommandOutput> {
|
|
127
|
+
return deserializeAws_json1_1PutLogEventsCommand(output, context);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Start section: command_body_extra
|
|
131
|
+
// End section: command_body_extra
|
|
132
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import {
|
|
5
|
+
FinalizeHandlerArguments,
|
|
6
|
+
Handler,
|
|
7
|
+
HandlerExecutionContext,
|
|
8
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
+
MetadataBearer as __MetadataBearer,
|
|
10
|
+
MiddlewareStack,
|
|
11
|
+
SerdeContext as __SerdeContext,
|
|
12
|
+
} from "@aws-sdk/types";
|
|
13
|
+
|
|
14
|
+
import { CloudWatchLogsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudWatchLogsClient";
|
|
15
|
+
import { PutMetricFilterRequest } from "../models/models_0";
|
|
16
|
+
import {
|
|
17
|
+
deserializeAws_json1_1PutMetricFilterCommand,
|
|
18
|
+
serializeAws_json1_1PutMetricFilterCommand,
|
|
19
|
+
} from "../protocols/Aws_json1_1";
|
|
20
|
+
|
|
21
|
+
export interface PutMetricFilterCommandInput extends PutMetricFilterRequest {}
|
|
22
|
+
export interface PutMetricFilterCommandOutput extends __MetadataBearer {}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* <p>Creates or updates a metric filter and associates it with the specified log group.
|
|
26
|
+
* Metric filters allow you to configure rules to extract metric data from log events ingested
|
|
27
|
+
* through <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutLogEvents.html">PutLogEvents</a>.</p>
|
|
28
|
+
* <p>The maximum number of metric filters that can be associated with a log group is
|
|
29
|
+
* 100.</p>
|
|
30
|
+
* <p>When you create a metric filter, you can also optionally assign a unit and dimensions
|
|
31
|
+
* to the metric that is created.</p>
|
|
32
|
+
* <important>
|
|
33
|
+
* <p>Metrics extracted from log events are charged as custom metrics.
|
|
34
|
+
* To prevent unexpected high charges, do not specify high-cardinality fields such as
|
|
35
|
+
* <code>IPAddress</code> or <code>requestID</code> as dimensions. Each different value
|
|
36
|
+
* found for
|
|
37
|
+
* a dimension is treated as a separate metric and accrues charges as a separate custom metric.
|
|
38
|
+
* </p>
|
|
39
|
+
* <p>To help prevent accidental high charges, Amazon disables a metric filter
|
|
40
|
+
* if it generates 1000 different name/value pairs for the dimensions that you
|
|
41
|
+
* have specified within a certain amount of time.</p>
|
|
42
|
+
* <p>You can also set up a billing alarm to alert you if your charges are higher than
|
|
43
|
+
* expected. For more information,
|
|
44
|
+
* see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html">
|
|
45
|
+
* Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges</a>.
|
|
46
|
+
* </p>
|
|
47
|
+
* </important>
|
|
48
|
+
* @example
|
|
49
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
50
|
+
* ```javascript
|
|
51
|
+
* import { CloudWatchLogsClient, PutMetricFilterCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
|
|
52
|
+
* // const { CloudWatchLogsClient, PutMetricFilterCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
|
|
53
|
+
* const client = new CloudWatchLogsClient(config);
|
|
54
|
+
* const command = new PutMetricFilterCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @see {@link PutMetricFilterCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link PutMetricFilterCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link CloudWatchLogsClientResolvedConfig | config} for command's `input` shape.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export class PutMetricFilterCommand extends $Command<
|
|
64
|
+
PutMetricFilterCommandInput,
|
|
65
|
+
PutMetricFilterCommandOutput,
|
|
66
|
+
CloudWatchLogsClientResolvedConfig
|
|
67
|
+
> {
|
|
68
|
+
// Start section: command_properties
|
|
69
|
+
// End section: command_properties
|
|
70
|
+
|
|
71
|
+
constructor(readonly input: PutMetricFilterCommandInput) {
|
|
72
|
+
// Start section: command_constructor
|
|
73
|
+
super();
|
|
74
|
+
// End section: command_constructor
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
resolveMiddleware(
|
|
81
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
82
|
+
configuration: CloudWatchLogsClientResolvedConfig,
|
|
83
|
+
options?: __HttpHandlerOptions
|
|
84
|
+
): Handler<PutMetricFilterCommandInput, PutMetricFilterCommandOutput> {
|
|
85
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
86
|
+
|
|
87
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
88
|
+
|
|
89
|
+
const { logger } = configuration;
|
|
90
|
+
const clientName = "CloudWatchLogsClient";
|
|
91
|
+
const commandName = "PutMetricFilterCommand";
|
|
92
|
+
const handlerExecutionContext: HandlerExecutionContext = {
|
|
93
|
+
logger,
|
|
94
|
+
clientName,
|
|
95
|
+
commandName,
|
|
96
|
+
inputFilterSensitiveLog: PutMetricFilterRequest.filterSensitiveLog,
|
|
97
|
+
outputFilterSensitiveLog: (output: any) => output,
|
|
98
|
+
};
|
|
99
|
+
const { requestHandler } = configuration;
|
|
100
|
+
return stack.resolve(
|
|
101
|
+
(request: FinalizeHandlerArguments<any>) =>
|
|
102
|
+
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
103
|
+
handlerExecutionContext
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
private serialize(input: PutMetricFilterCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
108
|
+
return serializeAws_json1_1PutMetricFilterCommand(input, context);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutMetricFilterCommandOutput> {
|
|
112
|
+
return deserializeAws_json1_1PutMetricFilterCommand(output, context);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Start section: command_body_extra
|
|
116
|
+
// End section: command_body_extra
|
|
117
|
+
}
|