@aws-sdk/client-cloudwatch-logs 3.43.0 → 3.45.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-cloudwatch-logs
@@ -81,6 +81,7 @@ const partitionHash = {
81
81
  "ap-south-1",
82
82
  "ap-southeast-1",
83
83
  "ap-southeast-2",
84
+ "ap-southeast-3",
84
85
  "ca-central-1",
85
86
  "eu-central-1",
86
87
  "eu-north-1",
@@ -2620,6 +2620,14 @@ const deserializeAws_json1_1PutQueryDefinitionCommandError = async (output, cont
2620
2620
  $metadata: deserializeMetadata(output),
2621
2621
  };
2622
2622
  break;
2623
+ case "LimitExceededException":
2624
+ case "com.amazonaws.cloudwatchlogs#LimitExceededException":
2625
+ response = {
2626
+ ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
2627
+ name: errorCode,
2628
+ $metadata: deserializeMetadata(output),
2629
+ };
2630
+ break;
2623
2631
  case "ResourceNotFoundException":
2624
2632
  case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
2625
2633
  response = {
@@ -3563,6 +3571,7 @@ const serializeAws_json1_1PutDestinationPolicyRequest = (input, context) => {
3563
3571
  ...(input.accessPolicy !== undefined && input.accessPolicy !== null && { accessPolicy: input.accessPolicy }),
3564
3572
  ...(input.destinationName !== undefined &&
3565
3573
  input.destinationName !== null && { destinationName: input.destinationName }),
3574
+ ...(input.forceUpdate !== undefined && input.forceUpdate !== null && { forceUpdate: input.forceUpdate }),
3566
3575
  };
3567
3576
  };
3568
3577
  const serializeAws_json1_1PutDestinationRequest = (input, context) => {
@@ -79,6 +79,7 @@ var partitionHash = {
79
79
  "ap-south-1",
80
80
  "ap-southeast-1",
81
81
  "ap-southeast-2",
82
+ "ap-southeast-3",
82
83
  "ca-central-1",
83
84
  "eu-central-1",
84
85
  "eu-north-1",
@@ -2986,52 +2986,60 @@ export var deserializeAws_json1_1PutQueryDefinitionCommand = function (output, c
2986
2986
  });
2987
2987
  }); };
