@aws-sdk/client-rolesanywhere 3.329.0 → 3.333.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 (45) hide show
  1. package/README.md +30 -3
  2. package/dist-cjs/RolesAnywhere.js +4 -0
  3. package/dist-cjs/commands/PutNotificationSettingsCommand.js +45 -0
  4. package/dist-cjs/commands/ResetNotificationSettingsCommand.js +45 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/models/models_0.js +8 -1
  8. package/dist-cjs/protocols/Aws_restJson1.js +128 -2
  9. package/dist-es/RolesAnywhere.js +4 -0
  10. package/dist-es/commands/PutNotificationSettingsCommand.js +41 -0
  11. package/dist-es/commands/ResetNotificationSettingsCommand.js +41 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/endpoint/ruleset.js +3 -3
  14. package/dist-es/models/models_0.js +7 -0
  15. package/dist-es/protocols/Aws_restJson1.js +122 -0
  16. package/dist-types/RolesAnywhere.d.ts +29 -4
  17. package/dist-types/RolesAnywhereClient.d.ts +19 -6
  18. package/dist-types/commands/CreateProfileCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateTrustAnchorCommand.d.ts +20 -1
  20. package/dist-types/commands/DeleteTrustAnchorCommand.d.ts +9 -0
  21. package/dist-types/commands/DisableProfileCommand.d.ts +1 -1
  22. package/dist-types/commands/DisableTrustAnchorCommand.d.ts +10 -1
  23. package/dist-types/commands/EnableProfileCommand.d.ts +1 -1
  24. package/dist-types/commands/EnableTrustAnchorCommand.d.ts +9 -0
  25. package/dist-types/commands/GetSubjectCommand.d.ts +4 -1
  26. package/dist-types/commands/GetTrustAnchorCommand.d.ts +9 -0
  27. package/dist-types/commands/ImportCrlCommand.d.ts +3 -1
  28. package/dist-types/commands/ListCrlsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListTrustAnchorsCommand.d.ts +9 -0
  30. package/dist-types/commands/PutNotificationSettingsCommand.d.ts +115 -0
  31. package/dist-types/commands/ResetNotificationSettingsCommand.d.ts +112 -0
  32. package/dist-types/commands/UpdateCrlCommand.d.ts +3 -1
  33. package/dist-types/commands/UpdateProfileCommand.d.ts +3 -1
  34. package/dist-types/commands/UpdateTrustAnchorCommand.d.ts +15 -1
  35. package/dist-types/commands/index.d.ts +2 -0
  36. package/dist-types/models/models_0.d.ts +185 -24
  37. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  38. package/dist-types/ts3.4/RolesAnywhere.d.ts +34 -0
  39. package/dist-types/ts3.4/RolesAnywhereClient.d.ts +12 -0
  40. package/dist-types/ts3.4/commands/PutNotificationSettingsCommand.d.ts +41 -0
  41. package/dist-types/ts3.4/commands/ResetNotificationSettingsCommand.d.ts +41 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +44 -0
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  45. package/package.json +5 -5
@@ -128,6 +128,14 @@ import {
128
128
  ListTrustAnchorsCommandInput,
129
129
  ListTrustAnchorsCommandOutput,
130
130
  } from "./commands/ListTrustAnchorsCommand";
