@aws-sdk/client-memorydb 3.341.0 → 3.342.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 r = "fn", s = "argv", t = "ref";
5
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Region" }, j = { [t]: "Endpoint" }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, l = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, m = {}, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, o = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, p = [k], q = [l];
6
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [i], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: [j] }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, o], type: e, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [o], type: e, rules: [{ endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ conditions: [{ [r]: "stringEquals", [s]: [i, "fips"] }], endpoint: { url: "https://memory-db-fips.us-west-1.amazonaws.com", properties: m, headers: m }, type: g }, { endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }] };
4
+ const r = "required", s = "fn", t = "argv", u = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [r]: false, "type": "String" }, g = { [r]: true, "default": false, "type": "Boolean" }, h = { [u]: "Endpoint" }, i = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, k = {}, l = { [u]: "Region" }, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [l];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: a, [t]: [h] }], type: b, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [s]: a, [t]: q }], type: b, rules: [{ conditions: [{ [s]: "aws.partition", [t]: q, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [s]: "stringEquals", [t]: [l, "fips"] }], endpoint: { url: "https://memory-db-fips.us-west-1.amazonaws.com", properties: { authSchemes: [{ name: "sigv4", signingName: "memorydb", signingRegion: "us-west-1" }] }, headers: k }, type: d }, { endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -486,9 +486,11 @@ class SubnetQuotaExceededFault extends MemoryDBServiceException_1.MemoryDBServic
486
486
  }
487
487
  exports.SubnetQuotaExceededFault = SubnetQuotaExceededFault;
488
488
  exports.InputAuthenticationType = {
489
+ IAM: "iam",
489
490
  PASSWORD: "password",
490
491
  };
491
492
  exports.AuthenticationType = {
493
+ IAM: "iam",
492
494
  NO_PASSWORD: "no-password",
493
495
  PASSWORD: "password",
494
496
  };
@@ -1,4 +1,4 @@
1
- const r = "fn", s = "argv", t = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [t]: "Region" }, j = { [t]: "Endpoint" }, k = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, l = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, m = {}, n = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsFIPS"] }] }, o = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: d }, "supportsDualStack"] }] }, p = [k], q = [l];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [r]: "aws.partition", [s]: [i], assign: d }], type: e, rules: [{ conditions: [{ [r]: "isSet", [s]: [j] }], type: e, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, o], type: e, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: q, type: e, rules: [{ conditions: [o], type: e, rules: [{ endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ conditions: [{ [r]: "stringEquals", [s]: [i, "fips"] }], endpoint: { url: "https://memory-db-fips.us-west-1.amazonaws.com", properties: m, headers: m }, type: g }, { endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }] };
1
+ const r = "required", s = "fn", t = "argv", u = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [r]: false, "type": "String" }, g = { [r]: true, "default": false, "type": "Boolean" }, h = { [u]: "Endpoint" }, i = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, k = {}, l = { [u]: "Region" }, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [l];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: a, [t]: [h] }], type: b, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [s]: a, [t]: q }], type: b, rules: [{ conditions: [{ [s]: "aws.partition", [t]: q, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://memory-db-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [s]: "stringEquals", [t]: [l, "fips"] }], endpoint: { url: "https://memory-db-fips.us-west-1.amazonaws.com", properties: { authSchemes: [{ name: "sigv4", signingName: "memorydb", signingRegion: "us-west-1" }] }, headers: k }, type: d }, { endpoint: { url: "https://memory-db.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -446,9 +446,11 @@ export class SubnetQuotaExceededFault extends __BaseException {
446
446
  }
447
447
  }
448
448
  export const InputAuthenticationType = {
449
+ IAM: "iam",
449
450
  PASSWORD: "password",
450
451
  };
451
452
  export const AuthenticationType = {
453
+ IAM: "iam",
452
454
  NO_PASSWORD: "no-password",
453
455
  PASSWORD: "password",
454
456
  };
@@ -33,7 +33,7 @@ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataB
33
33
  * const input = { // CreateUserRequest
34
34
  * UserName: "STRING_VALUE", // required
35
35
  * AuthenticationMode: { // AuthenticationMode
36
- * Type: "password",
36
+ * Type: "password" || "iam",
37
37
  * Passwords: [ // PasswordListInput
38
38
  * "STRING_VALUE",
39
39
  * ],
@@ -58,7 +58,7 @@ export interface CreateUserCommandOutput extends CreateUserResponse, __MetadataB
58
58
  * // ],
59
59
  * // MinimumEngineVersion: "STRING_VALUE",
60
60
  * // Authentication: { // Authentication
61
- * // Type: "password" || "no-password",
61
+ * // Type: "password" || "no-password" || "iam",
62
62
  * // PasswordCount: Number("int"),
63
63
  * // },
64
64
  * // ARN: "STRING_VALUE",
@@ -45,7 +45,7 @@ export interface DeleteUserCommandOutput extends DeleteUserResponse, __MetadataB
45
45
  * // ],
46
46
  * // MinimumEngineVersion: "STRING_VALUE",
47
47
  * // Authentication: { // Authentication
48
- * // Type: "password" || "no-password",
48
+ * // Type: "password" || "no-password" || "iam",
49
49
  * // PasswordCount: Number("int"),
50
50
  * // },
51
51
  * // ARN: "STRING_VALUE",
@@ -56,7 +56,7 @@ export interface DescribeUsersCommandOutput extends DescribeUsersResponse, __Met
56
56
  * // ],
57
57
  * // MinimumEngineVersion: "STRING_VALUE",
58
58
  * // Authentication: { // Authentication
59
- * // Type: "password" || "no-password",
59
+ * // Type: "password" || "no-password" || "iam",
60
60
  * // PasswordCount: Number("int"),
61
61
  * // },
62
62
  * // ARN: "STRING_VALUE",
@@ -33,7 +33,7 @@ export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataB
33
33
  * const input = { // UpdateUserRequest
34
34
  * UserName: "STRING_VALUE", // required
35
35
  * AuthenticationMode: { // AuthenticationMode
36
- * Type: "password",
36
+ * Type: "password" || "iam",
37
37
  * Passwords: [ // PasswordListInput
38
38
  * "STRING_VALUE",
39
39
  * ],
@@ -52,7 +52,7 @@ export interface UpdateUserCommandOutput extends UpdateUserResponse, __MetadataB
52
52
  * // ],
53
53
  * // MinimumEngineVersion: "STRING_VALUE",
54
54
  * // Authentication: { // Authentication
55
- * // Type: "password" || "no-password",
55
+ * // Type: "password" || "no-password" || "iam",
56
56
  * // PasswordCount: Number("int"),
57
57
  * // },
58
58
  * // ARN: "STRING_VALUE",
@@ -13,7 +13,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
13
13
  defaultSigningName: string;
14
14
  };
15
15
  export interface EndpointParameters extends __EndpointParameters {
16
- Region: string;
16
+ Region?: string;
17
17
  UseDualStack?: boolean;
18
18
  UseFIPS?: boolean;
19
19
  Endpoint?: string;
@@ -1371,6 +1371,7 @@ export declare class SubnetQuotaExceededFault extends __BaseException {
1371
1371
  * @enum
1372
1372
  */
1373
1373
  export declare const InputAuthenticationType: {
1374
+ readonly IAM: "iam";
1374
1375
  readonly PASSWORD: "password";
1375
1376
  };
1376
1377
  /**
@@ -1417,6 +1418,7 @@ export interface CreateUserRequest {
1417
1418
  * @enum
1418
1419
  */
1419
1420
  export declare const AuthenticationType: {
1421
+ readonly IAM: "iam";
1420
1422
  readonly NO_PASSWORD: "no-password";
1421
1423
  readonly PASSWORD: "password";
1422
1424
  };
@@ -25,7 +25,7 @@ export declare const resolveClientEndpointParameters: <T>(
25
25
  defaultSigningName: string;
26
26
  };
27
27
  export interface EndpointParameters extends __EndpointParameters {
28
- Region: string;
28
+ Region?: string;
29
29
  UseDualStack?: boolean;
30
30
  UseFIPS?: boolean;
31
31
  Endpoint?: string;
@@ -521,6 +521,7 @@ export declare class SubnetQuotaExceededFault extends __BaseException {
521
521
  );
522
522
  }
523
523
  export declare const InputAuthenticationType: {
524
+ readonly IAM: "iam";
524
525
  readonly PASSWORD: "password";
525
526
  };
526
527
  export type InputAuthenticationType =
@@ -536,6 +537,7 @@ export interface CreateUserRequest {
536
537
  Tags?: Tag[];
537
538
  }
538
539
  export declare const AuthenticationType: {
540
+ readonly IAM: "iam";
539
541
  readonly NO_PASSWORD: "no-password";
540
542
  readonly PASSWORD: "password";
541
543
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-memorydb",
3
3
  "description": "AWS SDK for JavaScript Memorydb Client for Node.js, Browser and React Native",
4
- "version": "3.341.0",
4
+ "version": "3.342.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,36 +21,36 @@
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.341.0",
25
- "@aws-sdk/config-resolver": "3.341.0",
26
- "@aws-sdk/credential-provider-node": "3.341.0",
27
- "@aws-sdk/fetch-http-handler": "3.341.0",
28
- "@aws-sdk/hash-node": "3.341.0",
29
- "@aws-sdk/invalid-dependency": "3.341.0",
30
- "@aws-sdk/middleware-content-length": "3.341.0",
31
- "@aws-sdk/middleware-endpoint": "3.341.0",
32
- "@aws-sdk/middleware-host-header": "3.341.0",
33
- "@aws-sdk/middleware-logger": "3.341.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.341.0",
35
- "@aws-sdk/middleware-retry": "3.341.0",
36
- "@aws-sdk/middleware-serde": "3.341.0",
37
- "@aws-sdk/middleware-signing": "3.341.0",
38
- "@aws-sdk/middleware-stack": "3.341.0",
39
- "@aws-sdk/middleware-user-agent": "3.341.0",
40
- "@aws-sdk/node-config-provider": "3.341.0",
41
- "@aws-sdk/node-http-handler": "3.341.0",
42
- "@aws-sdk/smithy-client": "3.341.0",
43
- "@aws-sdk/types": "3.341.0",
44
- "@aws-sdk/url-parser": "3.341.0",
24
+ "@aws-sdk/client-sts": "3.342.0",
25
+ "@aws-sdk/config-resolver": "3.342.0",
26
+ "@aws-sdk/credential-provider-node": "3.342.0",
27
+ "@aws-sdk/fetch-http-handler": "3.342.0",
28
+ "@aws-sdk/hash-node": "3.342.0",
29
+ "@aws-sdk/invalid-dependency": "3.342.0",
30
+ "@aws-sdk/middleware-content-length": "3.342.0",
31
+ "@aws-sdk/middleware-endpoint": "3.342.0",
32
+ "@aws-sdk/middleware-host-header": "3.342.0",
33
+ "@aws-sdk/middleware-logger": "3.342.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.342.0",
35
+ "@aws-sdk/middleware-retry": "3.342.0",
36
+ "@aws-sdk/middleware-serde": "3.342.0",
37
+ "@aws-sdk/middleware-signing": "3.342.0",
38
+ "@aws-sdk/middleware-stack": "3.342.0",
39
+ "@aws-sdk/middleware-user-agent": "3.342.0",
40
+ "@aws-sdk/node-config-provider": "3.342.0",
41
+ "@aws-sdk/node-http-handler": "3.342.0",
42
+ "@aws-sdk/smithy-client": "3.342.0",
43
+ "@aws-sdk/types": "3.342.0",
44
+ "@aws-sdk/url-parser": "3.342.0",
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.341.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.341.0",
50
- "@aws-sdk/util-endpoints": "3.341.0",
51
- "@aws-sdk/util-retry": "3.341.0",
52
- "@aws-sdk/util-user-agent-browser": "3.341.0",
53
- "@aws-sdk/util-user-agent-node": "3.341.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.342.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.342.0",
50
+ "@aws-sdk/util-endpoints": "3.342.0",
51
+ "@aws-sdk/util-retry": "3.342.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.342.0",
53
+ "@aws-sdk/util-user-agent-node": "3.342.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",