2988
2988
  var deserializeAws_json1_1PutQueryDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2989
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
2990
- var _f;
2991
- return __generator(this, function (_g) {
2992
- switch (_g.label) {
2989
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
2990
+ var _g;
2991
+ return __generator(this, function (_h) {
2992
+ switch (_h.label) {
2993
2993
  case 0:
2994
2994
  _a = [__assign({}, output)];
2995
- _f = {};
2995
+ _g = {};
2996
2996
  return [4, parseBody(output.body, context)];
2997
2997
  case 1:
2998
- parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
2998
+ parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
2999
2999
  errorCode = "UnknownError";
3000
3000
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3001
3001
  _b = errorCode;
3002
3002
  switch (_b) {
3003
3003
  case "InvalidParameterException": return [3, 2];
3004
3004
  case "com.amazonaws.cloudwatchlogs#InvalidParameterException": return [3, 2];
3005
- case "ResourceNotFoundException": return [3, 4];
3006
- case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException": return [3, 4];
3007
- case "ServiceUnavailableException": return [3, 6];
3008
- case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException": return [3, 6];
3005
+ case "LimitExceededException": return [3, 4];
3006
+ case "com.amazonaws.cloudwatchlogs#LimitExceededException": return [3, 4];
3007
+ case "ResourceNotFoundException": return [3, 6];
3008
+ case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException": return [3, 6];
3009
+ case "ServiceUnavailableException": return [3, 8];
3010
+ case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException": return [3, 8];
3009
3011
  }
3010
- return [3, 8];
3012
+ return [3, 10];
3011
3013
  case 2:
3012
3014
  _c = [{}];
3013
3015
  return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
3014
3016
  case 3:
3015
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3016
- return [3, 9];
3017
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3018
+ return [3, 11];
3017
3019
  case 4:
3018
3020
  _d = [{}];
3019
- return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3021
+ return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
3020
3022
  case 5:
3021
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3022
- return [3, 9];
3023
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3024
+ return [3, 11];
3023
3025
  case 6:
3024
3026
  _e = [{}];
3025
- return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
3027
+ return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3026
3028
  case 7:
3027
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3028
- return [3, 9];
3029
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3030
+ return [3, 11];
3029
3031
  case 8:
3032
+ _f = [{}];
3033
+ return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
3034
+ case 9:
3035
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
3036
+ return [3, 11];
3037
+ case 10:
3030
3038
  parsedBody = parsedOutput.body;
3031
3039
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
3032
3040
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
3033
- _g.label = 9;
3034
- case 9:
3041
+ _h.label = 11;
3042
+ case 11:
3035
3043
  message = response.message || response.Message || errorCode;
3036
3044
  response.message = message;
3037
3045
  delete response.Message;
@@ -3885,8 +3893,8 @@ var serializeAws_json1_1MetricTransformations = function (input, context) {
3885
3893
  });
3886
3894
  };
3887
3895
  var serializeAws_json1_1PutDestinationPolicyRequest = function (input, context) {
3888
- return __assign(__assign({}, (input.accessPolicy !== undefined && input.accessPolicy !== null && { accessPolicy: input.accessPolicy })), (input.destinationName !== undefined &&
3889
- input.destinationName !== null && { destinationName: input.destinationName }));
3896
+ return __assign(__assign(__assign({}, (input.accessPolicy !== undefined && input.accessPolicy !== null && { accessPolicy: input.accessPolicy })), (input.destinationName !== undefined &&
3897
+ input.destinationName !== null && { destinationName: input.destinationName })), (input.forceUpdate !== undefined && input.forceUpdate !== null && { forceUpdate: input.forceUpdate }));
3890
3898
  };
3891
3899
  var serializeAws_json1_1PutDestinationRequest = function (input, context) {
3892
3900
  return __assign(__assign(__assign({}, (input.destinationName !== undefined &&
@@ -1760,6 +1760,20 @@ export interface PutDestinationPolicyRequest {
1760
1760
  * to the associated destination. This can be up to 5120 bytes.</p>
1761
1761
  */
1762
1762
  accessPolicy: string | undefined;
1763
+ /**
1764
+ * <p>Specify true if you are updating an existing destination policy to grant permission to
1765
+ * an organization ID instead of granting permission to individual AWS accounts. Before
1766
+ * you update a destination policy this way, you must first update the subscription
1767
+ * filters in the accounts that send logs to this destination. If you do not, the subscription
1768
+ * filters might stop working. By specifying <code>true</code>
1769
+ * for <code>forceUpdate</code>, you are affirming that you have already updated the subscription
1770
+ * filters.
1771
+ * For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Cross-Account-Log_Subscription-Update.html">
1772
+ * Updating an existing cross-account subscription</a>
1773
+ * </p>
1774
+ * <p>If you omit this parameter, the default of <code>false</code> is used.</p>
1775
+ */
1776
+ forceUpdate?: boolean;
1763
1777
  }
1764
1778
  export declare namespace PutDestinationPolicyRequest {
1765
1779
  /**
@@ -1933,7 +1947,7 @@ export interface PutResourcePolicyRequest {
1933
1947
  * and <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount">aws:SourceAccount</a>
1934
1948
  * condition context keys.</p>
1935
1949
  * <p>In the example resource policy, you would replace the value of <code>SourceArn</code> with the resource making the
1936
- * call from Route 53 to CloudWatch Logs and replace the value of <code>SourceAccount</code> with
1950
+ * call from Route 53 to CloudWatch Logs and replace the value of <code>SourceAccount</code> with
1937
1951
  * the Amazon Web Services account ID making that call.</p>
1938
1952
  * <p></p>
1939
1953
  * <p>
@@ -985,6 +985,8 @@ export interface PutDestinationPolicyRequest {
985
985
  destinationName: string | undefined;
986
986
 
987
987
  accessPolicy: string | undefined;
988
+
989
+ forceUpdate?: boolean;
988
990
  }
989
991
  export declare namespace PutDestinationPolicyRequest {
990
992
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
4
- "version": "3.43.0",
4
+ "version": "3.45.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
7
  "build:cjs": "tsc -p tsconfig.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.43.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
24
+ "@aws-sdk/client-sts": "3.45.0",
25
+ "@aws-sdk/config-resolver": "3.45.0",
26
+ "@aws-sdk/credential-provider-node": "3.45.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.40.0",
28
28
  "@aws-sdk/hash-node": "3.40.0",
29
29
  "@aws-sdk/invalid-dependency": "3.40.0",
@@ -32,7 +32,7 @@
32
32
  "@aws-sdk/middleware-logger": "3.40.0",
33
33
  "@aws-sdk/middleware-retry": "3.40.0",
34
34
  "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
35
+ "@aws-sdk/middleware-signing": "3.45.0",
36
36
  "@aws-sdk/middleware-stack": "3.40.0",
37
37
  "@aws-sdk/middleware-user-agent": "3.40.0",
38
38
  "@aws-sdk/node-config-provider": "3.40.0",