@aws-sdk/client-rolesanywhere 3.332.0 → 3.335.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 (55) 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 +129 -3
  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 +123 -1
  16. package/dist-types/RolesAnywhere.d.ts +29 -4
  17. package/dist-types/RolesAnywhereClient.d.ts +22 -8
  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/endpoint/EndpointParameters.d.ts +2 -1
  37. package/dist-types/models/models_0.d.ts +185 -24
  38. package/dist-types/protocols/Aws_restJson1.d.ts +20 -2
  39. package/dist-types/runtimeConfig.browser.d.ts +12 -12
  40. package/dist-types/runtimeConfig.d.ts +9 -9
  41. package/dist-types/runtimeConfig.native.d.ts +13 -13
  42. package/dist-types/runtimeConfig.shared.d.ts +4 -4
  43. package/dist-types/ts3.4/RolesAnywhere.d.ts +34 -0
  44. package/dist-types/ts3.4/RolesAnywhereClient.d.ts +19 -5
  45. package/dist-types/ts3.4/commands/PutNotificationSettingsCommand.d.ts +41 -0
  46. package/dist-types/ts3.4/commands/ResetNotificationSettingsCommand.d.ts +41 -0
  47. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  48. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
  49. package/dist-types/ts3.4/models/models_0.d.ts +44 -0
  50. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -2
  51. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +18 -15
  52. package/dist-types/ts3.4/runtimeConfig.d.ts +12 -12
  53. package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -15
  54. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
  55. package/package.json +5 -4
@@ -7,26 +7,26 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
- maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
+ maxAttempts: (number | import("@smithy/types").Provider<number>) & (number | import("@aws-sdk/types").Provider<number>);
13
13
  region: string | import("@aws-sdk/types").Provider<any>;
14
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
- retryMode: string | import("@aws-sdk/types").Provider<string>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@aws-sdk/types").HashConstructor;
17
- streamCollector: import("@aws-sdk/types").StreamCollector;
18
- useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
- useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
17
+ streamCollector: import("@smithy/types").StreamCollector;
18
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
19
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
20
20
  apiVersion: string;
21
21
  urlParser: import("@aws-sdk/types").UrlParser;
22
- base64Decoder: import("@aws-sdk/types").Decoder;
23
- base64Encoder: import("@aws-sdk/types").Encoder;
24
- utf8Decoder: import("@aws-sdk/types").Decoder;
25
- utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ base64Decoder: import("@smithy/types").Decoder;
23
+ base64Encoder: import("@smithy/types").Encoder;
24
+ utf8Decoder: import("@smithy/types").Decoder;
25
+ utf8Encoder: import("@smithy/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@aws-sdk/types").Logger;
29
- endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
@@ -7,26 +7,26 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
13
13
  region: string | import("@aws-sdk/types").Provider<string>;
14
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
15
- retryMode: string | import("@aws-sdk/types").Provider<string>;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
15
+ retryMode: string | import("@smithy/types").Provider<string>;
16
16
  sha256: import("@aws-sdk/types").HashConstructor;
17
- streamCollector: import("@aws-sdk/types").StreamCollector;
17
+ streamCollector: import("@smithy/types").StreamCollector;
18
18
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  apiVersion: string;
21
21
  urlParser: import("@aws-sdk/types").UrlParser;
22
- base64Decoder: import("@aws-sdk/types").Decoder;
23
- base64Encoder: import("@aws-sdk/types").Encoder;
24
- utf8Decoder: import("@aws-sdk/types").Decoder;
25
- utf8Encoder: import("@aws-sdk/types").Encoder;
22
+ base64Decoder: import("@smithy/types").Decoder;
23
+ base64Encoder: import("@smithy/types").Encoder;
24
+ utf8Decoder: import("@smithy/types").Decoder;
25
+ utf8Encoder: import("@smithy/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@aws-sdk/types").Logger;
29
- endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
29
+ endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
30
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
31
  logger?: import("@aws-sdk/types").Logger | undefined;
32
32
  }) => import("@aws-sdk/types").EndpointV2;
@@ -5,27 +5,27 @@ import { RolesAnywhereClientConfig } from "./RolesAnywhereClient";
5
5
  export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@aws-sdk/types").HashConstructor;
8
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
8
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
11
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
- streamCollector: import("@aws-sdk/types").StreamCollector;
13
- base64Decoder: import("@aws-sdk/types").Decoder;
14
- base64Encoder: import("@aws-sdk/types").Encoder;
15
- utf8Decoder: import("@aws-sdk/types").Decoder;
16
- utf8Encoder: import("@aws-sdk/types").Encoder;
12
+ streamCollector: import("@smithy/types").StreamCollector;
13
+ base64Decoder: import("@smithy/types").Decoder;
14
+ base64Encoder: import("@smithy/types").Encoder;
15
+ utf8Decoder: import("@smithy/types").Decoder;
16
+ utf8Encoder: import("@smithy/types").Encoder;
17
17
  disableHostPrefix: boolean;
