@aws-sdk/client-sqs 3.431.0 → 3.435.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://sqs.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://sqs.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
+ const u = "required", v = "fn", w = "argv", x = "ref";
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sqs.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://sqs.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
@@ -1,4 +1,4 @@
1
- const s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://sqs.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://sqs.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
1
+ const u = "required", v = "fn", w = "argv", x = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://sqs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sqs.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://sqs-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://sqs.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://sqs.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
4
  export const ruleSet = _data;
@@ -640,7 +640,7 @@ export interface CreateQueueRequest {
640
640
  * see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html">Quotas related to messages</a>
641
641
  * in the <i>Amazon SQS Developer Guide</i>.</p>
642
642
  */
643
- Attributes?: Record<QueueAttributeName, string>;
643
+ Attributes?: Partial<Record<QueueAttributeName, string>>;
644
644
  }
645
645
  /**
646
646
  * @public
@@ -1049,7 +1049,7 @@ export interface GetQueueAttributesResult {
1049
1049
  * @public
1050
1050
  * <p>A map of attributes to their respective values.</p>
1051
1051
  */
1052
- Attributes?: Record<QueueAttributeName, string>;
1052
+ Attributes?: Partial<Record<QueueAttributeName, string>>;
1053
1053
  }
1054
1054
  /**
1055
1055
  * @public
@@ -1682,7 +1682,7 @@ export interface Message {
1682
1682
  * returned as an integer representing the <a href="http://en.wikipedia.org/wiki/Unix_time">epoch time</a> in
1683
1683
  * milliseconds.</p>
1684
1684
  */
1685
- Attributes?: Record<MessageSystemAttributeName, string>;
1685
+ Attributes?: Partial<Record<MessageSystemAttributeName, string>>;
1686
1686
  /**
1687
1687
  * @public
1688
1688
  * <p>An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see <a href="https://www.ietf.org/rfc/rfc1321.txt">RFC1321</a>.</p>
@@ -1854,7 +1854,7 @@ export interface SendMessageRequest {
1854
1854
  * </ul>
1855
1855
  * </important>
1856
1856
  */
1857
- MessageSystemAttributes?: Record<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>;
1857
+ MessageSystemAttributes?: Partial<Record<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>>;
1858
1858
  /**
1859
1859
  * @public
1860
1860
  * <p>This parameter applies only to FIFO (first-in-first-out) queues.</p>
@@ -2058,7 +2058,7 @@ export interface SendMessageBatchRequestEntry {
2058
2058
  * </ul>
2059
2059
  * </important>
2060
2060
  */
2061
- MessageSystemAttributes?: Record<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>;
2061
+ MessageSystemAttributes?: Partial<Record<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>>;
2062
2062
  /**
2063
2063
  * @public
2064
2064
  * <p>This parameter applies only to FIFO (first-in-first-out) queues.</p>
@@ -2490,7 +2490,7 @@ export interface SetQueueAttributesRequest {
2490
2490
  * see <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html">Quotas related to messages</a>
2491
2491
  * in the <i>Amazon SQS Developer Guide</i>.</p>
2492
2492
  */
2493
- Attributes: Record<QueueAttributeName, string> | undefined;
2493
+ Attributes: Partial<Record<QueueAttributeName, string>> | undefined;
2494
2494
  }
