@aws-sdk/client-rolesanywhere 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 (133) hide show
  1. package/dist-cjs/commands/CreateProfileCommand.js +18 -41
  2. package/dist-cjs/commands/CreateTrustAnchorCommand.js +18 -41
  3. package/dist-cjs/commands/DeleteCrlCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteProfileCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteTrustAnchorCommand.js +18 -41
  6. package/dist-cjs/commands/DisableCrlCommand.js +18 -41
  7. package/dist-cjs/commands/DisableProfileCommand.js +18 -41
  8. package/dist-cjs/commands/DisableTrustAnchorCommand.js +18 -41
  9. package/dist-cjs/commands/EnableCrlCommand.js +18 -41
  10. package/dist-cjs/commands/EnableProfileCommand.js +18 -41
  11. package/dist-cjs/commands/EnableTrustAnchorCommand.js +18 -41
  12. package/dist-cjs/commands/GetCrlCommand.js +18 -41
  13. package/dist-cjs/commands/GetProfileCommand.js +18 -41
  14. package/dist-cjs/commands/GetSubjectCommand.js +18 -41
  15. package/dist-cjs/commands/GetTrustAnchorCommand.js +18 -41
  16. package/dist-cjs/commands/ImportCrlCommand.js +18 -41
  17. package/dist-cjs/commands/ListCrlsCommand.js +18 -41
  18. package/dist-cjs/commands/ListProfilesCommand.js +18 -41
  19. package/dist-cjs/commands/ListSubjectsCommand.js +18 -41
  20. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  21. package/dist-cjs/commands/ListTrustAnchorsCommand.js +18 -41
  22. package/dist-cjs/commands/PutNotificationSettingsCommand.js +18 -41
  23. package/dist-cjs/commands/ResetNotificationSettingsCommand.js +18 -41
  24. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  25. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  26. package/dist-cjs/commands/UpdateCrlCommand.js +18 -41
  27. package/dist-cjs/commands/UpdateProfileCommand.js +18 -41
  28. package/dist-cjs/commands/UpdateTrustAnchorCommand.js +18 -41
  29. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  30. package/dist-cjs/pagination/ListCrlsPaginator.js +2 -23
  31. package/dist-cjs/pagination/ListProfilesPaginator.js +2 -23
  32. package/dist-cjs/pagination/ListSubjectsPaginator.js +2 -23
  33. package/dist-cjs/pagination/ListTrustAnchorsPaginator.js +2 -23
  34. package/dist-es/commands/CreateProfileCommand.js +18 -41
  35. package/dist-es/commands/CreateTrustAnchorCommand.js +18 -41
  36. package/dist-es/commands/DeleteCrlCommand.js +18 -41
  37. package/dist-es/commands/DeleteProfileCommand.js +18 -41
  38. package/dist-es/commands/DeleteTrustAnchorCommand.js +18 -41
  39. package/dist-es/commands/DisableCrlCommand.js +18 -41
  40. package/dist-es/commands/DisableProfileCommand.js +18 -41
  41. package/dist-es/commands/DisableTrustAnchorCommand.js +18 -41
  42. package/dist-es/commands/EnableCrlCommand.js +18 -41
  43. package/dist-es/commands/EnableProfileCommand.js +18 -41
  44. package/dist-es/commands/EnableTrustAnchorCommand.js +18 -41
  45. package/dist-es/commands/GetCrlCommand.js +18 -41
  46. package/dist-es/commands/GetProfileCommand.js +18 -41
  47. package/dist-es/commands/GetSubjectCommand.js +18 -41
  48. package/dist-es/commands/GetTrustAnchorCommand.js +18 -41
  49. package/dist-es/commands/ImportCrlCommand.js +18 -41
  50. package/dist-es/commands/ListCrlsCommand.js +18 -41
  51. package/dist-es/commands/ListProfilesCommand.js +18 -41
  52. package/dist-es/commands/ListSubjectsCommand.js +18 -41
  53. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  54. package/dist-es/commands/ListTrustAnchorsCommand.js +18 -41
  55. package/dist-es/commands/PutNotificationSettingsCommand.js +18 -41
  56. package/dist-es/commands/ResetNotificationSettingsCommand.js +18 -41
  57. package/dist-es/commands/TagResourceCommand.js +18 -41
  58. package/dist-es/commands/UntagResourceCommand.js +18 -41
  59. package/dist-es/commands/UpdateCrlCommand.js +18 -41
  60. package/dist-es/commands/UpdateProfileCommand.js +18 -41
  61. package/dist-es/commands/UpdateTrustAnchorCommand.js +18 -41
  62. package/dist-es/endpoint/EndpointParameters.js +6 -0
  63. package/dist-es/pagination/ListCrlsPaginator.js +2 -22
  64. package/dist-es/pagination/ListProfilesPaginator.js +2 -22
  65. package/dist-es/pagination/ListSubjectsPaginator.js +2 -22
  66. package/dist-es/pagination/ListTrustAnchorsPaginator.js +2 -22
  67. package/dist-types/commands/CreateProfileCommand.d.ts +6 -21
  68. package/dist-types/commands/CreateTrustAnchorCommand.d.ts +6 -21
  69. package/dist-types/commands/DeleteCrlCommand.d.ts +6 -21
  70. package/dist-types/commands/DeleteProfileCommand.d.ts +6 -21
  71. package/dist-types/commands/DeleteTrustAnchorCommand.d.ts +6 -21
  72. package/dist-types/commands/DisableCrlCommand.d.ts +6 -21
  73. package/dist-types/commands/DisableProfileCommand.d.ts +6 -21
  74. package/dist-types/commands/DisableTrustAnchorCommand.d.ts +6 -21
  75. package/dist-types/commands/EnableCrlCommand.d.ts +6 -21
  76. package/dist-types/commands/EnableProfileCommand.d.ts +6 -21
  77. package/dist-types/commands/EnableTrustAnchorCommand.d.ts +6 -21
  78. package/dist-types/commands/GetCrlCommand.d.ts +6 -21
  79. package/dist-types/commands/GetProfileCommand.d.ts +6 -21
  80. package/dist-types/commands/GetSubjectCommand.d.ts +6 -21
  81. package/dist-types/commands/GetTrustAnchorCommand.d.ts +6 -21
  82. package/dist-types/commands/ImportCrlCommand.d.ts +6 -21
  83. package/dist-types/commands/ListCrlsCommand.d.ts +6 -21
  84. package/dist-types/commands/ListProfilesCommand.d.ts +6 -21
  85. package/dist-types/commands/ListSubjectsCommand.d.ts +6 -21
  86. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  87. package/dist-types/commands/ListTrustAnchorsCommand.d.ts +6 -21
  88. package/dist-types/commands/PutNotificationSettingsCommand.d.ts +6 -21
  89. package/dist-types/commands/ResetNotificationSettingsCommand.d.ts +6 -21
  90. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  91. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  92. package/dist-types/commands/UpdateCrlCommand.d.ts +6 -21
  93. package/dist-types/commands/UpdateProfileCommand.d.ts +6 -21
  94. package/dist-types/commands/UpdateTrustAnchorCommand.d.ts +6 -21
  95. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  96. package/dist-types/pagination/ListCrlsPaginator.d.ts +1 -1
  97. package/dist-types/pagination/ListProfilesPaginator.d.ts +1 -1
  98. package/dist-types/pagination/ListSubjectsPaginator.d.ts +1 -1
  99. package/dist-types/pagination/ListTrustAnchorsPaginator.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/CreateTrustAnchorCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/DeleteCrlCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/DeleteTrustAnchorCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/DisableCrlCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/DisableProfileCommand.d.ts +14 -23
  107. package/dist-types/ts3.4/commands/DisableTrustAnchorCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/commands/EnableCrlCommand.d.ts +14 -23
  109. package/dist-types/ts3.4/commands/EnableProfileCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/commands/EnableTrustAnchorCommand.d.ts +14 -23
  111. package/dist-types/ts3.4/commands/GetCrlCommand.d.ts +12 -23
  112. package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +14 -23
  113. package/dist-types/ts3.4/commands/GetSubjectCommand.d.ts +14 -23
  114. package/dist-types/ts3.4/commands/GetTrustAnchorCommand.d.ts +14 -23
  115. package/dist-types/ts3.4/commands/ImportCrlCommand.d.ts +14 -23
  116. package/dist-types/ts3.4/commands/ListCrlsCommand.d.ts +14 -23
  117. package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +14 -23
  118. package/dist-types/ts3.4/commands/ListSubjectsCommand.d.ts +14 -23
  119. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  120. package/dist-types/ts3.4/commands/ListTrustAnchorsCommand.d.ts +14 -23
  121. package/dist-types/ts3.4/commands/PutNotificationSettingsCommand.d.ts +12 -24
  122. package/dist-types/ts3.4/commands/ResetNotificationSettingsCommand.d.ts +12 -24
  123. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  124. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  125. package/dist-types/ts3.4/commands/UpdateCrlCommand.d.ts +14 -23
  126. package/dist-types/ts3.4/commands/UpdateProfileCommand.d.ts +14 -23
  127. package/dist-types/ts3.4/commands/UpdateTrustAnchorCommand.d.ts +14 -23
  128. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  129. package/dist-types/ts3.4/pagination/ListCrlsPaginator.d.ts +3 -3
  130. package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +3 -3
  131. package/dist-types/ts3.4/pagination/ListSubjectsPaginator.d.ts +3 -3
  132. package/dist-types/ts3.4/pagination/ListTrustAnchorsPaginator.d.ts +3 -3
  133. package/package.json +11 -11