18
18
  serviceId: string;
19
- useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
- useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
20
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
21
21
  region: string | import("@aws-sdk/types").Provider<any>;
22
- credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
22
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
23
23
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
24
- maxAttempts: number | import("@aws-sdk/types").Provider<number>;
25
- retryMode: string | import("@aws-sdk/types").Provider<string>;
24
+ maxAttempts: (number | import("@smithy/types").Provider<number>) & (number | import("@aws-sdk/types").Provider<number>);
25
+ retryMode: string | import("@smithy/types").Provider<string>;
26
26
  logger: import("@aws-sdk/types").Logger;
27
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
28
- endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> | undefined;
27
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
28
+ endpoint?: string | import("@aws-sdk/types").EndpointV2 | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> & import("@smithy/types").Provider<import("@smithy/types").Endpoint>) | (import("@aws-sdk/types").Endpoint & import("@smithy/types").Endpoint) | (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> & import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>) | undefined;
29
29
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
30
30
  logger?: import("@aws-sdk/types").Logger | undefined;
31
31
  }) => import("@aws-sdk/types").EndpointV2;
@@ -4,8 +4,8 @@ import { RolesAnywhereClientConfig } from "./RolesAnywhereClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
6
6
  apiVersion: string;
7
- base64Decoder: import("@aws-sdk/types").Decoder;
8
- base64Encoder: import("@aws-sdk/types").Encoder;
7
+ base64Decoder: import("@smithy/types").Decoder;
8
+ base64Encoder: import("@smithy/types").Encoder;
9
9
  disableHostPrefix: boolean;
10
10
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
11
  logger?: import("@aws-sdk/types").Logger | undefined;
@@ -13,6 +13,6 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
13
13
  logger: import("@aws-sdk/types").Logger;
14
14
  serviceId: string;
15
15
  urlParser: import("@aws-sdk/types").UrlParser;
16
- utf8Decoder: import("@aws-sdk/types").Decoder;
17
- utf8Encoder: import("@aws-sdk/types").Encoder;
16
+ utf8Decoder: import("@smithy/types").Decoder;
17
+ utf8Encoder: import("@smithy/types").Encoder;
18
18
  };
@@ -83,6 +83,14 @@ import {
83
83
  ListTrustAnchorsCommandInput,
84
84
  ListTrustAnchorsCommandOutput,
85
85
  } from "./commands/ListTrustAnchorsCommand";
