@aws-sdk/client-cloudwatch-logs 3.927.0 → 3.929.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.
Files changed (115) hide show
  1. package/dist-cjs/index.js +2751 -2844
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/CloudWatchLogsClient.js +2 -0
  4. package/dist-es/commands/AssociateKmsKeyCommand.js +3 -9
  5. package/dist-es/commands/CancelExportTaskCommand.js +3 -9
  6. package/dist-es/commands/CreateDeliveryCommand.js +3 -9
  7. package/dist-es/commands/CreateExportTaskCommand.js +3 -9
  8. package/dist-es/commands/CreateLogAnomalyDetectorCommand.js +3 -9
  9. package/dist-es/commands/CreateLogGroupCommand.js +3 -9
  10. package/dist-es/commands/CreateLogStreamCommand.js +3 -9
  11. package/dist-es/commands/DeleteAccountPolicyCommand.js +3 -9
  12. package/dist-es/commands/DeleteDataProtectionPolicyCommand.js +3 -9
  13. package/dist-es/commands/DeleteDeliveryCommand.js +3 -9
  14. package/dist-es/commands/DeleteDeliveryDestinationCommand.js +3 -9
  15. package/dist-es/commands/DeleteDeliveryDestinationPolicyCommand.js +3 -9
  16. package/dist-es/commands/DeleteDeliverySourceCommand.js +3 -9
  17. package/dist-es/commands/DeleteDestinationCommand.js +3 -9
  18. package/dist-es/commands/DeleteIndexPolicyCommand.js +3 -9
  19. package/dist-es/commands/DeleteIntegrationCommand.js +3 -9
  20. package/dist-es/commands/DeleteLogAnomalyDetectorCommand.js +3 -9
  21. package/dist-es/commands/DeleteLogGroupCommand.js +3 -9
  22. package/dist-es/commands/DeleteLogStreamCommand.js +3 -9
  23. package/dist-es/commands/DeleteMetricFilterCommand.js +3 -9
  24. package/dist-es/commands/DeleteQueryDefinitionCommand.js +3 -9
  25. package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
  26. package/dist-es/commands/DeleteRetentionPolicyCommand.js +3 -9
  27. package/dist-es/commands/DeleteSubscriptionFilterCommand.js +3 -9
  28. package/dist-es/commands/DeleteTransformerCommand.js +3 -9
  29. package/dist-es/commands/DescribeAccountPoliciesCommand.js +3 -9
  30. package/dist-es/commands/DescribeConfigurationTemplatesCommand.js +3 -9
  31. package/dist-es/commands/DescribeDeliveriesCommand.js +3 -9
  32. package/dist-es/commands/DescribeDeliveryDestinationsCommand.js +3 -9
  33. package/dist-es/commands/DescribeDeliverySourcesCommand.js +3 -9
  34. package/dist-es/commands/DescribeDestinationsCommand.js +3 -9
  35. package/dist-es/commands/DescribeExportTasksCommand.js +3 -9
  36. package/dist-es/commands/DescribeFieldIndexesCommand.js +3 -9
  37. package/dist-es/commands/DescribeIndexPoliciesCommand.js +3 -9
  38. package/dist-es/commands/DescribeLogGroupsCommand.js +3 -9
  39. package/dist-es/commands/DescribeLogStreamsCommand.js +3 -9
  40. package/dist-es/commands/DescribeMetricFiltersCommand.js +3 -9
  41. package/dist-es/commands/DescribeQueriesCommand.js +3 -9
  42. package/dist-es/commands/DescribeQueryDefinitionsCommand.js +3 -9
  43. package/dist-es/commands/DescribeResourcePoliciesCommand.js +3 -9
  44. package/dist-es/commands/DescribeSubscriptionFiltersCommand.js +3 -9
  45. package/dist-es/commands/DisassociateKmsKeyCommand.js +3 -9
  46. package/dist-es/commands/FilterLogEventsCommand.js +3 -9
  47. package/dist-es/commands/GetDataProtectionPolicyCommand.js +3 -9
  48. package/dist-es/commands/GetDeliveryCommand.js +3 -9
  49. package/dist-es/commands/GetDeliveryDestinationCommand.js +3 -9
  50. package/dist-es/commands/GetDeliveryDestinationPolicyCommand.js +3 -9
  51. package/dist-es/commands/GetDeliverySourceCommand.js +3 -9
  52. package/dist-es/commands/GetIntegrationCommand.js +3 -9
  53. package/dist-es/commands/GetLogAnomalyDetectorCommand.js +3 -9
  54. package/dist-es/commands/GetLogEventsCommand.js +3 -9
  55. package/dist-es/commands/GetLogGroupFieldsCommand.js +3 -9
  56. package/dist-es/commands/GetLogObjectCommand.js +3 -10
  57. package/dist-es/commands/GetLogRecordCommand.js +3 -9
  58. package/dist-es/commands/GetQueryResultsCommand.js +3 -9
  59. package/dist-es/commands/GetTransformerCommand.js +3 -9
  60. package/dist-es/commands/ListAnomaliesCommand.js +3 -9
  61. package/dist-es/commands/ListIntegrationsCommand.js +3 -9
  62. package/dist-es/commands/ListLogAnomalyDetectorsCommand.js +3 -9
  63. package/dist-es/commands/ListLogGroupsCommand.js +3 -9
  64. package/dist-es/commands/ListLogGroupsForQueryCommand.js +3 -9
  65. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  66. package/dist-es/commands/ListTagsLogGroupCommand.js +3 -9
  67. package/dist-es/commands/PutAccountPolicyCommand.js +3 -9
  68. package/dist-es/commands/PutDataProtectionPolicyCommand.js +3 -9
  69. package/dist-es/commands/PutDeliveryDestinationCommand.js +3 -9
  70. package/dist-es/commands/PutDeliveryDestinationPolicyCommand.js +3 -9
  71. package/dist-es/commands/PutDeliverySourceCommand.js +3 -9
  72. package/dist-es/commands/PutDestinationCommand.js +3 -9
  73. package/dist-es/commands/PutDestinationPolicyCommand.js +3 -9
  74. package/dist-es/commands/PutIndexPolicyCommand.js +3 -9
  75. package/dist-es/commands/PutIntegrationCommand.js +3 -9
  76. package/dist-es/commands/PutLogEventsCommand.js +3 -9
  77. package/dist-es/commands/PutMetricFilterCommand.js +3 -9
  78. package/dist-es/commands/PutQueryDefinitionCommand.js +3 -9
  79. package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
  80. package/dist-es/commands/PutRetentionPolicyCommand.js +3 -9
  81. package/dist-es/commands/PutSubscriptionFilterCommand.js +3 -9
  82. package/dist-es/commands/PutTransformerCommand.js +3 -9
  83. package/dist-es/commands/StartLiveTailCommand.js +3 -10
  84. package/dist-es/commands/StartQueryCommand.js +3 -9
  85. package/dist-es/commands/StopQueryCommand.js +3 -9
  86. package/dist-es/commands/TagLogGroupCommand.js +3 -9
  87. package/dist-es/commands/TagResourceCommand.js +3 -9
  88. package/dist-es/commands/TestMetricFilterCommand.js +3 -9
  89. package/dist-es/commands/TestTransformerCommand.js +3 -9
  90. package/dist-es/commands/UntagLogGroupCommand.js +3 -9
  91. package/dist-es/commands/UntagResourceCommand.js +3 -9
  92. package/dist-es/commands/UpdateAnomalyCommand.js +3 -9
  93. package/dist-es/commands/UpdateDeliveryConfigurationCommand.js +3 -9
  94. package/dist-es/commands/UpdateLogAnomalyDetectorCommand.js +3 -9
  95. package/dist-es/models/models_0.js +0 -28
  96. package/dist-es/runtimeConfig.shared.js +7 -0
  97. package/dist-es/schemas/schemas_0.js +2543 -0
  98. package/dist-types/CloudWatchLogsClient.d.ts +10 -1
  99. package/dist-types/models/models_0.d.ts +0 -16
  100. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  101. package/dist-types/runtimeConfig.d.ts +1 -0
  102. package/dist-types/runtimeConfig.native.d.ts +1 -0
  103. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  104. package/dist-types/schemas/schemas_0.d.ts +439 -0
  105. package/dist-types/ts3.4/CloudWatchLogsClient.d.ts +4 -0
  106. package/dist-types/ts3.4/models/models_0.d.ts +0 -12
  107. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  108. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  109. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  110. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  111. package/dist-types/ts3.4/schemas/schemas_0.d.ts +444 -0
  112. package/package.json +8 -7
  113. package/dist-es/protocols/Aws_json1_1.js +0 -2116
  114. package/dist-types/protocols/Aws_json1_1.d.ts +0 -821
  115. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1100