131
+ import {
132
+ PutNotificationSettingsCommandInput,
133
+ PutNotificationSettingsCommandOutput,
134
+ } from "./commands/PutNotificationSettingsCommand";
135
+ import {
136
+ ResetNotificationSettingsCommandInput,
137
+ ResetNotificationSettingsCommandOutput,
138
+ } from "./commands/ResetNotificationSettingsCommand";
131
139
  import {
132
140
  TagResourceCommandInput,
133
141
  TagResourceCommandOutput,
@@ -175,6 +183,8 @@ export type ServiceInputTypes =
175
183
  | ListSubjectsCommandInput
176
184
  | ListTagsForResourceCommandInput
177
185
  | ListTrustAnchorsCommandInput
186
+ | PutNotificationSettingsCommandInput
187
+ | ResetNotificationSettingsCommandInput
178
188
  | TagResourceCommandInput
179
189
  | UntagResourceCommandInput
180
190
  | UpdateCrlCommandInput
@@ -202,6 +212,8 @@ export type ServiceOutputTypes =
202
212
  | ListSubjectsCommandOutput
203
213
  | ListTagsForResourceCommandOutput
204
214
  | ListTrustAnchorsCommandOutput
215
+ | PutNotificationSettingsCommandOutput
216
+ | ResetNotificationSettingsCommandOutput
205
217
  | TagResourceCommandOutput
206
218
  | UntagResourceCommandOutput
207
219
  | UpdateCrlCommandOutput
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ PutNotificationSettingsRequest,
11
+ PutNotificationSettingsResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ RolesAnywhereClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../RolesAnywhereClient";
18
+ export interface PutNotificationSettingsCommandInput
19
+ extends PutNotificationSettingsRequest {}
20
+ export interface PutNotificationSettingsCommandOutput
21
+ extends PutNotificationSettingsResponse,
22
+ __MetadataBearer {}
23
+ export declare class PutNotificationSettingsCommand extends $Command<
24
+ PutNotificationSettingsCommandInput,
25
+ PutNotificationSettingsCommandOutput,
26
+ RolesAnywhereClientResolvedConfig
27
+ > {
28
+ readonly input: PutNotificationSettingsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: PutNotificationSettingsCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: RolesAnywhereClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ PutNotificationSettingsCommandInput,
37
+ PutNotificationSettingsCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ ResetNotificationSettingsRequest,
11
+ ResetNotificationSettingsResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ RolesAnywhereClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../RolesAnywhereClient";
18
+ export interface ResetNotificationSettingsCommandInput
19
+ extends ResetNotificationSettingsRequest {}
20
+ export interface ResetNotificationSettingsCommandOutput
21
+ extends ResetNotificationSettingsResponse,
22
+ __MetadataBearer {}
23
+ export declare class ResetNotificationSettingsCommand extends $Command<
24
+ ResetNotificationSettingsCommandInput,
25
+ ResetNotificationSettingsCommandOutput,
26
+ RolesAnywhereClientResolvedConfig
27
+ > {
28
+ readonly input: ResetNotificationSettingsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ResetNotificationSettingsCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: RolesAnywhereClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ ResetNotificationSettingsCommandInput,
37
+ ResetNotificationSettingsCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -19,6 +19,8 @@ export * from "./ListProfilesCommand";
19
19
  export * from "./ListSubjectsCommand";
20
20
  export * from "./ListTagsForResourceCommand";
21
21
  export * from "./ListTrustAnchorsCommand";
22
+ export * from "./PutNotificationSettingsCommand";
23
+ export * from "./ResetNotificationSettingsCommand";
22
24
  export * from "./TagResourceCommand";
23
25
  export * from "./UntagResourceCommand";
24
26
  export * from "./UpdateCrlCommand";
@@ -45,6 +45,23 @@ export declare class ValidationException extends __BaseException {
45
45
  opts: __ExceptionOptionType<ValidationException, __BaseException>
46
46
  );
47
47
  }
48
+ export declare const NotificationChannel: {
49
+ readonly ALL: "ALL";
50
+ };
51
+ export type NotificationChannel =
52
+ (typeof NotificationChannel)[keyof typeof NotificationChannel];
53
+ export declare const NotificationEvent: {
54
+ readonly CA_CERTIFICATE_EXPIRY: "CA_CERTIFICATE_EXPIRY";
55
+ readonly END_ENTITY_CERTIFICATE_EXPIRY: "END_ENTITY_CERTIFICATE_EXPIRY";
56
+ };
57
+ export type NotificationEvent =
58
+ (typeof NotificationEvent)[keyof typeof NotificationEvent];
59
+ export interface NotificationSetting {
60
+ enabled: boolean | undefined;
61
+ event: NotificationEvent | string | undefined;
62
+ threshold?: number;
63
+ channel?: NotificationChannel | string;
64
+ }
48
65
  export type SourceData =
49
66
  | SourceData.AcmPcaArnMember
50
67
  | SourceData.X509CertificateDataMember
@@ -88,6 +105,14 @@ export interface CreateTrustAnchorRequest {
88
105
  source: Source | undefined;
89
106
  enabled?: boolean;
90
107
  tags?: Tag[];
108
+ notificationSettings?: NotificationSetting[];
109
+ }
110
+ export interface NotificationSettingDetail {
111
+ enabled: boolean | undefined;
112
+ event: NotificationEvent | string | undefined;
113
+ threshold?: number;
114
+ channel?: NotificationChannel | string;
115
+ configuredBy?: string;
91
116
  }
92
117
  export interface TrustAnchorDetail {
93
118
  trustAnchorId?: string;
@@ -97,6 +122,7 @@ export interface TrustAnchorDetail {
97
122
  enabled?: boolean;
98
123
  createdAt?: Date;
99
124
  updatedAt?: Date;
125
+ notificationSettings?: NotificationSettingDetail[];
100
126
  }
101
127
  export interface TrustAnchorDetailResponse {
102
128
  trustAnchor: TrustAnchorDetail | undefined;
@@ -207,6 +233,10 @@ export interface ListTrustAnchorsResponse {
207
233
  nextToken?: string;
208
234
  trustAnchors?: TrustAnchorDetail[];
209
235
  }
236
+ export interface NotificationSettingKey {
237
+ event: NotificationEvent | string | undefined;
238
+ channel?: NotificationChannel | string;
239
+ }
210
240
  export interface UpdateProfileRequest {
211
241
  profileId: string | undefined;
212
242
  name?: string;
@@ -215,6 +245,20 @@ export interface UpdateProfileRequest {
215
245
  managedPolicyArns?: string[];
216
246
  durationSeconds?: number;
217
247
  }
248
+ export interface PutNotificationSettingsRequest {
249
+ trustAnchorId: string | undefined;
250
+ notificationSettings: NotificationSetting[] | undefined;
251
+ }
252
+ export interface PutNotificationSettingsResponse {
253
+ trustAnchor: TrustAnchorDetail | undefined;
254
+ }
255
+ export interface ResetNotificationSettingsRequest {
256
+ trustAnchorId: string | undefined;
257
+ notificationSettingKeys: NotificationSettingKey[] | undefined;
258
+ }
259
+ export interface ResetNotificationSettingsResponse {
260
+ trustAnchor: TrustAnchorDetail | undefined;
261
+ }
218
262
  export interface TagResourceRequest {
219
263
  resourceArn: string | undefined;
220
264
  tags: Tag[] | undefined;
@@ -87,6 +87,14 @@ import {
87
87
  ListTrustAnchorsCommandInput,
88
88
  ListTrustAnchorsCommandOutput,
89
89
  } from "../commands/ListTrustAnchorsCommand";
90
+ import {
91
+ PutNotificationSettingsCommandInput,
92
+ PutNotificationSettingsCommandOutput,
93
+ } from "../commands/PutNotificationSettingsCommand";
94
+ import {
95
+ ResetNotificationSettingsCommandInput,
96
+ ResetNotificationSettingsCommandOutput,
97
+ } from "../commands/ResetNotificationSettingsCommand";
90
98
  import {
91
99
  TagResourceCommandInput,
92
100
  TagResourceCommandOutput,
@@ -191,6 +199,14 @@ export declare const se_ListTrustAnchorsCommand: (
191
199
  input: ListTrustAnchorsCommandInput,
192
200
  context: __SerdeContext
193
201
  ) => Promise<__HttpRequest>;
202
+ export declare const se_PutNotificationSettingsCommand: (
203
+ input: PutNotificationSettingsCommandInput,
204
+ context: __SerdeContext
205
+ ) => Promise<__HttpRequest>;
206
+ export declare const se_ResetNotificationSettingsCommand: (
207
+ input: ResetNotificationSettingsCommandInput,
208
+ context: __SerdeContext
209
+ ) => Promise<__HttpRequest>;
194
210
  export declare const se_TagResourceCommand: (
195
211
  input: TagResourceCommandInput,
196
212
  context: __SerdeContext
@@ -295,6 +311,14 @@ export declare const de_ListTrustAnchorsCommand: (
295
311
  output: __HttpResponse,
296
312
  context: __SerdeContext
297
313
  ) => Promise<ListTrustAnchorsCommandOutput>;
314
+ export declare const de_PutNotificationSettingsCommand: (
315
+ output: __HttpResponse,
316
+ context: __SerdeContext
317
+ ) => Promise<PutNotificationSettingsCommandOutput>;
318
+ export declare const de_ResetNotificationSettingsCommand: (
319
+ output: __HttpResponse,
320
+ context: __SerdeContext
321
+ ) => Promise<ResetNotificationSettingsCommandOutput>;
298
322
  export declare const de_TagResourceCommand: (
299
323
  output: __HttpResponse,
300
324
  context: __SerdeContext
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.329.0",
4
+ "version": "3.333.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,9 +21,9 @@
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.329.0",
24
+ "@aws-sdk/client-sts": "3.332.0",
25
25
  "@aws-sdk/config-resolver": "3.329.0",
26
- "@aws-sdk/credential-provider-node": "3.329.0",
26
+ "@aws-sdk/credential-provider-node": "3.332.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.329.0",
28
28
  "@aws-sdk/hash-node": "3.329.0",
29
29
  "@aws-sdk/invalid-dependency": "3.329.0",
@@ -36,7 +36,7 @@
36
36
  "@aws-sdk/middleware-serde": "3.329.0",
37
37
  "@aws-sdk/middleware-signing": "3.329.0",
38
38
  "@aws-sdk/middleware-stack": "3.329.0",
39
- "@aws-sdk/middleware-user-agent": "3.329.0",
39
+ "@aws-sdk/middleware-user-agent": "3.332.0",
40
40
  "@aws-sdk/node-config-provider": "3.329.0",
41
41
  "@aws-sdk/node-http-handler": "3.329.0",
42
42
  "@aws-sdk/protocol-http": "3.329.0",
@@ -48,7 +48,7 @@
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
49
  "@aws-sdk/util-defaults-mode-browser": "3.329.0",
50
50
  "@aws-sdk/util-defaults-mode-node": "3.329.0",
51
- "@aws-sdk/util-endpoints": "3.329.0",
51
+ "@aws-sdk/util-endpoints": "3.332.0",
52
52
  "@aws-sdk/util-retry": "3.329.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.329.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.329.0",