@aws-sdk/client-rolesanywhere 3.975.0 → 3.978.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1091,6 +1091,14 @@ class UpdateTrustAnchorCommand extends smithyClient.Command
1091
1091
  .build() {
1092
1092
  }
1093
1093
 
1094
+ const paginateListCrls = core.createPaginator(RolesAnywhereClient, ListCrlsCommand, "nextToken", "nextToken", "");
1095
+
1096
+ const paginateListProfiles = core.createPaginator(RolesAnywhereClient, ListProfilesCommand, "nextToken", "nextToken", "");
1097
+
1098
+ const paginateListSubjects = core.createPaginator(RolesAnywhereClient, ListSubjectsCommand, "nextToken", "nextToken", "");
1099
+
1100
+ const paginateListTrustAnchors = core.createPaginator(RolesAnywhereClient, ListTrustAnchorsCommand, "nextToken", "nextToken", "");
1101
+
1094
1102
  const commands = {
1095
1103
  CreateProfileCommand,
1096
1104
  CreateTrustAnchorCommand,
@@ -1123,17 +1131,15 @@ const commands = {
1123
1131
  UpdateProfileCommand,
1124
1132
  UpdateTrustAnchorCommand,
1125
1133
  };
1134
+ const paginators = {
1135
+ paginateListCrls,
1136
+ paginateListProfiles,
1137
+ paginateListSubjects,
1138
+ paginateListTrustAnchors,
1139
+ };
1126
1140
  class RolesAnywhere extends RolesAnywhereClient {
1127
1141
  }
1128
- smithyClient.createAggregatedClient(commands, RolesAnywhere);
1129
-
1130
- const paginateListCrls = core.createPaginator(RolesAnywhereClient, ListCrlsCommand, "nextToken", "nextToken", "");
1131
-
1132
- const paginateListProfiles = core.createPaginator(RolesAnywhereClient, ListProfilesCommand, "nextToken", "nextToken", "");
1133
-
1134
- const paginateListSubjects = core.createPaginator(RolesAnywhereClient, ListSubjectsCommand, "nextToken", "nextToken", "");
1135
-
1136
- const paginateListTrustAnchors = core.createPaginator(RolesAnywhereClient, ListTrustAnchorsCommand, "nextToken", "nextToken", "");
1142
+ smithyClient.createAggregatedClient(commands, RolesAnywhere, { paginators });
1137
1143
 
1138
1144
  const CertificateField = {
1139
1145
  x509Issuer: "x509Issuer",
@@ -29,6 +29,10 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
29
29
  import { UpdateCrlCommand } from "./commands/UpdateCrlCommand";
30
30
  import { UpdateProfileCommand, } from "./commands/UpdateProfileCommand";
31
31
  import { UpdateTrustAnchorCommand, } from "./commands/UpdateTrustAnchorCommand";
32
+ import { paginateListCrls } from "./pagination/ListCrlsPaginator";
33
+ import { paginateListProfiles } from "./pagination/ListProfilesPaginator";
34
+ import { paginateListSubjects } from "./pagination/ListSubjectsPaginator";
35
+ import { paginateListTrustAnchors } from "./pagination/ListTrustAnchorsPaginator";
32
36
  import { RolesAnywhereClient } from "./RolesAnywhereClient";
33
37
  const commands = {
34
38
  CreateProfileCommand,
@@ -62,6 +66,12 @@ const commands = {
62
66
  UpdateProfileCommand,
63
67
  UpdateTrustAnchorCommand,
64
68
  };
69
+ const paginators = {
70
+ paginateListCrls,
71
+ paginateListProfiles,
72
+ paginateListSubjects,
73
+ paginateListTrustAnchors,
74
+ };
65
75
  export class RolesAnywhere extends RolesAnywhereClient {
66
76
  }
67
- createAggregatedClient(commands, RolesAnywhere);
77
+ createAggregatedClient(commands, RolesAnywhere, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { CreateProfileCommandInput, CreateProfileCommandOutput } from "./commands/CreateProfileCommand";
3
3
  import { CreateTrustAnchorCommandInput, CreateTrustAnchorCommandOutput } from "./commands/CreateTrustAnchorCommand";
4
4
  import { DeleteAttributeMappingCommandInput, DeleteAttributeMappingCommandOutput } from "./commands/DeleteAttributeMappingCommand";
@@ -215,6 +215,34 @@ export interface RolesAnywhere {
215
215
  updateTrustAnchor(args: UpdateTrustAnchorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTrustAnchorCommandOutput>;
216
216
  updateTrustAnchor(args: UpdateTrustAnchorCommandInput, cb: (err: any, data?: UpdateTrustAnchorCommandOutput) => void): void;
217
217
  updateTrustAnchor(args: UpdateTrustAnchorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTrustAnchorCommandOutput) => void): void;
218
+ /**
219
+ * @see {@link ListCrlsCommand}
220
+ * @param args - command input.
221
+ * @param paginationConfig - optional pagination config.
222
+ * @returns AsyncIterable of {@link ListCrlsCommandOutput}.
223
+ */
224
+ paginateListCrls(args?: ListCrlsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListCrlsCommandOutput>;
225
+ /**
226
+ * @see {@link ListProfilesCommand}
227
+ * @param args - command input.
228
+ * @param paginationConfig - optional pagination config.
229
+ * @returns AsyncIterable of {@link ListProfilesCommandOutput}.
230
+ */
231
+ paginateListProfiles(args?: ListProfilesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProfilesCommandOutput>;
232
+ /**
233
+ * @see {@link ListSubjectsCommand}
234
+ * @param args - command input.
235
+ * @param paginationConfig - optional pagination config.
236
+ * @returns AsyncIterable of {@link ListSubjectsCommandOutput}.
237
+ */
238
+ paginateListSubjects(args?: ListSubjectsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSubjectsCommandOutput>;
239
+ /**
240
+ * @see {@link ListTrustAnchorsCommand}
241
+ * @param args - command input.
242
+ * @param paginationConfig - optional pagination config.
243
+ * @returns AsyncIterable of {@link ListTrustAnchorsCommandOutput}.
244
+ */
245
+ paginateListTrustAnchors(args?: ListTrustAnchorsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTrustAnchorsCommandOutput>;
218
246
  }
219
247
  /**
220
248
  * <p>Identity and Access Management Roles Anywhere provides a secure way for your workloads such as servers, containers, and applications that run outside of Amazon Web Services to obtain temporary Amazon Web Services credentials. Your workloads can use the same IAM policies and roles you have for native Amazon Web Services applications to access Amazon Web Services resources. Using IAM Roles Anywhere eliminates the need to manage long-term credentials for workloads running outside of Amazon Web Services.</p> <p> To use IAM Roles Anywhere, your workloads must use X.509 certificates issued by their certificate authority (CA). You register the CA with IAM Roles Anywhere as a trust anchor to establish trust between your public key infrastructure (PKI) and IAM Roles Anywhere. If you don't manage your own PKI system, you can use Private Certificate Authority to create a CA and then use that to establish trust with IAM Roles Anywhere. </p> <p>This guide describes the IAM Roles Anywhere operations that you can call programmatically. For more information about IAM Roles Anywhere, see the <a href="https://docs.aws.amazon.com/rolesanywhere/latest/userguide/introduction.html">IAM Roles Anywhere User Guide</a>.</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  CreateProfileCommandInput,
4
8
  CreateProfileCommandOutput,
@@ -515,6 +519,34 @@ export interface RolesAnywhere {
515
519
  options: __HttpHandlerOptions,
516
520
  cb: (err: any, data?: UpdateTrustAnchorCommandOutput) => void
517
521
  ): void;
522
+ paginateListCrls(
523
+ args?: ListCrlsCommandInput,
524
+ paginationConfig?: Pick<
525
+ PaginationConfiguration,
526
+ Exclude<keyof PaginationConfiguration, "client">
527
+ >
528
+ ): Paginator<ListCrlsCommandOutput>;
529
+ paginateListProfiles(
530
+ args?: ListProfilesCommandInput,
531
+ paginationConfig?: Pick<
532
+ PaginationConfiguration,
533
+ Exclude<keyof PaginationConfiguration, "client">
534
+ >
535
+ ): Paginator<ListProfilesCommandOutput>;
536
+ paginateListSubjects(
537
+ args?: ListSubjectsCommandInput,
538
+ paginationConfig?: Pick<
539
+ PaginationConfiguration,
540
+ Exclude<keyof PaginationConfiguration, "client">
541
+ >
542
+ ): Paginator<ListSubjectsCommandOutput>;
543
+ paginateListTrustAnchors(
544
+ args?: ListTrustAnchorsCommandInput,
545
+ paginationConfig?: Pick<
546
+ PaginationConfiguration,
547
+ Exclude<keyof PaginationConfiguration, "client">
548
+ >
549
+ ): Paginator<ListTrustAnchorsCommandOutput>;
518
550
  }
519
551
  export declare class RolesAnywhere
520
552
  extends RolesAnywhereClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rolesanywhere",
3
3
  "description": "AWS SDK for JavaScript Rolesanywhere Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rolesanywhere",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",