@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.
- package/README.md +30 -3
- package/dist-cjs/RolesAnywhere.js +4 -0
- package/dist-cjs/commands/PutNotificationSettingsCommand.js +45 -0
- package/dist-cjs/commands/ResetNotificationSettingsCommand.js +45 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +8 -1
- package/dist-cjs/protocols/Aws_restJson1.js +129 -3
- package/dist-es/RolesAnywhere.js +4 -0
- package/dist-es/commands/PutNotificationSettingsCommand.js +41 -0
- package/dist-es/commands/ResetNotificationSettingsCommand.js +41 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +123 -1
- package/dist-types/RolesAnywhere.d.ts +29 -4
- package/dist-types/RolesAnywhereClient.d.ts +22 -8
- package/dist-types/commands/CreateProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateTrustAnchorCommand.d.ts +20 -1
- package/dist-types/commands/DeleteTrustAnchorCommand.d.ts +9 -0
- package/dist-types/commands/DisableProfileCommand.d.ts +1 -1
- package/dist-types/commands/DisableTrustAnchorCommand.d.ts +10 -1
- package/dist-types/commands/EnableProfileCommand.d.ts +1 -1
- package/dist-types/commands/EnableTrustAnchorCommand.d.ts +9 -0
- package/dist-types/commands/GetSubjectCommand.d.ts +4 -1
- package/dist-types/commands/GetTrustAnchorCommand.d.ts +9 -0
- package/dist-types/commands/ImportCrlCommand.d.ts +3 -1
- package/dist-types/commands/ListCrlsCommand.d.ts +1 -1
- package/dist-types/commands/ListTrustAnchorsCommand.d.ts +9 -0
- package/dist-types/commands/PutNotificationSettingsCommand.d.ts +115 -0
- package/dist-types/commands/ResetNotificationSettingsCommand.d.ts +112 -0
- package/dist-types/commands/UpdateCrlCommand.d.ts +3 -1
- package/dist-types/commands/UpdateProfileCommand.d.ts +3 -1
- package/dist-types/commands/UpdateTrustAnchorCommand.d.ts +15 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +185 -24
- package/dist-types/protocols/Aws_restJson1.d.ts +20 -2
- package/dist-types/runtimeConfig.browser.d.ts +12 -12
- package/dist-types/runtimeConfig.d.ts +9 -9
- package/dist-types/runtimeConfig.native.d.ts +13 -13
- package/dist-types/runtimeConfig.shared.d.ts +4 -4
- package/dist-types/ts3.4/RolesAnywhere.d.ts +34 -0
- package/dist-types/ts3.4/RolesAnywhereClient.d.ts +19 -5
- package/dist-types/ts3.4/commands/PutNotificationSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ResetNotificationSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +44 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +18 -15
- package/dist-types/ts3.4/runtimeConfig.d.ts +12 -12
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +20 -15
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -4
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -6,10 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript RolesAnywhere Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<p>
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<p>Identity and Access Management Roles Anywhere provides a secure way for your workloads such as
|
|
10
|
+
servers, containers, and applications that run outside of Amazon Web Services to obtain
|
|
11
|
+
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
|
|
12
|
+
manage long-term credentials for workloads running outside of Amazon Web Services.</p>
|
|
13
|
+
<p>
|
|
14
|
+
To use IAM Roles Anywhere, your workloads must use X.509 certificates
|
|
15
|
+
issued by their certificate authority (CA). You register the CA with IAM
|
|
16
|
+
Roles Anywhere as a trust anchor to establish trust between your public key infrastructure
|
|
17
|
+
(PKI) and IAM Roles Anywhere. If you don't manage your own PKI system, you
|
|
18
|
+
can use Private Certificate Authority to create a CA and then use that to establish trust with
|
|
19
|
+
IAM Roles Anywhere.
|
|
12
20
|
</p>
|
|
21
|
+
<p>This guide describes the IAM Roles Anywhere operations that you can call
|
|
22
|
+
programmatically. For more information about IAM Roles Anywhere, see the
|
|
23
|
+
<a href="https://docs.aws.amazon.com/rolesanywhere/latest/userguide/introduction.html">IAM Roles Anywhere User Guide</a>.</p>
|
|
13
24
|
|
|
14
25
|
## Installing
|
|
15
26
|
|
|
@@ -373,6 +384,22 @@ ListTrustAnchors
|
|
|
373
384
|
|
|
374
385
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/classes/listtrustanchorscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/interfaces/listtrustanchorscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/interfaces/listtrustanchorscommandoutput.html)
|
|
375
386
|
|
|
387
|
+
</details>
|
|
388
|
+
<details>
|
|
389
|
+
<summary>
|
|
390
|
+
PutNotificationSettings
|
|
391
|
+
</summary>
|
|
392
|
+
|
|
393
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/classes/putnotificationsettingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/interfaces/putnotificationsettingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/interfaces/putnotificationsettingscommandoutput.html)
|
|
394
|
+
|
|
395
|
+
</details>
|
|
396
|
+
<details>
|
|
397
|
+
<summary>
|
|
398
|
+
ResetNotificationSettings
|
|
399
|
+
</summary>
|
|
400
|
+
|
|
401
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/classes/resetnotificationsettingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/interfaces/resetnotificationsettingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-rolesanywhere/interfaces/resetnotificationsettingscommandoutput.html)
|
|
402
|
+
|
|
376
403
|
</details>
|
|
377
404
|
<details>
|
|
378
405
|
<summary>
|
|
@@ -23,6 +23,8 @@ const ListProfilesCommand_1 = require("./commands/ListProfilesCommand");
|
|
|
23
23
|
const ListSubjectsCommand_1 = require("./commands/ListSubjectsCommand");
|
|
24
24
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
25
25
|
const ListTrustAnchorsCommand_1 = require("./commands/ListTrustAnchorsCommand");
|
|
26
|
+
const PutNotificationSettingsCommand_1 = require("./commands/PutNotificationSettingsCommand");
|
|
27
|
+
const ResetNotificationSettingsCommand_1 = require("./commands/ResetNotificationSettingsCommand");
|
|
26
28
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
27
29
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
28
30
|
const UpdateCrlCommand_1 = require("./commands/UpdateCrlCommand");
|
|
@@ -51,6 +53,8 @@ const commands = {
|
|
|
51
53
|
ListSubjectsCommand: ListSubjectsCommand_1.ListSubjectsCommand,
|
|
52
54
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
53
55
|
ListTrustAnchorsCommand: ListTrustAnchorsCommand_1.ListTrustAnchorsCommand,
|
|
56
|
+
PutNotificationSettingsCommand: PutNotificationSettingsCommand_1.PutNotificationSettingsCommand,
|
|
57
|
+
ResetNotificationSettingsCommand: ResetNotificationSettingsCommand_1.ResetNotificationSettingsCommand,
|
|
54
58
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
55
59
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
56
60
|
UpdateCrlCommand: UpdateCrlCommand_1.UpdateCrlCommand,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutNotificationSettingsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class PutNotificationSettingsCommand extends smithy_client_1.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((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutNotificationSettingsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "RolesAnywhereClient";
|
|
27
|
+
const commandName = "PutNotificationSettingsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_PutNotificationSettingsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_PutNotificationSettingsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.PutNotificationSettingsCommand = PutNotificationSettingsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResetNotificationSettingsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ResetNotificationSettingsCommand extends smithy_client_1.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((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ResetNotificationSettingsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "RolesAnywhereClient";
|
|
27
|
+
const commandName = "ResetNotificationSettingsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_ResetNotificationSettingsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_ResetNotificationSettingsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ResetNotificationSettingsCommand = ResetNotificationSettingsCommand;
|
|
@@ -22,6 +22,8 @@ tslib_1.__exportStar(require("./ListProfilesCommand"), exports);
|
|
|
22
22
|
tslib_1.__exportStar(require("./ListSubjectsCommand"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
24
24
|
tslib_1.__exportStar(require("./ListTrustAnchorsCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./PutNotificationSettingsCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ResetNotificationSettingsCommand"), exports);
|
|
25
27
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
26
28
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
27
29
|
tslib_1.__exportStar(require("./UpdateCrlCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://rolesanywhere-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://rolesanywhere-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://rolesanywhere.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://rolesanywhere.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ImportCrlRequestFilterSensitiveLog = exports.CreateTrustAnchorRequestFilterSensitiveLog = exports.CreateProfileRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.TooManyTagsException = exports.ResourceNotFoundException = exports.TrustAnchorType = exports.SourceData = exports.ValidationException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ImportCrlRequestFilterSensitiveLog = exports.CreateTrustAnchorRequestFilterSensitiveLog = exports.CreateProfileRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.TooManyTagsException = exports.ResourceNotFoundException = exports.TrustAnchorType = exports.SourceData = exports.NotificationEvent = exports.NotificationChannel = exports.ValidationException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const RolesAnywhereServiceException_1 = require("./RolesAnywhereServiceException");
|
|
6
6
|
class AccessDeniedException extends RolesAnywhereServiceException_1.RolesAnywhereServiceException {
|
|
@@ -29,6 +29,13 @@ class ValidationException extends RolesAnywhereServiceException_1.RolesAnywhereS
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
exports.ValidationException = ValidationException;
|
|
32
|
+
exports.NotificationChannel = {
|
|
33
|
+
ALL: "ALL",
|
|
34
|
+
};
|
|
35
|
+
exports.NotificationEvent = {
|
|
36
|
+
CA_CERTIFICATE_EXPIRY: "CA_CERTIFICATE_EXPIRY",
|
|
37
|
+
END_ENTITY_CERTIFICATE_EXPIRY: "END_ENTITY_CERTIFICATE_EXPIRY",
|
|
38
|
+
};
|
|
32
39
|
var SourceData;
|
|
33
40
|
(function (SourceData) {
|
|
34
41
|
SourceData.visit = (value, visitor) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateTrustAnchorCommand = exports.de_UpdateProfileCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
3
|
+
exports.de_PutNotificationSettingsCommand = exports.de_ListTrustAnchorsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubjectsCommand = exports.de_ListProfilesCommand = exports.de_ListCrlsCommand = exports.de_ImportCrlCommand = exports.de_GetTrustAnchorCommand = exports.de_GetSubjectCommand = exports.de_GetProfileCommand = exports.de_GetCrlCommand = exports.de_EnableTrustAnchorCommand = exports.de_EnableProfileCommand = exports.de_EnableCrlCommand = exports.de_DisableTrustAnchorCommand = exports.de_DisableProfileCommand = exports.de_DisableCrlCommand = exports.de_DeleteTrustAnchorCommand = exports.de_DeleteProfileCommand = exports.de_DeleteCrlCommand = exports.de_CreateTrustAnchorCommand = exports.de_CreateProfileCommand = exports.se_UpdateTrustAnchorCommand = exports.se_UpdateProfileCommand = exports.se_UpdateCrlCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ResetNotificationSettingsCommand = exports.se_PutNotificationSettingsCommand = exports.se_ListTrustAnchorsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubjectsCommand = exports.se_ListProfilesCommand = exports.se_ListCrlsCommand = exports.se_ImportCrlCommand = exports.se_GetTrustAnchorCommand = exports.se_GetSubjectCommand = exports.se_GetProfileCommand = exports.se_GetCrlCommand = exports.se_EnableTrustAnchorCommand = exports.se_EnableProfileCommand = exports.se_EnableCrlCommand = exports.se_DisableTrustAnchorCommand = exports.se_DisableProfileCommand = exports.se_DisableCrlCommand = exports.se_DeleteTrustAnchorCommand = exports.se_DeleteProfileCommand = exports.se_DeleteCrlCommand = exports.se_CreateTrustAnchorCommand = exports.se_CreateProfileCommand = void 0;
|
|
4
|
+
exports.de_UpdateTrustAnchorCommand = exports.de_UpdateProfileCommand = exports.de_UpdateCrlCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ResetNotificationSettingsCommand = void 0;
|
|
6
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const RolesAnywhereServiceException_1 = require("../models/RolesAnywhereServiceException");
|
|
9
9
|
const se_CreateProfileCommand = async (input, context) => {
|
|
@@ -44,6 +44,7 @@ const se_CreateTrustAnchorCommand = async (input, context) => {
|
|
|
44
44
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
45
|
enabled: [],
|
|
46
46
|
name: [],
|
|
47
|
+
notificationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
47
48
|
source: (_) => (0, smithy_client_1._json)(_),
|
|
48
49
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
49
50
|
}));
|
|
@@ -408,6 +409,50 @@ const se_ListTrustAnchorsCommand = async (input, context) => {
|
|
|
408
409
|
});
|
|
409
410
|
};
|
|
410
411
|
exports.se_ListTrustAnchorsCommand = se_ListTrustAnchorsCommand;
|
|
412
|
+
const se_PutNotificationSettingsCommand = async (input, context) => {
|
|
413
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
414
|
+
const headers = {
|
|
415
|
+
"content-type": "application/json",
|
|
416
|
+
};
|
|
417
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/put-notifications-settings";
|
|
418
|
+
let body;
|
|
419
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
420
|
+
notificationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
421
|
+
trustAnchorId: [],
|
|
422
|
+
}));
|
|
423
|
+
return new protocol_http_1.HttpRequest({
|
|
424
|
+
protocol,
|
|
425
|
+
hostname,
|
|
426
|
+
port,
|
|
427
|
+
method: "PATCH",
|
|
428
|
+
headers,
|
|
429
|
+
path: resolvedPath,
|
|
430
|
+
body,
|
|
431
|
+
});
|
|
432
|
+
};
|
|
433
|
+
exports.se_PutNotificationSettingsCommand = se_PutNotificationSettingsCommand;
|
|
434
|
+
const se_ResetNotificationSettingsCommand = async (input, context) => {
|
|
435
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
436
|
+
const headers = {
|
|
437
|
+
"content-type": "application/json",
|
|
438
|
+
};
|
|
439
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/reset-notifications-settings";
|
|
440
|
+
let body;
|
|
441
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
442
|
+
notificationSettingKeys: (_) => (0, smithy_client_1._json)(_),
|
|
443
|
+
trustAnchorId: [],
|
|
444
|
+
}));
|
|
445
|
+
return new protocol_http_1.HttpRequest({
|
|
446
|
+
protocol,
|
|
447
|
+
hostname,
|
|
448
|
+
port,
|
|
449
|
+
method: "PATCH",
|
|
450
|
+
headers,
|
|
451
|
+
path: resolvedPath,
|
|
452
|
+
body,
|
|
453
|
+
});
|
|
454
|
+
};
|
|
455
|
+
exports.se_ResetNotificationSettingsCommand = se_ResetNotificationSettingsCommand;
|
|
411
456
|
const se_TagResourceCommand = async (input, context) => {
|
|
412
457
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
413
458
|
const headers = {
|
|
@@ -1308,6 +1353,86 @@ const de_ListTrustAnchorsCommandError = async (output, context) => {
|
|
|
1308
1353
|
});
|
|
1309
1354
|
}
|
|
1310
1355
|
};
|
|
1356
|
+
const de_PutNotificationSettingsCommand = async (output, context) => {
|
|
1357
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1358
|
+
return de_PutNotificationSettingsCommandError(output, context);
|
|
1359
|
+
}
|
|
1360
|
+
const contents = (0, smithy_client_1.map)({
|
|
1361
|
+
$metadata: deserializeMetadata(output),
|
|
1362
|
+
});
|
|
1363
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1364
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1365
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
1366
|
+
});
|
|
1367
|
+
Object.assign(contents, doc);
|
|
1368
|
+
return contents;
|
|
1369
|
+
};
|
|
1370
|
+
exports.de_PutNotificationSettingsCommand = de_PutNotificationSettingsCommand;
|
|
1371
|
+
const de_PutNotificationSettingsCommandError = async (output, context) => {
|
|
1372
|
+
const parsedOutput = {
|
|
1373
|
+
...output,
|
|
1374
|
+
body: await parseErrorBody(output.body, context),
|
|
1375
|
+
};
|
|
1376
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
|
+
switch (errorCode) {
|
|
1378
|
+
case "AccessDeniedException":
|
|
1379
|
+
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1380
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1381
|
+
case "ResourceNotFoundException":
|
|
1382
|
+
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1383
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1384
|
+
case "ValidationException":
|
|
1385
|
+
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1386
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1387
|
+
default:
|
|
1388
|
+
const parsedBody = parsedOutput.body;
|
|
1389
|
+
return throwDefaultError({
|
|
1390
|
+
output,
|
|
1391
|
+
parsedBody,
|
|
1392
|
+
errorCode,
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
const de_ResetNotificationSettingsCommand = async (output, context) => {
|
|
1397
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
|
+
return de_ResetNotificationSettingsCommandError(output, context);
|
|
1399
|
+
}
|
|
1400
|
+
const contents = (0, smithy_client_1.map)({
|
|
1401
|
+
$metadata: deserializeMetadata(output),
|
|
1402
|
+
});
|
|
1403
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1404
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1405
|
+
trustAnchor: (_) => de_TrustAnchorDetail(_, context),
|
|
1406
|
+
});
|
|
1407
|
+
Object.assign(contents, doc);
|
|
1408
|
+
return contents;
|
|
1409
|
+
};
|
|
1410
|
+
exports.de_ResetNotificationSettingsCommand = de_ResetNotificationSettingsCommand;
|
|
1411
|
+
const de_ResetNotificationSettingsCommandError = async (output, context) => {
|
|
1412
|
+
const parsedOutput = {
|
|
1413
|
+
...output,
|
|
1414
|
+
body: await parseErrorBody(output.body, context),
|
|
1415
|
+
};
|
|
1416
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
+
switch (errorCode) {
|
|
1418
|
+
case "AccessDeniedException":
|
|
1419
|
+
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1420
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1421
|
+
case "ResourceNotFoundException":
|
|
1422
|
+
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1423
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1424
|
+
case "ValidationException":
|
|
1425
|
+
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1426
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1427
|
+
default:
|
|
1428
|
+
const parsedBody = parsedOutput.body;
|
|
1429
|
+
return throwDefaultError({
|
|
1430
|
+
output,
|
|
1431
|
+
parsedBody,
|
|
1432
|
+
errorCode,
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
};
|
|
1311
1436
|
const de_TagResourceCommand = async (output, context) => {
|
|
1312
1437
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1313
1438
|
return de_TagResourceCommandError(output, context);
|
|
@@ -1670,6 +1795,7 @@ const de_TrustAnchorDetail = (output, context) => {
|
|
|
1670
1795
|
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1671
1796
|
enabled: smithy_client_1.expectBoolean,
|
|
1672
1797
|
name: smithy_client_1.expectString,
|
|
1798
|
+
notificationSettings: smithy_client_1._json,
|
|
1673
1799
|
source: smithy_client_1._json,
|
|
1674
1800
|
trustAnchorArn: smithy_client_1.expectString,
|
|
1675
1801
|
trustAnchorId: smithy_client_1.expectString,
|
package/dist-es/RolesAnywhere.js
CHANGED
|
@@ -20,6 +20,8 @@ import { ListProfilesCommand, } from "./commands/ListProfilesCommand";
|
|
|
20
20
|
import { ListSubjectsCommand, } from "./commands/ListSubjectsCommand";
|
|
21
21
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
22
22
|
import { ListTrustAnchorsCommand, } from "./commands/ListTrustAnchorsCommand";
|
|
23
|
+
import { PutNotificationSettingsCommand, } from "./commands/PutNotificationSettingsCommand";
|
|
24
|
+
import { ResetNotificationSettingsCommand, } from "./commands/ResetNotificationSettingsCommand";
|
|
23
25
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
24
26
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
25
27
|
import { UpdateCrlCommand } from "./commands/UpdateCrlCommand";
|
|
@@ -48,6 +50,8 @@ const commands = {
|
|
|
48
50
|
ListSubjectsCommand,
|
|
49
51
|
ListTagsForResourceCommand,
|
|
50
52
|
ListTrustAnchorsCommand,
|
|
53
|
+
PutNotificationSettingsCommand,
|
|
54
|
+
ResetNotificationSettingsCommand,
|
|
51
55
|
TagResourceCommand,
|
|
52
56
|
UntagResourceCommand,
|
|
53
57
|
UpdateCrlCommand,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_PutNotificationSettingsCommand, se_PutNotificationSettingsCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class PutNotificationSettingsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, PutNotificationSettingsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "RolesAnywhereClient";
|
|
24
|
+
const commandName = "PutNotificationSettingsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_PutNotificationSettingsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_PutNotificationSettingsCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_ResetNotificationSettingsCommand, se_ResetNotificationSettingsCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class ResetNotificationSettingsCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ResetNotificationSettingsCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "RolesAnywhereClient";
|
|
24
|
+
const commandName = "ResetNotificationSettingsCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_ResetNotificationSettingsCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_ResetNotificationSettingsCommand(output, context);
|
|
40
|
+
}
|
|
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,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://rolesanywhere-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://rolesanywhere-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://rolesanywhere.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://rolesanywhere.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -24,6 +24,13 @@ export class ValidationException extends __BaseException {
|
|
|
24
24
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
export const NotificationChannel = {
|
|
28
|
+
ALL: "ALL",
|
|
29
|
+
};
|
|
30
|
+
export const NotificationEvent = {
|
|
31
|
+
CA_CERTIFICATE_EXPIRY: "CA_CERTIFICATE_EXPIRY",
|
|
32
|
+
END_ENTITY_CERTIFICATE_EXPIRY: "END_ENTITY_CERTIFICATE_EXPIRY",
|
|
33
|
+
};
|
|
27
34
|
export var SourceData;
|
|
28
35
|
(function (SourceData) {
|
|
29
36
|
SourceData.visit = (value, visitor) => {
|