86
+ import {
87
+ PutNotificationSettingsCommandInput,
88
+ PutNotificationSettingsCommandOutput,
89
+ } from "./commands/PutNotificationSettingsCommand";
90
+ import {
91
+ ResetNotificationSettingsCommandInput,
92
+ ResetNotificationSettingsCommandOutput,
93
+ } from "./commands/ResetNotificationSettingsCommand";
86
94
  import {
87
95
  TagResourceCommandInput,
88
96
  TagResourceCommandOutput,
@@ -378,6 +386,32 @@ export interface RolesAnywhere {
378
386
  options: __HttpHandlerOptions,
379
387
  cb: (err: any, data?: ListTrustAnchorsCommandOutput) => void
380
388
  ): void;
389
+ putNotificationSettings(
390
+ args: PutNotificationSettingsCommandInput,
391
+ options?: __HttpHandlerOptions
392
+ ): Promise<PutNotificationSettingsCommandOutput>;
393
+ putNotificationSettings(
394
+ args: PutNotificationSettingsCommandInput,
395
+ cb: (err: any, data?: PutNotificationSettingsCommandOutput) => void
396
+ ): void;
397
+ putNotificationSettings(
398
+ args: PutNotificationSettingsCommandInput,
399
+ options: __HttpHandlerOptions,
400
+ cb: (err: any, data?: PutNotificationSettingsCommandOutput) => void
401
+ ): void;
402
+ resetNotificationSettings(
403
+ args: ResetNotificationSettingsCommandInput,
404
+ options?: __HttpHandlerOptions
405
+ ): Promise<ResetNotificationSettingsCommandOutput>;
406
+ resetNotificationSettings(
407
+ args: ResetNotificationSettingsCommandInput,
408
+ cb: (err: any, data?: ResetNotificationSettingsCommandOutput) => void
409
+ ): void;
410
+ resetNotificationSettings(
411
+ args: ResetNotificationSettingsCommandInput,
412
+ options: __HttpHandlerOptions,
413
+ cb: (err: any, data?: ResetNotificationSettingsCommandOutput) => void
414
+ ): void;
381
415
  tagResource(
382
416
  args: TagResourceCommandInput,
383
417
  options?: __HttpHandlerOptions
@@ -22,7 +22,6 @@ import {
22
22
  UserAgentInputConfig,
23
23
  UserAgentResolvedConfig,
24
24
  } from "@aws-sdk/middleware-user-agent";
25
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
26
25
  import {
27
26
  Client as __Client,
28
27
  DefaultsMode as __DefaultsMode,
@@ -33,17 +32,20 @@ import {
33
32
  BodyLengthCalculator as __BodyLengthCalculator,
34
33
  ChecksumConstructor as __ChecksumConstructor,
35
34
  Credentials as __Credentials,
36
- Decoder as __Decoder,
37
- Encoder as __Encoder,
38
35
  HashConstructor as __HashConstructor,
39
36
  HttpHandlerOptions as __HttpHandlerOptions,
40
37
  Logger as __Logger,
41
- Provider as __Provider,
42
38
  Provider,
43
- StreamCollector as __StreamCollector,
44
39
  UrlParser as __UrlParser,
45
40
  UserAgent as __UserAgent,
46
41
  } from "@aws-sdk/types";
42
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
43
+ import {
44
+ Decoder as __Decoder,
45
+ Encoder as __Encoder,
46
+ Provider as __Provider,
47
+ StreamCollector as __StreamCollector,
48
+ } from "@smithy/types";
47
49
  import {
48
50
  CreateProfileCommandInput,
49
51
  CreateProfileCommandOutput,
@@ -128,6 +130,14 @@ import {
128
130
  ListTrustAnchorsCommandInput,
129
131
  ListTrustAnchorsCommandOutput,
130
132
  } from "./commands/ListTrustAnchorsCommand";
133
+ import {
134
+ PutNotificationSettingsCommandInput,
135
+ PutNotificationSettingsCommandOutput,
136
+ } from "./commands/PutNotificationSettingsCommand";
137
+ import {
138
+ ResetNotificationSettingsCommandInput,
139
+ ResetNotificationSettingsCommandOutput,
140
+ } from "./commands/ResetNotificationSettingsCommand";
131
141
  import {
132
142
  TagResourceCommandInput,
133
143
  TagResourceCommandOutput,
@@ -175,6 +185,8 @@ export type ServiceInputTypes =
175
185
  | ListSubjectsCommandInput
176
186
  | ListTagsForResourceCommandInput
177
187
  | ListTrustAnchorsCommandInput
188
+ | PutNotificationSettingsCommandInput
189
+ | ResetNotificationSettingsCommandInput
178
190
  | TagResourceCommandInput
179
191
  | UntagResourceCommandInput
180
192
  | UpdateCrlCommandInput
@@ -202,6 +214,8 @@ export type ServiceOutputTypes =
202
214
  | ListSubjectsCommandOutput
203
215
  | ListTagsForResourceCommandOutput
204
216
  | ListTrustAnchorsCommandOutput
217
+ | PutNotificationSettingsCommandOutput
218
+ | ResetNotificationSettingsCommandOutput
205
219
  | TagResourceCommandOutput
206
220
  | UntagResourceCommandOutput
207
221
  | 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";
@@ -1,9 +1,8 @@
1
1
  import {
2
- Endpoint,
3
2
  EndpointParameters as __EndpointParameters,
4
3
  EndpointV2,
5
- Provider,
6
4
  } from "@aws-sdk/types";
5
+ import { Endpoint, Provider } from "@smithy/types";
7
6
  export interface ClientInputEndpointParameters {
8
7
  region?: string | Provider<string>;
9
8
  useDualstackEndpoint?: boolean | Provider<boolean>;
@@ -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;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  HttpRequest as __HttpRequest,
3
3
  HttpResponse as __HttpResponse,
4
- } from "@aws-sdk/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
4
+ } from "@smithy/protocol-http";
5
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
6
6
  import {
7
7
  CreateProfileCommandInput,
8
8
  CreateProfileCommandOutput,
@@ -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
@@ -8,11 +8,12 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
8
8
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
9
9
  credentialDefaultProvider: (
10
10
  input: any
11
- ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
12
12
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
13
13
  import("@aws-sdk/types").UserAgent
14
14
  >;
15
- maxAttempts: number | import("@aws-sdk/types").Provider<number>;
15
+ maxAttempts: (number | import("@smithy/types").Provider<number>) &
16
+ (number | import("@aws-sdk/types").Provider<number>);
16
17
  region: string | import("@aws-sdk/types").Provider<any>;
17
18
  requestHandler:
18
19
  | (import("@aws-sdk/types").RequestHandler<
@@ -20,19 +21,21 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
20
21
  any,
21
22
  import("@aws-sdk/types").HttpHandlerOptions
22
23
  > &
23
- import("@aws-sdk/protocol-http").HttpHandler)
24
+ import("@smithy/protocol-http").HttpHandler)
24
25
  | RequestHandler;
25
- retryMode: string | import("@aws-sdk/types").Provider<string>;
26
+ retryMode: string | import("@smithy/types").Provider<string>;
26
27
  sha256: import("@aws-sdk/types").HashConstructor;
27
- streamCollector: import("@aws-sdk/types").StreamCollector;
28
- useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
29
- useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
28
+ streamCollector: import("@smithy/types").StreamCollector;
29
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
30
+ (boolean | import("@aws-sdk/types").Provider<boolean>);
31
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
32
+ (boolean | import("@aws-sdk/types").Provider<boolean>);
30
33
  apiVersion: string;
31
34
  urlParser: import("@aws-sdk/types").UrlParser;
32
- base64Decoder: import("@aws-sdk/types").Decoder;
33
- base64Encoder: import("@aws-sdk/types").Encoder;
34
- utf8Decoder: import("@aws-sdk/types").Decoder;
35
- utf8Encoder: import("@aws-sdk/types").Encoder;
35
+ base64Decoder: import("@smithy/types").Decoder;
36
+ base64Encoder: import("@smithy/types").Encoder;
37
+ utf8Decoder: import("@smithy/types").Decoder;
38
+ utf8Encoder: import("@smithy/types").Encoder;
36
39
  disableHostPrefix: boolean;
37
40
  serviceId: string;
38
41
  logger: import("@aws-sdk/types").Logger;
@@ -46,11 +49,11 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
46
49
  ) &
47
50
  (
48
51
  | string
49
- | import("@aws-sdk/types").Provider<string>
50
- | import("@aws-sdk/types").Endpoint
51
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
52
+ | import("@smithy/types").Provider<string>
53
+ | import("@smithy/types").Endpoint
54
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
52
55
  | import("@aws-sdk/types").EndpointV2
53
- | import("@aws-sdk/types").Provider<
56
+ | import("@smithy/types").Provider<
54
57
  import("@aws-sdk/types").EndpointV2
55
58
  >
56
59
  ))
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
8
8
  bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
9
9
  credentialDefaultProvider: (
10
10
  input: any
11
- ) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
12
12
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<
13
13
  import("@aws-sdk/types").UserAgent
14
14
  >;
@@ -20,19 +20,19 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
20
20
  any,
21
21
  import("@aws-sdk/types").HttpHandlerOptions
22
22
  > &
23
- import("@aws-sdk/protocol-http").HttpHandler)
23
+ import("@smithy/protocol-http").HttpHandler)
24
24
  | RequestHandler;
25
- retryMode: string | import("@aws-sdk/types").Provider<string>;
25
+ retryMode: string | import("@smithy/types").Provider<string>;
26
26
  sha256: import("@aws-sdk/types").HashConstructor;
27
- streamCollector: import("@aws-sdk/types").StreamCollector;
27
+ streamCollector: import("@smithy/types").StreamCollector;
28
28
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
29
29
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
30
30
  apiVersion: string;
31
31
  urlParser: import("@aws-sdk/types").UrlParser;
32
- base64Decoder: import("@aws-sdk/types").Decoder;
33
- base64Encoder: import("@aws-sdk/types").Encoder;
34
- utf8Decoder: import("@aws-sdk/types").Decoder;
35
- utf8Encoder: import("@aws-sdk/types").Encoder;
32
+ base64Decoder: import("@smithy/types").Decoder;
33
+ base64Encoder: import("@smithy/types").Encoder;
34
+ utf8Decoder: import("@smithy/types").Decoder;
35
+ utf8Encoder: import("@smithy/types").Encoder;
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@aws-sdk/types").Logger;
@@ -46,11 +46,11 @@ export declare const getRuntimeConfig: (config: RolesAnywhereClientConfig) => {
46
46
  ) &
47
47
  (
48
48
  | string
49
- | import("@aws-sdk/types").Provider<string>
50
- | import("@aws-sdk/types").Endpoint
51
- | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
49
+ | import("@smithy/types").Provider<string>
50
+ | import("@smithy/types").Endpoint
51
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
52
52
  | import("@aws-sdk/types").EndpointV2
53
- | import("@aws-sdk/types").Provider<
53
+ | import("@smithy/types").Provider<
54
54
  import("@aws-sdk/types").EndpointV2
55
55
  >
56
56
  ))