@aws-sdk/client-verifiedpermissions 3.477.0 → 3.481.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 (121) hide show
  1. package/dist-cjs/commands/BatchIsAuthorizedCommand.js +18 -41
  2. package/dist-cjs/commands/CreateIdentitySourceCommand.js +18 -41
  3. package/dist-cjs/commands/CreatePolicyCommand.js +18 -41
  4. package/dist-cjs/commands/CreatePolicyStoreCommand.js +18 -41
  5. package/dist-cjs/commands/CreatePolicyTemplateCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteIdentitySourceCommand.js +18 -41
  7. package/dist-cjs/commands/DeletePolicyCommand.js +18 -41
  8. package/dist-cjs/commands/DeletePolicyStoreCommand.js +18 -41
  9. package/dist-cjs/commands/DeletePolicyTemplateCommand.js +18 -41
  10. package/dist-cjs/commands/GetIdentitySourceCommand.js +18 -41
  11. package/dist-cjs/commands/GetPolicyCommand.js +18 -41
  12. package/dist-cjs/commands/GetPolicyStoreCommand.js +18 -41
  13. package/dist-cjs/commands/GetPolicyTemplateCommand.js +18 -41
  14. package/dist-cjs/commands/GetSchemaCommand.js +18 -41
  15. package/dist-cjs/commands/IsAuthorizedCommand.js +18 -41
  16. package/dist-cjs/commands/IsAuthorizedWithTokenCommand.js +18 -41
  17. package/dist-cjs/commands/ListIdentitySourcesCommand.js +18 -41
  18. package/dist-cjs/commands/ListPoliciesCommand.js +18 -41
  19. package/dist-cjs/commands/ListPolicyStoresCommand.js +18 -41
  20. package/dist-cjs/commands/ListPolicyTemplatesCommand.js +18 -41
  21. package/dist-cjs/commands/PutSchemaCommand.js +18 -41
  22. package/dist-cjs/commands/UpdateIdentitySourceCommand.js +18 -41
  23. package/dist-cjs/commands/UpdatePolicyCommand.js +18 -41
  24. package/dist-cjs/commands/UpdatePolicyStoreCommand.js +18 -41
  25. package/dist-cjs/commands/UpdatePolicyTemplateCommand.js +18 -41
  26. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  27. package/dist-cjs/pagination/ListIdentitySourcesPaginator.js +2 -24
  28. package/dist-cjs/pagination/ListPoliciesPaginator.js +2 -24
  29. package/dist-cjs/pagination/ListPolicyStoresPaginator.js +2 -24
  30. package/dist-cjs/pagination/ListPolicyTemplatesPaginator.js +2 -24
  31. package/dist-es/commands/BatchIsAuthorizedCommand.js +18 -41
  32. package/dist-es/commands/CreateIdentitySourceCommand.js +18 -41
  33. package/dist-es/commands/CreatePolicyCommand.js +18 -41
  34. package/dist-es/commands/CreatePolicyStoreCommand.js +18 -41
  35. package/dist-es/commands/CreatePolicyTemplateCommand.js +18 -41
  36. package/dist-es/commands/DeleteIdentitySourceCommand.js +18 -41
  37. package/dist-es/commands/DeletePolicyCommand.js +18 -41
  38. package/dist-es/commands/DeletePolicyStoreCommand.js +18 -41
  39. package/dist-es/commands/DeletePolicyTemplateCommand.js +18 -41
  40. package/dist-es/commands/GetIdentitySourceCommand.js +18 -41
  41. package/dist-es/commands/GetPolicyCommand.js +18 -41
  42. package/dist-es/commands/GetPolicyStoreCommand.js +18 -41
  43. package/dist-es/commands/GetPolicyTemplateCommand.js +18 -41
  44. package/dist-es/commands/GetSchemaCommand.js +18 -41
  45. package/dist-es/commands/IsAuthorizedCommand.js +18 -41
  46. package/dist-es/commands/IsAuthorizedWithTokenCommand.js +18 -41
  47. package/dist-es/commands/ListIdentitySourcesCommand.js +18 -41
  48. package/dist-es/commands/ListPoliciesCommand.js +18 -41
  49. package/dist-es/commands/ListPolicyStoresCommand.js +18 -41
  50. package/dist-es/commands/ListPolicyTemplatesCommand.js +18 -41
  51. package/dist-es/commands/PutSchemaCommand.js +18 -41
  52. package/dist-es/commands/UpdateIdentitySourceCommand.js +18 -41
  53. package/dist-es/commands/UpdatePolicyCommand.js +18 -41
  54. package/dist-es/commands/UpdatePolicyStoreCommand.js +18 -41
  55. package/dist-es/commands/UpdatePolicyTemplateCommand.js +18 -41
  56. package/dist-es/endpoint/EndpointParameters.js +6 -0
  57. package/dist-es/pagination/ListIdentitySourcesPaginator.js +2 -23
  58. package/dist-es/pagination/ListPoliciesPaginator.js +2 -23
  59. package/dist-es/pagination/ListPolicyStoresPaginator.js +2 -23
  60. package/dist-es/pagination/ListPolicyTemplatesPaginator.js +2 -23
  61. package/dist-types/commands/BatchIsAuthorizedCommand.d.ts +6 -21
  62. package/dist-types/commands/CreateIdentitySourceCommand.d.ts +6 -21
  63. package/dist-types/commands/CreatePolicyCommand.d.ts +6 -21
  64. package/dist-types/commands/CreatePolicyStoreCommand.d.ts +6 -21
  65. package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +6 -21
  66. package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +6 -21
  67. package/dist-types/commands/DeletePolicyCommand.d.ts +6 -21
  68. package/dist-types/commands/DeletePolicyStoreCommand.d.ts +6 -21
  69. package/dist-types/commands/DeletePolicyTemplateCommand.d.ts +6 -21
  70. package/dist-types/commands/GetIdentitySourceCommand.d.ts +6 -21
  71. package/dist-types/commands/GetPolicyCommand.d.ts +6 -21
  72. package/dist-types/commands/GetPolicyStoreCommand.d.ts +6 -21
  73. package/dist-types/commands/GetPolicyTemplateCommand.d.ts +6 -21
  74. package/dist-types/commands/GetSchemaCommand.d.ts +6 -21
  75. package/dist-types/commands/IsAuthorizedCommand.d.ts +6 -21
  76. package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +6 -21
  77. package/dist-types/commands/ListIdentitySourcesCommand.d.ts +6 -21
  78. package/dist-types/commands/ListPoliciesCommand.d.ts +6 -21
  79. package/dist-types/commands/ListPolicyStoresCommand.d.ts +6 -21
  80. package/dist-types/commands/ListPolicyTemplatesCommand.d.ts +6 -21
  81. package/dist-types/commands/PutSchemaCommand.d.ts +6 -21
  82. package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +6 -21
  83. package/dist-types/commands/UpdatePolicyCommand.d.ts +6 -21
  84. package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +6 -21
  85. package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +6 -21
  86. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  87. package/dist-types/pagination/ListIdentitySourcesPaginator.d.ts +1 -1
  88. package/dist-types/pagination/ListPoliciesPaginator.d.ts +1 -1
  89. package/dist-types/pagination/ListPolicyStoresPaginator.d.ts +1 -1
  90. package/dist-types/pagination/ListPolicyTemplatesPaginator.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/BatchIsAuthorizedCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/CreateIdentitySourceCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/CreatePolicyStoreCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/CreatePolicyTemplateCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/DeleteIdentitySourceCommand.d.ts +12 -24
  97. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/DeletePolicyStoreCommand.d.ts +14 -23
  99. package/dist-types/ts3.4/commands/DeletePolicyTemplateCommand.d.ts +12 -24
  100. package/dist-types/ts3.4/commands/GetIdentitySourceCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/GetPolicyStoreCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/commands/GetPolicyTemplateCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/GetSchemaCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/IsAuthorizedCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/IsAuthorizedWithTokenCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/ListIdentitySourcesCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +14 -23
  109. package/dist-types/ts3.4/commands/ListPolicyStoresCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/commands/ListPolicyTemplatesCommand.d.ts +14 -23
  111. package/dist-types/ts3.4/commands/PutSchemaCommand.d.ts +14 -23
  112. package/dist-types/ts3.4/commands/UpdateIdentitySourceCommand.d.ts +12 -24
  113. package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +14 -23
  114. package/dist-types/ts3.4/commands/UpdatePolicyStoreCommand.d.ts +14 -23
  115. package/dist-types/ts3.4/commands/UpdatePolicyTemplateCommand.d.ts +12 -24
  116. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  117. package/dist-types/ts3.4/pagination/ListIdentitySourcesPaginator.d.ts +3 -3
  118. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +3 -3
  119. package/dist-types/ts3.4/pagination/ListPolicyStoresPaginator.d.ts +3 -3
  120. package/dist-types/ts3.4/pagination/ListPolicyTemplatesPaginator.d.ts +3 -3
  121. package/package.json +11 -10
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { ListPolicyStoresOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_ListPolicyStoresCommand, se_ListPolicyStoresCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class ListPolicyStoresCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, ListPolicyStoresCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "VerifiedPermissionsClient";
27
- const commandName = "ListPolicyStoresCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: ListPolicyStoresOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "VerifiedPermissions",
36
- operation: "ListPolicyStores",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_ListPolicyStoresCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ListPolicyStoresCommand(output, context);
47
- }
8
+ export class ListPolicyStoresCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("VerifiedPermissions", "ListPolicyStores", {})
20
+ .n("VerifiedPermissionsClient", "ListPolicyStoresCommand")
21
+ .f(void 0, ListPolicyStoresOutputFilterSensitiveLog)
22
+ .ser(se_ListPolicyStoresCommand)
23
+ .de(de_ListPolicyStoresCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { ListPolicyTemplatesOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_ListPolicyTemplatesCommand, se_ListPolicyTemplatesCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class ListPolicyTemplatesCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, ListPolicyTemplatesCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "VerifiedPermissionsClient";
27
- const commandName = "ListPolicyTemplatesCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: ListPolicyTemplatesOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "VerifiedPermissions",
36
- operation: "ListPolicyTemplates",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_ListPolicyTemplatesCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_ListPolicyTemplatesCommand(output, context);
47
- }
8
+ export class ListPolicyTemplatesCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("VerifiedPermissions", "ListPolicyTemplates", {})
20
+ .n("VerifiedPermissionsClient", "ListPolicyTemplatesCommand")
21
+ .f(void 0, ListPolicyTemplatesOutputFilterSensitiveLog)
22
+ .ser(se_ListPolicyTemplatesCommand)
23
+ .de(de_ListPolicyTemplatesCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { PutSchemaInputFilterSensitiveLog, PutSchemaOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_PutSchemaCommand, se_PutSchemaCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class PutSchemaCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, PutSchemaCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "VerifiedPermissionsClient";
27
- const commandName = "PutSchemaCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: PutSchemaInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: PutSchemaOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "VerifiedPermissions",
36
- operation: "PutSchema",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_PutSchemaCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_PutSchemaCommand(output, context);
47
- }
8
+ export class PutSchemaCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("VerifiedPermissions", "PutSchema", {})
20
+ .n("VerifiedPermissionsClient", "PutSchemaCommand")
21
+ .f(PutSchemaInputFilterSensitiveLog, PutSchemaOutputFilterSensitiveLog)
22
+ .ser(se_PutSchemaCommand)
23
+ .de(de_PutSchemaCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UpdateIdentitySourceInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdateIdentitySourceCommand, se_UpdateIdentitySourceCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class UpdateIdentitySourceCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateIdentitySourceCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "VerifiedPermissionsClient";
27
- const commandName = "UpdateIdentitySourceCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdateIdentitySourceInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "VerifiedPermissions",
36
- operation: "UpdateIdentitySource",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdateIdentitySourceCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdateIdentitySourceCommand(output, context);
47
- }
8
+ export class UpdateIdentitySourceCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("VerifiedPermissions", "UpdateIdentitySource", {})
20
+ .n("VerifiedPermissionsClient", "UpdateIdentitySourceCommand")
21
+ .f(UpdateIdentitySourceInputFilterSensitiveLog, void 0)
22
+ .ser(se_UpdateIdentitySourceCommand)
23
+ .de(de_UpdateIdentitySourceCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UpdatePolicyInputFilterSensitiveLog, UpdatePolicyOutputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdatePolicyCommand, se_UpdatePolicyCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class UpdatePolicyCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePolicyCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "VerifiedPermissionsClient";
27
- const commandName = "UpdatePolicyCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdatePolicyInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: UpdatePolicyOutputFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "VerifiedPermissions",
36
- operation: "UpdatePolicy",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdatePolicyCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdatePolicyCommand(output, context);
47
- }
8
+ export class UpdatePolicyCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("VerifiedPermissions", "UpdatePolicy", {})
20
+ .n("VerifiedPermissionsClient", "UpdatePolicyCommand")
21
+ .f(UpdatePolicyInputFilterSensitiveLog, UpdatePolicyOutputFilterSensitiveLog)
22
+ .ser(se_UpdatePolicyCommand)
23
+ .de(de_UpdatePolicyCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UpdatePolicyStoreInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdatePolicyStoreCommand, se_UpdatePolicyStoreCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class UpdatePolicyStoreCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePolicyStoreCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "VerifiedPermissionsClient";
27
- const commandName = "UpdatePolicyStoreCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdatePolicyStoreInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "VerifiedPermissions",
36
- operation: "UpdatePolicyStore",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdatePolicyStoreCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdatePolicyStoreCommand(output, context);
47
- }
8
+ export class UpdatePolicyStoreCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("VerifiedPermissions", "UpdatePolicyStore", {})
20
+ .n("VerifiedPermissionsClient", "UpdatePolicyStoreCommand")
21
+ .f(UpdatePolicyStoreInputFilterSensitiveLog, void 0)
22
+ .ser(se_UpdatePolicyStoreCommand)
23
+ .de(de_UpdatePolicyStoreCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UpdatePolicyTemplateInputFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdatePolicyTemplateCommand, se_UpdatePolicyTemplateCommand } from "../protocols/Aws_json1_0";
7
7
  export { $Command };
8
- export class UpdatePolicyTemplateCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePolicyTemplateCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "VerifiedPermissionsClient";
27
- const commandName = "UpdatePolicyTemplateCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdatePolicyTemplateInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "VerifiedPermissions",
36
- operation: "UpdatePolicyTemplate",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdatePolicyTemplateCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdatePolicyTemplateCommand(output, context);
47
- }
8
+ export class UpdatePolicyTemplateCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("VerifiedPermissions", "UpdatePolicyTemplate", {})
20
+ .n("VerifiedPermissionsClient", "UpdatePolicyTemplateCommand")
21
+ .f(UpdatePolicyTemplateInputFilterSensitiveLog, void 0)
22
+ .ser(se_UpdatePolicyTemplateCommand)
23
+ .de(de_UpdatePolicyTemplateCommand)
24
+ .build() {
48
25
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "verifiedpermissions",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListIdentitySourcesCommand, } from "../commands/ListIdentitySourcesCommand";
2
3
  import { VerifiedPermissionsClient } from "../VerifiedPermissionsClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListIdentitySourcesCommand(input), ...args);
5
- };
6
- export async function* paginateListIdentitySources(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof VerifiedPermissionsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VerifiedPermissions | VerifiedPermissionsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListIdentitySources = createPaginator(VerifiedPermissionsClient, ListIdentitySourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPoliciesCommand, } from "../commands/ListPoliciesCommand";
2
3
  import { VerifiedPermissionsClient } from "../VerifiedPermissionsClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPoliciesCommand(input), ...args);
5
- };
6
- export async function* paginateListPolicies(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof VerifiedPermissionsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VerifiedPermissions | VerifiedPermissionsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListPolicies = createPaginator(VerifiedPermissionsClient, ListPoliciesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPolicyStoresCommand, } from "../commands/ListPolicyStoresCommand";
2
3
  import { VerifiedPermissionsClient } from "../VerifiedPermissionsClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPolicyStoresCommand(input), ...args);
5
- };
6
- export async function* paginateListPolicyStores(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof VerifiedPermissionsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VerifiedPermissions | VerifiedPermissionsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListPolicyStores = createPaginator(VerifiedPermissionsClient, ListPolicyStoresCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPolicyTemplatesCommand, } from "../commands/ListPolicyTemplatesCommand";
2
3
  import { VerifiedPermissionsClient } from "../VerifiedPermissionsClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPolicyTemplatesCommand(input), ...args);
5
- };
6
- export async function* paginateListPolicyTemplates(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof VerifiedPermissionsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected VerifiedPermissions | VerifiedPermissionsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListPolicyTemplates = createPaginator(VerifiedPermissionsClient, ListPolicyTemplatesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { BatchIsAuthorizedInput, BatchIsAuthorizedOutput } from "../models/models_0";
5
4
  import { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface BatchIsAuthorizedCommandInput extends BatchIsAuthorizedInput {
21
20
  */
22
21
  export interface BatchIsAuthorizedCommandOutput extends BatchIsAuthorizedOutput, __MetadataBearer {
23
22
  }
23
+ declare const BatchIsAuthorizedCommand_base: {
24
+ new (input: BatchIsAuthorizedCommandInput): import("@smithy/smithy-client").CommandImpl<BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput, VerifiedPermissionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Makes a series of decisions about multiple authorization requests for one principal or
@@ -281,23 +284,5 @@ export interface BatchIsAuthorizedCommandOutput extends BatchIsAuthorizedOutput,
281
284
  * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
282
285
  *
283
286
  */
284
- export declare class BatchIsAuthorizedCommand extends $Command<BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput, VerifiedPermissionsClientResolvedConfig> {
285
- readonly input: BatchIsAuthorizedCommandInput;
286
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
287
- /**
288
- * @public
289
- */
290
- constructor(input: BatchIsAuthorizedCommandInput);
291
- /**
292
- * @internal
293
- */
294
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput>;
295
- /**
296
- * @internal
297
- */
298
- private serialize;
299
- /**
300
- * @internal
301
- */
302
- private deserialize;
287
+ export declare class BatchIsAuthorizedCommand extends BatchIsAuthorizedCommand_base {
303
288
  }