@@ -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 { UntagResourceRequestFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UntagResourceCommand 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, UntagResourceCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "RolesAnywhereClient";
27
- const commandName = "UntagResourceCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UntagResourceRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "RolesAnywhere",
36
- operation: "UntagResource",
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_UntagResourceCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UntagResourceCommand(output, context);
47
- }
8
+ export class UntagResourceCommand 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("RolesAnywhere", "UntagResource", {})
20
+ .n("RolesAnywhereClient", "UntagResourceCommand")
21
+ .f(UntagResourceRequestFilterSensitiveLog, void 0)
22
+ .ser(se_UntagResourceCommand)
23
+ .de(de_UntagResourceCommand)
24
+ .build() {
48
25
  }
@@ -1,47 +1,24 @@
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 { de_UpdateCrlCommand, se_UpdateCrlCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateCrlCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateCrlCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RolesAnywhereClient";
26
- const commandName = "UpdateCrlCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RolesAnywhere",
35
- operation: "UpdateCrl",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateCrlCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateCrlCommand(output, context);
46
- }
7
+ export class UpdateCrlCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RolesAnywhere", "UpdateCrl", {})
19
+ .n("RolesAnywhereClient", "UpdateCrlCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateCrlCommand)
22
+ .de(de_UpdateCrlCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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 { de_UpdateProfileCommand, se_UpdateProfileCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateProfileCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateProfileCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RolesAnywhereClient";
26
- const commandName = "UpdateProfileCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RolesAnywhere",
35
- operation: "UpdateProfile",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateProfileCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateProfileCommand(output, context);
46
- }
7
+ export class UpdateProfileCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RolesAnywhere", "UpdateProfile", {})
19
+ .n("RolesAnywhereClient", "UpdateProfileCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateProfileCommand)
22
+ .de(de_UpdateProfileCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
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 { de_UpdateTrustAnchorCommand, se_UpdateTrustAnchorCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateTrustAnchorCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
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
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateTrustAnchorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "RolesAnywhereClient";
26
- const commandName = "UpdateTrustAnchorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "RolesAnywhere",
35
- operation: "UpdateTrustAnchor",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateTrustAnchorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateTrustAnchorCommand(output, context);
46
- }
7
+ export class UpdateTrustAnchorCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("RolesAnywhere", "UpdateTrustAnchor", {})
19
+ .n("RolesAnywhereClient", "UpdateTrustAnchorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateTrustAnchorCommand)
22
+ .de(de_UpdateTrustAnchorCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "rolesanywhere",
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,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCrlsCommand } from "../commands/ListCrlsCommand";
2
3
  import { RolesAnywhereClient } from "../RolesAnywhereClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCrlsCommand(input), ...args);
5
- };
6
- export async function* paginateListCrls(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof RolesAnywhereClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListCrls = createPaginator(RolesAnywhereClient, ListCrlsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListProfilesCommand, } from "../commands/ListProfilesCommand";
2
3
  import { RolesAnywhereClient } from "../RolesAnywhereClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProfilesCommand(input), ...args);
5
- };
6
- export async function* paginateListProfiles(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof RolesAnywhereClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListProfiles = createPaginator(RolesAnywhereClient, ListProfilesCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSubjectsCommand, } from "../commands/ListSubjectsCommand";
2
3
  import { RolesAnywhereClient } from "../RolesAnywhereClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSubjectsCommand(input), ...args);
5
- };
6
- export async function* paginateListSubjects(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof RolesAnywhereClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListSubjects = createPaginator(RolesAnywhereClient, ListSubjectsCommand, "nextToken", "nextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTrustAnchorsCommand, } from "../commands/ListTrustAnchorsCommand";
2
3
  import { RolesAnywhereClient } from "../RolesAnywhereClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTrustAnchorsCommand(input), ...args);
5
- };
6
- export async function* paginateListTrustAnchors(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof RolesAnywhereClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected RolesAnywhere | RolesAnywhereClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListTrustAnchors = createPaginator(RolesAnywhereClient, ListTrustAnchorsCommand, "nextToken", "nextToken", "");
@@ -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 { CreateProfileRequest, ProfileDetailResponse } from "../models/models_0";
5
4
  import { RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RolesAnywhereClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateProfileCommandInput extends CreateProfileRequest {
21
20
  */
22
21
  export interface CreateProfileCommandOutput extends ProfileDetailResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateProfileCommand_base: {
24
+ new (input: CreateProfileCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProfileCommandInput, CreateProfileCommandOutput, RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a <i>profile</i>, a list of the roles that Roles Anywhere service is trusted to assume. You use profiles to intersect permissions with IAM managed policies.</p>
@@ -94,23 +97,5 @@ export interface CreateProfileCommandOutput extends ProfileDetailResponse, __Met
94
97
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
95
98
  *
96
99
  */
97
- export declare class CreateProfileCommand extends $Command<CreateProfileCommandInput, CreateProfileCommandOutput, RolesAnywhereClientResolvedConfig> {
98
- readonly input: CreateProfileCommandInput;
99
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
100
- /**
101
- * @public
102
- */
103
- constructor(input: CreateProfileCommandInput);
104
- /**
105
- * @internal
106
- */
107
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RolesAnywhereClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateProfileCommandInput, CreateProfileCommandOutput>;
108
- /**
109
- * @internal
110
- */
111
- private serialize;
112
- /**
113
- * @internal
114
- */
115
- private deserialize;
100
+ export declare class CreateProfileCommand extends CreateProfileCommand_base {
116
101
  }
@@ -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 { CreateTrustAnchorRequest, TrustAnchorDetailResponse } from "../models/models_0";
5
4
  import { RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RolesAnywhereClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateTrustAnchorCommandInput extends CreateTrustAnchorRequest
21
20
  */
22
21
  export interface CreateTrustAnchorCommandOutput extends TrustAnchorDetailResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateTrustAnchorCommand_base: {
24
+ new (input: CreateTrustAnchorCommandInput): import("@smithy/smithy-client").CommandImpl<CreateTrustAnchorCommandInput, CreateTrustAnchorCommandOutput, RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a trust anchor to establish trust between IAM Roles Anywhere and
@@ -108,23 +111,5 @@ export interface CreateTrustAnchorCommandOutput extends TrustAnchorDetailRespons
108
111
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
109
112
  *
110
113
  */
111
- export declare class CreateTrustAnchorCommand extends $Command<CreateTrustAnchorCommandInput, CreateTrustAnchorCommandOutput, RolesAnywhereClientResolvedConfig> {
112
- readonly input: CreateTrustAnchorCommandInput;
113
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
114
- /**
115
- * @public
116
- */
117
- constructor(input: CreateTrustAnchorCommandInput);
118
- /**
119
- * @internal
120
- */
121
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RolesAnywhereClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateTrustAnchorCommandInput, CreateTrustAnchorCommandOutput>;
122
- /**
123
- * @internal
124
- */
125
- private serialize;
126
- /**
127
- * @internal
128
- */
129
- private deserialize;
114
+ export declare class CreateTrustAnchorCommand extends CreateTrustAnchorCommand_base {
130
115
  }
@@ -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 { CrlDetailResponse, ScalarCrlRequest } from "../models/models_0";
5
4
  import { RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RolesAnywhereClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteCrlCommandInput extends ScalarCrlRequest {
21
20
  */
22
21
  export interface DeleteCrlCommandOutput extends CrlDetailResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteCrlCommand_base: {
24
+ new (input: DeleteCrlCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCrlCommandInput, DeleteCrlCommandOutput, RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a certificate revocation list (CRL).</p>
@@ -70,23 +73,5 @@ export interface DeleteCrlCommandOutput extends CrlDetailResponse, __MetadataBea
70
73
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
71
74
  *
72
75
  */
73
- export declare class DeleteCrlCommand extends $Command<DeleteCrlCommandInput, DeleteCrlCommandOutput, RolesAnywhereClientResolvedConfig> {
74
- readonly input: DeleteCrlCommandInput;
75
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
76
- /**
77
- * @public
78
- */
79
- constructor(input: DeleteCrlCommandInput);
80
- /**
81
- * @internal
82
- */
83
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RolesAnywhereClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteCrlCommandInput, DeleteCrlCommandOutput>;
84
- /**
85
- * @internal
86
- */
87
- private serialize;
88
- /**
89
- * @internal
90
- */
91
- private deserialize;
76
+ export declare class DeleteCrlCommand extends DeleteCrlCommand_base {
92
77
  }
@@ -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 { ProfileDetailResponse, ScalarProfileRequest } from "../models/models_0";
5
4
  import { RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RolesAnywhereClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteProfileCommandInput extends ScalarProfileRequest {
21
20
  */
22
21
  export interface DeleteProfileCommandOutput extends ProfileDetailResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteProfileCommand_base: {
24
+ new (input: DeleteProfileCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteProfileCommandInput, DeleteProfileCommandOutput, RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a profile.</p>
@@ -78,23 +81,5 @@ export interface DeleteProfileCommandOutput extends ProfileDetailResponse, __Met
78
81
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
79
82
  *
80
83
  */
81
- export declare class DeleteProfileCommand extends $Command<DeleteProfileCommandInput, DeleteProfileCommandOutput, RolesAnywhereClientResolvedConfig> {
82
- readonly input: DeleteProfileCommandInput;
83
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
84
- /**
85
- * @public
86
- */
87
- constructor(input: DeleteProfileCommandInput);
88
- /**
89
- * @internal
90
- */
91
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RolesAnywhereClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteProfileCommandInput, DeleteProfileCommandOutput>;
92
- /**
93
- * @internal
94
- */
95
- private serialize;
96
- /**
97
- * @internal
98
- */
99
- private deserialize;
84
+ export declare class DeleteProfileCommand extends DeleteProfileCommand_base {
100
85
  }
@@ -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 { ScalarTrustAnchorRequest, TrustAnchorDetailResponse } from "../models/models_0";
5
4
  import { RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RolesAnywhereClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteTrustAnchorCommandInput extends ScalarTrustAnchorRequest
21
20
  */
22
21
  export interface DeleteTrustAnchorCommandOutput extends TrustAnchorDetailResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteTrustAnchorCommand_base: {
24
+ new (input: DeleteTrustAnchorCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteTrustAnchorCommandInput, DeleteTrustAnchorCommandOutput, RolesAnywhereClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a trust anchor.</p>
@@ -84,23 +87,5 @@ export interface DeleteTrustAnchorCommandOutput extends TrustAnchorDetailRespons
84
87
  * <p>Base exception class for all service exceptions from RolesAnywhere service.</p>
85
88
  *
86
89
  */
87
- export declare class DeleteTrustAnchorCommand extends $Command<DeleteTrustAnchorCommandInput, DeleteTrustAnchorCommandOutput, RolesAnywhereClientResolvedConfig> {
88
- readonly input: DeleteTrustAnchorCommandInput;
89
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
90
- /**
91
- * @public
92
- */
93
- constructor(input: DeleteTrustAnchorCommandInput);
94
- /**
95
- * @internal
96
- */
97
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RolesAnywhereClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteTrustAnchorCommandInput, DeleteTrustAnchorCommandOutput>;
98
- /**
99
- * @internal
100
- */
101
- private serialize;
102
- /**
103
- * @internal
104
- */
105
- private deserialize;
90
+ export declare class DeleteTrustAnchorCommand extends DeleteTrustAnchorCommand_base {
106
91
  }