@@ -467,31 +467,3 @@ export const SuppressionType = {
467
467
  INFINITE: "INFINITE",
468
468
  LIMITED: "LIMITED",
469
469
  };
470
- export const GetLogObjectResponseStreamFilterSensitiveLog = (obj) => {
471
- if (obj.fields !== undefined)
472
- return { fields: obj.fields };
473
- if (obj.InternalStreamingException !== undefined)
474
- return { InternalStreamingException: obj.InternalStreamingException };
475
- if (obj.$unknown !== undefined)
476
- return { [obj.$unknown[0]]: "UNKNOWN" };
477
- };
478
- export const GetLogObjectResponseFilterSensitiveLog = (obj) => ({
479
- ...obj,
480
- ...(obj.fieldStream && { fieldStream: "STREAMING_CONTENT" }),
481
- });
482
- export const StartLiveTailResponseStreamFilterSensitiveLog = (obj) => {
483
- if (obj.sessionStart !== undefined)
484
- return { sessionStart: obj.sessionStart };
485
- if (obj.sessionUpdate !== undefined)
486
- return { sessionUpdate: obj.sessionUpdate };
487
- if (obj.SessionTimeoutException !== undefined)
488
- return { SessionTimeoutException: obj.SessionTimeoutException };
489
- if (obj.SessionStreamingException !== undefined)
490
- return { SessionStreamingException: obj.SessionStreamingException };
491
- if (obj.$unknown !== undefined)
492
- return { [obj.$unknown[0]]: "UNKNOWN" };
493
- };
494
- export const StartLiveTailResponseFilterSensitiveLog = (obj) => ({
495
- ...obj,
496
- ...(obj.responseStream && { responseStream: "STREAMING_CONTENT" }),
497
- });
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.cloudwatchlogs",
29
+ serviceTarget: "Logs_20140328",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "CloudWatch Logs",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,