2495
2495
  /**
2496
2496
  * @public
@@ -125,7 +125,7 @@ export type QueueAttributeName =
125
125
  export interface CreateQueueRequest {
126
126
  QueueName: string | undefined;
127
127
  tags?: Record<string, string>;
128
- Attributes?: Record<QueueAttributeName, string>;
128
+ Attributes?: Partial<Record<QueueAttributeName, string>>;
129
129
  }
130
130
  export interface CreateQueueResult {
131
131
  QueueUrl?: string;
@@ -174,7 +174,7 @@ export interface GetQueueAttributesRequest {
174
174
  AttributeNames?: QueueAttributeName[];
175
175
  }
176
176
  export interface GetQueueAttributesResult {
177
- Attributes?: Record<QueueAttributeName, string>;
177
+ Attributes?: Partial<Record<QueueAttributeName, string>>;
178
178
  }
179
179
  export declare class InvalidAttributeName extends __BaseException {
180
180
  readonly name: "InvalidAttributeName";
@@ -281,7 +281,7 @@ export interface Message {
281
281
  ReceiptHandle?: string;
282
282
  MD5OfBody?: string;
283
283
  Body?: string;
284
- Attributes?: Record<MessageSystemAttributeName, string>;
284
+ Attributes?: Partial<Record<MessageSystemAttributeName, string>>;
285
285
  MD5OfMessageAttributes?: string;
286
286
  MessageAttributes?: Record<string, MessageAttributeValue>;
287
287
  }
@@ -316,9 +316,8 @@ export interface SendMessageRequest {
316
316
  MessageBody: string | undefined;
317
317
  DelaySeconds?: number;
318
318
  MessageAttributes?: Record<string, MessageAttributeValue>;
319
- MessageSystemAttributes?: Record<
320
- MessageSystemAttributeNameForSends,
321
- MessageSystemAttributeValue
319
+ MessageSystemAttributes?: Partial<
320
+ Record<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>
322
321
  >;
323
322
  MessageDeduplicationId?: string;
324
323
  MessageGroupId?: string;
@@ -342,9 +341,8 @@ export interface SendMessageBatchRequestEntry {
342
341
  MessageBody: string | undefined;
343
342
  DelaySeconds?: number;
344
343
  MessageAttributes?: Record<string, MessageAttributeValue>;
345
- MessageSystemAttributes?: Record<
346
- MessageSystemAttributeNameForSends,
347
- MessageSystemAttributeValue
344
+ MessageSystemAttributes?: Partial<
345
+ Record<MessageSystemAttributeNameForSends, MessageSystemAttributeValue>
348
346
  >;
349
347
  MessageDeduplicationId?: string;
350
348
  MessageGroupId?: string;
@@ -367,7 +365,7 @@ export interface SendMessageBatchResult {
367
365
  }
368
366
  export interface SetQueueAttributesRequest {
369
367
  QueueUrl: string | undefined;
370
- Attributes: Record<QueueAttributeName, string> | undefined;
368
+ Attributes: Partial<Record<QueueAttributeName, string>> | undefined;
371
369
  }
372
370
  export interface StartMessageMoveTaskRequest {
373
371
  SourceArn: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sqs",
3
3
  "description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
4
- "version": "3.431.0",
4
+ "version": "3.435.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,41 +21,41 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.431.0",
25
- "@aws-sdk/credential-provider-node": "3.431.0",
26
- "@aws-sdk/middleware-host-header": "3.431.0",
27
- "@aws-sdk/middleware-logger": "3.428.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
- "@aws-sdk/middleware-sdk-sqs": "3.428.0",
30
- "@aws-sdk/middleware-signing": "3.428.0",
31
- "@aws-sdk/middleware-user-agent": "3.428.0",
32
- "@aws-sdk/region-config-resolver": "3.430.0",
33
- "@aws-sdk/types": "3.428.0",
34
- "@aws-sdk/util-endpoints": "3.428.0",
35
- "@aws-sdk/util-user-agent-browser": "3.428.0",
36
- "@aws-sdk/util-user-agent-node": "3.430.0",
37
- "@smithy/config-resolver": "^2.0.15",
38
- "@smithy/fetch-http-handler": "^2.2.3",
39
- "@smithy/hash-node": "^2.0.11",
40
- "@smithy/invalid-dependency": "^2.0.11",
41
- "@smithy/md5-js": "^2.0.11",
42
- "@smithy/middleware-content-length": "^2.0.13",
43
- "@smithy/middleware-endpoint": "^2.1.2",
44
- "@smithy/middleware-retry": "^2.0.17",
45
- "@smithy/middleware-serde": "^2.0.11",
46
- "@smithy/middleware-stack": "^2.0.5",
47
- "@smithy/node-config-provider": "^2.1.2",
48
- "@smithy/node-http-handler": "^2.1.7",
49
- "@smithy/protocol-http": "^3.0.7",
50
- "@smithy/smithy-client": "^2.1.11",
51
- "@smithy/types": "^2.3.5",
52
- "@smithy/url-parser": "^2.0.11",
24
+ "@aws-sdk/client-sts": "3.435.0",
25
+ "@aws-sdk/credential-provider-node": "3.435.0",
26
+ "@aws-sdk/middleware-host-header": "3.433.0",
27
+ "@aws-sdk/middleware-logger": "3.433.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.433.0",
29
+ "@aws-sdk/middleware-sdk-sqs": "3.433.0",
30
+ "@aws-sdk/middleware-signing": "3.433.0",
31
+ "@aws-sdk/middleware-user-agent": "3.433.0",
32
+ "@aws-sdk/region-config-resolver": "3.433.0",
33
+ "@aws-sdk/types": "3.433.0",
34
+ "@aws-sdk/util-endpoints": "3.433.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.433.0",
36
+ "@aws-sdk/util-user-agent-node": "3.433.0",
37
+ "@smithy/config-resolver": "^2.0.16",
38
+ "@smithy/fetch-http-handler": "^2.2.4",
39
+ "@smithy/hash-node": "^2.0.12",
40
+ "@smithy/invalid-dependency": "^2.0.12",
41
+ "@smithy/md5-js": "^2.0.12",
42
+ "@smithy/middleware-content-length": "^2.0.14",
43
+ "@smithy/middleware-endpoint": "^2.1.3",
44
+ "@smithy/middleware-retry": "^2.0.18",
45
+ "@smithy/middleware-serde": "^2.0.12",
46
+ "@smithy/middleware-stack": "^2.0.6",
47
+ "@smithy/node-config-provider": "^2.1.3",
48
+ "@smithy/node-http-handler": "^2.1.8",
49
+ "@smithy/protocol-http": "^3.0.8",
50
+ "@smithy/smithy-client": "^2.1.12",
51
+ "@smithy/types": "^2.4.0",
52
+ "@smithy/url-parser": "^2.0.12",
53
53
  "@smithy/util-base64": "^2.0.0",
54
54
  "@smithy/util-body-length-browser": "^2.0.0",
55
55
  "@smithy/util-body-length-node": "^2.1.0",
56
- "@smithy/util-defaults-mode-browser": "^2.0.15",
57
- "@smithy/util-defaults-mode-node": "^2.0.20",
58
- "@smithy/util-retry": "^2.0.4",
56
+ "@smithy/util-defaults-mode-browser": "^2.0.16",
57
+ "@smithy/util-defaults-mode-node": "^2.0.21",
58
+ "@smithy/util-retry": "^2.0.5",
59
59
  "@smithy/util-utf8": "^2.0.0",
60
60
  "fast-xml-parser": "4.2.5",
61
61
  "tslib": "^2.5.0"