@aws-sdk/client-ssm-sap 3.370.0 → 3.377.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 +8 -0
- package/dist-cjs/SsmSap.js +2 -0
- package/dist-cjs/commands/StartApplicationRefreshCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +40 -1
- package/dist-cjs/protocols/Aws_restJson1.js +79 -1
- package/dist-es/SsmSap.js +2 -0
- package/dist-es/commands/StartApplicationRefreshCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +39 -0
- package/dist-es/protocols/Aws_restJson1.js +76 -0
- package/dist-types/SsmSap.d.ts +7 -0
- package/dist-types/SsmSapClient.d.ts +3 -2
- package/dist-types/commands/DeleteResourcePermissionCommand.d.ts +1 -1
- package/dist-types/commands/GetApplicationCommand.d.ts +3 -2
- package/dist-types/commands/GetComponentCommand.d.ts +27 -3
- package/dist-types/commands/GetDatabaseCommand.d.ts +3 -3
- package/dist-types/commands/GetOperationCommand.d.ts +1 -1
- package/dist-types/commands/GetResourcePermissionCommand.d.ts +1 -1
- package/dist-types/commands/ListApplicationsCommand.d.ts +1 -1
- package/dist-types/commands/ListComponentsCommand.d.ts +2 -1
- package/dist-types/commands/ListDatabasesCommand.d.ts +1 -1
- package/dist-types/commands/ListOperationsCommand.d.ts +2 -2
- package/dist-types/commands/PutResourcePermissionCommand.d.ts +1 -1
- package/dist-types/commands/RegisterApplicationCommand.d.ts +5 -4
- package/dist-types/commands/StartApplicationRefreshCommand.d.ts +85 -0
- package/dist-types/commands/UpdateApplicationSettingsCommand.d.ts +9 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +228 -13
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/SsmSap.d.ts +17 -0
- package/dist-types/ts3.4/SsmSapClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/StartApplicationRefreshCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +82 -1
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -316,6 +316,14 @@ RegisterApplication
|
|
|
316
316
|
|
|
317
317
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-sap/classes/registerapplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-sap/interfaces/registerapplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-sap/interfaces/registerapplicationcommandoutput.html)
|
|
318
318
|
|
|
319
|
+
</details>
|
|
320
|
+
<details>
|
|
321
|
+
<summary>
|
|
322
|
+
StartApplicationRefresh
|
|
323
|
+
</summary>
|
|
324
|
+
|
|
325
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-sap/classes/startapplicationrefreshcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-sap/interfaces/startapplicationrefreshcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm-sap/interfaces/startapplicationrefreshcommandoutput.html)
|
|
326
|
+
|
|
319
327
|
</details>
|
|
320
328
|
<details>
|
|
321
329
|
<summary>
|
package/dist-cjs/SsmSap.js
CHANGED
|
@@ -16,6 +16,7 @@ const ListOperationsCommand_1 = require("./commands/ListOperationsCommand");
|
|
|
16
16
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
17
17
|
const PutResourcePermissionCommand_1 = require("./commands/PutResourcePermissionCommand");
|
|
18
18
|
const RegisterApplicationCommand_1 = require("./commands/RegisterApplicationCommand");
|
|
19
|
+
const StartApplicationRefreshCommand_1 = require("./commands/StartApplicationRefreshCommand");
|
|
19
20
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
20
21
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
21
22
|
const UpdateApplicationSettingsCommand_1 = require("./commands/UpdateApplicationSettingsCommand");
|
|
@@ -35,6 +36,7 @@ const commands = {
|
|
|
35
36
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
36
37
|
PutResourcePermissionCommand: PutResourcePermissionCommand_1.PutResourcePermissionCommand,
|
|
37
38
|
RegisterApplicationCommand: RegisterApplicationCommand_1.RegisterApplicationCommand,
|
|
39
|
+
StartApplicationRefreshCommand: StartApplicationRefreshCommand_1.StartApplicationRefreshCommand,
|
|
38
40
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
39
41
|
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
40
42
|
UpdateApplicationSettingsCommand: UpdateApplicationSettingsCommand_1.UpdateApplicationSettingsCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartApplicationRefreshCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class StartApplicationRefreshCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartApplicationRefreshCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "SsmSapClient";
|
|
28
|
+
const commandName = "StartApplicationRefreshCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_StartApplicationRefreshCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_StartApplicationRefreshCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.StartApplicationRefreshCommand = StartApplicationRefreshCommand;
|
|
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./ListOperationsCommand"), exports);
|
|
|
15
15
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./PutResourcePermissionCommand"), exports);
|
|
17
17
|
tslib_1.__exportStar(require("./RegisterApplicationCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./StartApplicationRefreshCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
20
21
|
tslib_1.__exportStar(require("./UpdateApplicationSettingsCommand"), 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 q = "
|
|
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://ssm-sap-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://ssm-sap-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://ssm-sap.{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://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateApplicationSettingsInputFilterSensitiveLog = exports.RegisterApplicationInputFilterSensitiveLog = exports.GetDatabaseOutputFilterSensitiveLog = exports.DatabaseFilterSensitiveLog = exports.ApplicationCredentialFilterSensitiveLog = exports.OperationStatus = exports.FilterOperator = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.PermissionActionType = exports.DatabaseStatus = exports.DatabaseType = exports.ConflictException = exports.ComponentStatus = exports.HostRole = exports.ComponentType = exports.CredentialType = exports.ApplicationType = exports.ApplicationStatus = void 0;
|
|
3
|
+
exports.UpdateApplicationSettingsInputFilterSensitiveLog = exports.RegisterApplicationInputFilterSensitiveLog = exports.GetDatabaseOutputFilterSensitiveLog = exports.DatabaseFilterSensitiveLog = exports.ApplicationCredentialFilterSensitiveLog = exports.OperationStatus = exports.FilterOperator = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.PermissionActionType = exports.DatabaseStatus = exports.DatabaseType = exports.ConflictException = exports.ComponentStatus = exports.ReplicationMode = exports.OperationMode = exports.HostRole = exports.ComponentType = exports.ClusterStatus = exports.BackintMode = exports.CredentialType = exports.ApplicationType = exports.ApplicationStatus = exports.ApplicationDiscoveryStatus = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const SsmSapServiceException_1 = require("./SsmSapServiceException");
|
|
6
|
+
exports.ApplicationDiscoveryStatus = {
|
|
7
|
+
DELETING: "DELETING",
|
|
8
|
+
REFRESH_FAILED: "REFRESH_FAILED",
|
|
9
|
+
REGISTERING: "REGISTERING",
|
|
10
|
+
REGISTRATION_FAILED: "REGISTRATION_FAILED",
|
|
11
|
+
SUCCESS: "SUCCESS",
|
|
12
|
+
};
|
|
6
13
|
exports.ApplicationStatus = {
|
|
7
14
|
ACTIVATED: "ACTIVATED",
|
|
8
15
|
DELETING: "DELETING",
|
|
@@ -19,8 +26,19 @@ exports.ApplicationType = {
|
|
|
19
26
|
exports.CredentialType = {
|
|
20
27
|
ADMIN: "ADMIN",
|
|
21
28
|
};
|
|
29
|
+
exports.BackintMode = {
|
|
30
|
+
AWSBackup: "AWSBackup",
|
|
31
|
+
};
|
|
32
|
+
exports.ClusterStatus = {
|
|
33
|
+
MAINTENANCE: "MAINTENANCE",
|
|
34
|
+
NONE: "NONE",
|
|
35
|
+
OFFLINE: "OFFLINE",
|
|
36
|
+
ONLINE: "ONLINE",
|
|
37
|
+
STANDBY: "STANDBY",
|
|
38
|
+
};
|
|
22
39
|
exports.ComponentType = {
|
|
23
40
|
HANA: "HANA",
|
|
41
|
+
HANA_NODE: "HANA_NODE",
|
|
24
42
|
};
|
|
25
43
|
exports.HostRole = {
|
|
26
44
|
LEADER: "LEADER",
|
|
@@ -28,8 +46,28 @@ exports.HostRole = {
|
|
|
28
46
|
UNKNOWN: "UNKNOWN",
|
|
29
47
|
WORKER: "WORKER",
|
|
30
48
|
};
|
|
49
|
+
exports.OperationMode = {
|
|
50
|
+
DELTA_DATASHIPPING: "DELTA_DATASHIPPING",
|
|
51
|
+
LOGREPLAY: "LOGREPLAY",
|
|
52
|
+
LOGREPLAY_READACCESS: "LOGREPLAY_READACCESS",
|
|
53
|
+
NONE: "NONE",
|
|
54
|
+
PRIMARY: "PRIMARY",
|
|
55
|
+
};
|
|
56
|
+
exports.ReplicationMode = {
|
|
57
|
+
ASYNC: "ASYNC",
|
|
58
|
+
NONE: "NONE",
|
|
59
|
+
PRIMARY: "PRIMARY",
|
|
60
|
+
SYNC: "SYNC",
|
|
61
|
+
SYNCMEM: "SYNCMEM",
|
|
62
|
+
};
|
|
31
63
|
exports.ComponentStatus = {
|
|
32
64
|
ACTIVATED: "ACTIVATED",
|
|
65
|
+
RUNNING: "RUNNING",
|
|
66
|
+
RUNNING_WITH_ERROR: "RUNNING_WITH_ERROR",
|
|
67
|
+
STARTING: "STARTING",
|
|
68
|
+
STOPPED: "STOPPED",
|
|
69
|
+
STOPPING: "STOPPING",
|
|
70
|
+
UNDEFINED: "UNDEFINED",
|
|
33
71
|
};
|
|
34
72
|
class ConflictException extends SsmSapServiceException_1.SsmSapServiceException {
|
|
35
73
|
constructor(opts) {
|
|
@@ -50,6 +88,7 @@ exports.DatabaseType = {
|
|
|
50
88
|
TENANT: "TENANT",
|
|
51
89
|
};
|
|
52
90
|
exports.DatabaseStatus = {
|
|
91
|
+
ERROR: "ERROR",
|
|
53
92
|
RUNNING: "RUNNING",
|
|
54
93
|
STARTING: "STARTING",
|
|
55
94
|
STOPPED: "STOPPED",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateApplicationSettingsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterApplicationCommand = exports.de_PutResourcePermissionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOperationsCommand = exports.de_ListDatabasesCommand = exports.de_ListComponentsCommand = exports.de_ListApplicationsCommand = exports.de_GetResourcePermissionCommand = exports.de_GetOperationCommand = exports.de_GetDatabaseCommand = exports.de_GetComponentCommand = exports.de_GetApplicationCommand = exports.de_DeregisterApplicationCommand = exports.de_DeleteResourcePermissionCommand = exports.se_UpdateApplicationSettingsCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterApplicationCommand = exports.se_PutResourcePermissionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOperationsCommand = exports.se_ListDatabasesCommand = exports.se_ListComponentsCommand = exports.se_ListApplicationsCommand = exports.se_GetResourcePermissionCommand = exports.se_GetOperationCommand = exports.se_GetDatabaseCommand = exports.se_GetComponentCommand = exports.se_GetApplicationCommand = exports.se_DeregisterApplicationCommand = exports.se_DeleteResourcePermissionCommand = void 0;
|
|
3
|
+
exports.de_UpdateApplicationSettingsCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartApplicationRefreshCommand = exports.de_RegisterApplicationCommand = exports.de_PutResourcePermissionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListOperationsCommand = exports.de_ListDatabasesCommand = exports.de_ListComponentsCommand = exports.de_ListApplicationsCommand = exports.de_GetResourcePermissionCommand = exports.de_GetOperationCommand = exports.de_GetDatabaseCommand = exports.de_GetComponentCommand = exports.de_GetApplicationCommand = exports.de_DeregisterApplicationCommand = exports.de_DeleteResourcePermissionCommand = exports.se_UpdateApplicationSettingsCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartApplicationRefreshCommand = exports.se_RegisterApplicationCommand = exports.se_PutResourcePermissionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListOperationsCommand = exports.se_ListDatabasesCommand = exports.se_ListComponentsCommand = exports.se_ListApplicationsCommand = exports.se_GetResourcePermissionCommand = exports.se_GetOperationCommand = exports.se_GetDatabaseCommand = exports.se_GetComponentCommand = exports.se_GetApplicationCommand = exports.se_DeregisterApplicationCommand = exports.se_DeleteResourcePermissionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
@@ -321,6 +321,27 @@ const se_RegisterApplicationCommand = async (input, context) => {
|
|
|
321
321
|
});
|
|
322
322
|
};
|
|
323
323
|
exports.se_RegisterApplicationCommand = se_RegisterApplicationCommand;
|
|
324
|
+
const se_StartApplicationRefreshCommand = async (input, context) => {
|
|
325
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
326
|
+
const headers = {
|
|
327
|
+
"content-type": "application/json",
|
|
328
|
+
};
|
|
329
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-application-refresh";
|
|
330
|
+
let body;
|
|
331
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
332
|
+
ApplicationId: [],
|
|
333
|
+
}));
|
|
334
|
+
return new protocol_http_1.HttpRequest({
|
|
335
|
+
protocol,
|
|
336
|
+
hostname,
|
|
337
|
+
port,
|
|
338
|
+
method: "POST",
|
|
339
|
+
headers,
|
|
340
|
+
path: resolvedPath,
|
|
341
|
+
body,
|
|
342
|
+
});
|
|
343
|
+
};
|
|
344
|
+
exports.se_StartApplicationRefreshCommand = se_StartApplicationRefreshCommand;
|
|
324
345
|
const se_TagResourceCommand = async (input, context) => {
|
|
325
346
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
326
347
|
const headers = {
|
|
@@ -376,6 +397,7 @@ const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
376
397
|
let body;
|
|
377
398
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
378
399
|
ApplicationId: [],
|
|
400
|
+
Backint: (_) => (0, smithy_client_1._json)(_),
|
|
379
401
|
CredentialsToAddOrUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
380
402
|
CredentialsToRemove: (_) => (0, smithy_client_1._json)(_),
|
|
381
403
|
}));
|
|
@@ -511,6 +533,7 @@ const de_GetComponentCommand = async (output, context) => {
|
|
|
511
533
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
512
534
|
const doc = (0, smithy_client_1.take)(data, {
|
|
513
535
|
Component: (_) => de_Component(_, context),
|
|
536
|
+
Tags: smithy_client_1._json,
|
|
514
537
|
});
|
|
515
538
|
Object.assign(contents, doc);
|
|
516
539
|
return contents;
|
|
@@ -935,6 +958,49 @@ const de_RegisterApplicationCommandError = async (output, context) => {
|
|
|
935
958
|
});
|
|
936
959
|
}
|
|
937
960
|
};
|
|
961
|
+
const de_StartApplicationRefreshCommand = async (output, context) => {
|
|
962
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
963
|
+
return de_StartApplicationRefreshCommandError(output, context);
|
|
964
|
+
}
|
|
965
|
+
const contents = (0, smithy_client_1.map)({
|
|
966
|
+
$metadata: deserializeMetadata(output),
|
|
967
|
+
});
|
|
968
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
969
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
970
|
+
OperationId: smithy_client_1.expectString,
|
|
971
|
+
});
|
|
972
|
+
Object.assign(contents, doc);
|
|
973
|
+
return contents;
|
|
974
|
+
};
|
|
975
|
+
exports.de_StartApplicationRefreshCommand = de_StartApplicationRefreshCommand;
|
|
976
|
+
const de_StartApplicationRefreshCommandError = async (output, context) => {
|
|
977
|
+
const parsedOutput = {
|
|
978
|
+
...output,
|
|
979
|
+
body: await parseErrorBody(output.body, context),
|
|
980
|
+
};
|
|
981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
982
|
+
switch (errorCode) {
|
|
983
|
+
case "ConflictException":
|
|
984
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
985
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
986
|
+
case "InternalServerException":
|
|
987
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
988
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
989
|
+
case "ResourceNotFoundException":
|
|
990
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
991
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
992
|
+
case "ValidationException":
|
|
993
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
994
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
995
|
+
default:
|
|
996
|
+
const parsedBody = parsedOutput.body;
|
|
997
|
+
return throwDefaultError({
|
|
998
|
+
output,
|
|
999
|
+
parsedBody,
|
|
1000
|
+
errorCode,
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
938
1004
|
const de_TagResourceCommand = async (output, context) => {
|
|
939
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
940
1006
|
return de_TagResourceCommandError(output, context);
|
|
@@ -1030,6 +1096,9 @@ const de_UpdateApplicationSettingsCommandError = async (output, context) => {
|
|
|
1030
1096
|
};
|
|
1031
1097
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1032
1098
|
switch (errorCode) {
|
|
1099
|
+
case "ConflictException":
|
|
1100
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
1101
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1033
1102
|
case "InternalServerException":
|
|
1034
1103
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
1035
1104
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1106,6 +1175,7 @@ const de_Application = (output, context) => {
|
|
|
1106
1175
|
AppRegistryArn: smithy_client_1.expectString,
|
|
1107
1176
|
Arn: smithy_client_1.expectString,
|
|
1108
1177
|
Components: smithy_client_1._json,
|
|
1178
|
+
DiscoveryStatus: smithy_client_1.expectString,
|
|
1109
1179
|
Id: smithy_client_1.expectString,
|
|
1110
1180
|
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1111
1181
|
Status: smithy_client_1.expectString,
|
|
@@ -1116,12 +1186,20 @@ const de_Application = (output, context) => {
|
|
|
1116
1186
|
const de_Component = (output, context) => {
|
|
1117
1187
|
return (0, smithy_client_1.take)(output, {
|
|
1118
1188
|
ApplicationId: smithy_client_1.expectString,
|
|
1189
|
+
Arn: smithy_client_1.expectString,
|
|
1190
|
+
AssociatedHost: smithy_client_1._json,
|
|
1191
|
+
ChildComponents: smithy_client_1._json,
|
|
1119
1192
|
ComponentId: smithy_client_1.expectString,
|
|
1120
1193
|
ComponentType: smithy_client_1.expectString,
|
|
1121
1194
|
Databases: smithy_client_1._json,
|
|
1195
|
+
HdbVersion: smithy_client_1.expectString,
|
|
1122
1196
|
Hosts: smithy_client_1._json,
|
|
1123
1197
|
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1198
|
+
ParentComponent: smithy_client_1.expectString,
|
|
1124
1199
|
PrimaryHost: smithy_client_1.expectString,
|
|
1200
|
+
Resilience: smithy_client_1._json,
|
|
1201
|
+
SapHostname: smithy_client_1.expectString,
|
|
1202
|
+
SapKernelVersion: smithy_client_1.expectString,
|
|
1125
1203
|
Status: smithy_client_1.expectString,
|
|
1126
1204
|
});
|
|
1127
1205
|
};
|
package/dist-es/SsmSap.js
CHANGED
|
@@ -13,6 +13,7 @@ import { ListOperationsCommand, } from "./commands/ListOperationsCommand";
|
|
|
13
13
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
14
14
|
import { PutResourcePermissionCommand, } from "./commands/PutResourcePermissionCommand";
|
|
15
15
|
import { RegisterApplicationCommand, } from "./commands/RegisterApplicationCommand";
|
|
16
|
+
import { StartApplicationRefreshCommand, } from "./commands/StartApplicationRefreshCommand";
|
|
16
17
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
17
18
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
18
19
|
import { UpdateApplicationSettingsCommand, } from "./commands/UpdateApplicationSettingsCommand";
|
|
@@ -32,6 +33,7 @@ const commands = {
|
|
|
32
33
|
ListTagsForResourceCommand,
|
|
33
34
|
PutResourcePermissionCommand,
|
|
34
35
|
RegisterApplicationCommand,
|
|
36
|
+
StartApplicationRefreshCommand,
|
|
35
37
|
TagResourceCommand,
|
|
36
38
|
UntagResourceCommand,
|
|
37
39
|
UpdateApplicationSettingsCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_StartApplicationRefreshCommand, se_StartApplicationRefreshCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class StartApplicationRefreshCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, StartApplicationRefreshCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "SsmSapClient";
|
|
25
|
+
const commandName = "StartApplicationRefreshCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_StartApplicationRefreshCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_StartApplicationRefreshCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -12,6 +12,7 @@ export * from "./ListOperationsCommand";
|
|
|
12
12
|
export * from "./ListTagsForResourceCommand";
|
|
13
13
|
export * from "./PutResourcePermissionCommand";
|
|
14
14
|
export * from "./RegisterApplicationCommand";
|
|
15
|
+
export * from "./StartApplicationRefreshCommand";
|
|
15
16
|
export * from "./TagResourceCommand";
|
|
16
17
|
export * from "./UntagResourceCommand";
|
|
17
18
|
export * from "./UpdateApplicationSettingsCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
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://ssm-sap-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://ssm-sap-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://ssm-sap.{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://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { SsmSapServiceException as __BaseException } from "./SsmSapServiceException";
|
|
3
|
+
export const ApplicationDiscoveryStatus = {
|
|
4
|
+
DELETING: "DELETING",
|
|
5
|
+
REFRESH_FAILED: "REFRESH_FAILED",
|
|
6
|
+
REGISTERING: "REGISTERING",
|
|
7
|
+
REGISTRATION_FAILED: "REGISTRATION_FAILED",
|
|
8
|
+
SUCCESS: "SUCCESS",
|
|
9
|
+
};
|
|
3
10
|
export const ApplicationStatus = {
|
|
4
11
|
ACTIVATED: "ACTIVATED",
|
|
5
12
|
DELETING: "DELETING",
|
|
@@ -16,8 +23,19 @@ export const ApplicationType = {
|
|
|
16
23
|
export const CredentialType = {
|
|
17
24
|
ADMIN: "ADMIN",
|
|
18
25
|
};
|
|
26
|
+
export const BackintMode = {
|
|
27
|
+
AWSBackup: "AWSBackup",
|
|
28
|
+
};
|
|
29
|
+
export const ClusterStatus = {
|
|
30
|
+
MAINTENANCE: "MAINTENANCE",
|
|
31
|
+
NONE: "NONE",
|
|
32
|
+
OFFLINE: "OFFLINE",
|
|
33
|
+
ONLINE: "ONLINE",
|
|
34
|
+
STANDBY: "STANDBY",
|
|
35
|
+
};
|
|
19
36
|
export const ComponentType = {
|
|
20
37
|
HANA: "HANA",
|
|
38
|
+
HANA_NODE: "HANA_NODE",
|
|
21
39
|
};
|
|
22
40
|
export const HostRole = {
|
|
23
41
|
LEADER: "LEADER",
|
|
@@ -25,8 +43,28 @@ export const HostRole = {
|
|
|
25
43
|
UNKNOWN: "UNKNOWN",
|
|
26
44
|
WORKER: "WORKER",
|
|
27
45
|
};
|
|
46
|
+
export const OperationMode = {
|
|
47
|
+
DELTA_DATASHIPPING: "DELTA_DATASHIPPING",
|
|
48
|
+
LOGREPLAY: "LOGREPLAY",
|
|
49
|
+
LOGREPLAY_READACCESS: "LOGREPLAY_READACCESS",
|
|
50
|
+
NONE: "NONE",
|
|
51
|
+
PRIMARY: "PRIMARY",
|
|
52
|
+
};
|
|
53
|
+
export const ReplicationMode = {
|
|
54
|
+
ASYNC: "ASYNC",
|
|
55
|
+
NONE: "NONE",
|
|
56
|
+
PRIMARY: "PRIMARY",
|
|
57
|
+
SYNC: "SYNC",
|
|
58
|
+
SYNCMEM: "SYNCMEM",
|
|
59
|
+
};
|
|
28
60
|
export const ComponentStatus = {
|
|
29
61
|
ACTIVATED: "ACTIVATED",
|
|
62
|
+
RUNNING: "RUNNING",
|
|
63
|
+
RUNNING_WITH_ERROR: "RUNNING_WITH_ERROR",
|
|
64
|
+
STARTING: "STARTING",
|
|
65
|
+
STOPPED: "STOPPED",
|
|
66
|
+
STOPPING: "STOPPING",
|
|
67
|
+
UNDEFINED: "UNDEFINED",
|
|
30
68
|
};
|
|
31
69
|
export class ConflictException extends __BaseException {
|
|
32
70
|
constructor(opts) {
|
|
@@ -46,6 +84,7 @@ export const DatabaseType = {
|
|
|
46
84
|
TENANT: "TENANT",
|
|
47
85
|
};
|
|
48
86
|
export const DatabaseStatus = {
|
|
87
|
+
ERROR: "ERROR",
|
|
49
88
|
RUNNING: "RUNNING",
|
|
50
89
|
STARTING: "STARTING",
|
|
51
90
|
STOPPED: "STOPPED",
|
|
@@ -304,6 +304,26 @@ export const se_RegisterApplicationCommand = async (input, context) => {
|
|
|
304
304
|
body,
|
|
305
305
|
});
|
|
306
306
|
};
|
|
307
|
+
export const se_StartApplicationRefreshCommand = async (input, context) => {
|
|
308
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
309
|
+
const headers = {
|
|
310
|
+
"content-type": "application/json",
|
|
311
|
+
};
|
|
312
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-application-refresh";
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(take(input, {
|
|
315
|
+
ApplicationId: [],
|
|
316
|
+
}));
|
|
317
|
+
return new __HttpRequest({
|
|
318
|
+
protocol,
|
|
319
|
+
hostname,
|
|
320
|
+
port,
|
|
321
|
+
method: "POST",
|
|
322
|
+
headers,
|
|
323
|
+
path: resolvedPath,
|
|
324
|
+
body,
|
|
325
|
+
});
|
|
326
|
+
};
|
|
307
327
|
export const se_TagResourceCommand = async (input, context) => {
|
|
308
328
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
309
329
|
const headers = {
|
|
@@ -357,6 +377,7 @@ export const se_UpdateApplicationSettingsCommand = async (input, context) => {
|
|
|
357
377
|
let body;
|
|
358
378
|
body = JSON.stringify(take(input, {
|
|
359
379
|
ApplicationId: [],
|
|
380
|
+
Backint: (_) => _json(_),
|
|
360
381
|
CredentialsToAddOrUpdate: (_) => _json(_),
|
|
361
382
|
CredentialsToRemove: (_) => _json(_),
|
|
362
383
|
}));
|
|
@@ -488,6 +509,7 @@ export const de_GetComponentCommand = async (output, context) => {
|
|
|
488
509
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
489
510
|
const doc = take(data, {
|
|
490
511
|
Component: (_) => de_Component(_, context),
|
|
512
|
+
Tags: _json,
|
|
491
513
|
});
|
|
492
514
|
Object.assign(contents, doc);
|
|
493
515
|
return contents;
|
|
@@ -901,6 +923,48 @@ const de_RegisterApplicationCommandError = async (output, context) => {
|
|
|
901
923
|
});
|
|
902
924
|
}
|
|
903
925
|
};
|
|
926
|
+
export const de_StartApplicationRefreshCommand = async (output, context) => {
|
|
927
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
928
|
+
return de_StartApplicationRefreshCommandError(output, context);
|
|
929
|
+
}
|
|
930
|
+
const contents = map({
|
|
931
|
+
$metadata: deserializeMetadata(output),
|
|
932
|
+
});
|
|
933
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
934
|
+
const doc = take(data, {
|
|
935
|
+
OperationId: __expectString,
|
|
936
|
+
});
|
|
937
|
+
Object.assign(contents, doc);
|
|
938
|
+
return contents;
|
|
939
|
+
};
|
|
940
|
+
const de_StartApplicationRefreshCommandError = async (output, context) => {
|
|
941
|
+
const parsedOutput = {
|
|
942
|
+
...output,
|
|
943
|
+
body: await parseErrorBody(output.body, context),
|
|
944
|
+
};
|
|
945
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
+
switch (errorCode) {
|
|
947
|
+
case "ConflictException":
|
|
948
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
949
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
950
|
+
case "InternalServerException":
|
|
951
|
+
case "com.amazonaws.ssmsap#InternalServerException":
|
|
952
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
953
|
+
case "ResourceNotFoundException":
|
|
954
|
+
case "com.amazonaws.ssmsap#ResourceNotFoundException":
|
|
955
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
956
|
+
case "ValidationException":
|
|
957
|
+
case "com.amazonaws.ssmsap#ValidationException":
|
|
958
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
959
|
+
default:
|
|
960
|
+
const parsedBody = parsedOutput.body;
|
|
961
|
+
return throwDefaultError({
|
|
962
|
+
output,
|
|
963
|
+
parsedBody,
|
|
964
|
+
errorCode,
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
};
|
|
904
968
|
export const de_TagResourceCommand = async (output, context) => {
|
|
905
969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
970
|
return de_TagResourceCommandError(output, context);
|
|
@@ -993,6 +1057,9 @@ const de_UpdateApplicationSettingsCommandError = async (output, context) => {
|
|
|
993
1057
|
};
|
|
994
1058
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
1059
|
switch (errorCode) {
|
|
1060
|
+
case "ConflictException":
|
|
1061
|
+
case "com.amazonaws.ssmsap#ConflictException":
|
|
1062
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
996
1063
|
case "InternalServerException":
|
|
997
1064
|
case "com.amazonaws.ssmsap#InternalServerException":
|
|
998
1065
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
@@ -1069,6 +1136,7 @@ const de_Application = (output, context) => {
|
|
|
1069
1136
|
AppRegistryArn: __expectString,
|
|
1070
1137
|
Arn: __expectString,
|
|
1071
1138
|
Components: _json,
|
|
1139
|
+
DiscoveryStatus: __expectString,
|
|
1072
1140
|
Id: __expectString,
|
|
1073
1141
|
LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1074
1142
|
Status: __expectString,
|
|
@@ -1079,12 +1147,20 @@ const de_Application = (output, context) => {
|
|
|
1079
1147
|
const de_Component = (output, context) => {
|
|
1080
1148
|
return take(output, {
|
|
1081
1149
|
ApplicationId: __expectString,
|
|
1150
|
+
Arn: __expectString,
|
|
1151
|
+
AssociatedHost: _json,
|
|
1152
|
+
ChildComponents: _json,
|
|
1082
1153
|
ComponentId: __expectString,
|
|
1083
1154
|
ComponentType: __expectString,
|
|
1084
1155
|
Databases: _json,
|
|
1156
|
+
HdbVersion: __expectString,
|
|
1085
1157
|
Hosts: _json,
|
|
1086
1158
|
LastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1159
|
+
ParentComponent: __expectString,
|
|
1087
1160
|
PrimaryHost: __expectString,
|
|
1161
|
+
Resilience: _json,
|
|
1162
|
+
SapHostname: __expectString,
|
|
1163
|
+
SapKernelVersion: __expectString,
|
|
1088
1164
|
Status: __expectString,
|
|
1089
1165
|
});
|
|
1090
1166
|
};
|
package/dist-types/SsmSap.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { ListOperationsCommandInput, ListOperationsCommandOutput } from "./comma
|
|
|
13
13
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
14
14
|
import { PutResourcePermissionCommandInput, PutResourcePermissionCommandOutput } from "./commands/PutResourcePermissionCommand";
|
|
15
15
|
import { RegisterApplicationCommandInput, RegisterApplicationCommandOutput } from "./commands/RegisterApplicationCommand";
|
|
16
|
+
import { StartApplicationRefreshCommandInput, StartApplicationRefreshCommandOutput } from "./commands/StartApplicationRefreshCommand";
|
|
16
17
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
17
18
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
18
19
|
import { UpdateApplicationSettingsCommandInput, UpdateApplicationSettingsCommandOutput } from "./commands/UpdateApplicationSettingsCommand";
|
|
@@ -102,6 +103,12 @@ export interface SsmSap {
|
|
|
102
103
|
registerApplication(args: RegisterApplicationCommandInput, options?: __HttpHandlerOptions): Promise<RegisterApplicationCommandOutput>;
|
|
103
104
|
registerApplication(args: RegisterApplicationCommandInput, cb: (err: any, data?: RegisterApplicationCommandOutput) => void): void;
|
|
104
105
|
registerApplication(args: RegisterApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterApplicationCommandOutput) => void): void;
|
|
106
|
+
/**
|
|
107
|
+
* @see {@link StartApplicationRefreshCommand}
|
|
108
|
+
*/
|
|
109
|
+
startApplicationRefresh(args: StartApplicationRefreshCommandInput, options?: __HttpHandlerOptions): Promise<StartApplicationRefreshCommandOutput>;
|
|
110
|
+
startApplicationRefresh(args: StartApplicationRefreshCommandInput, cb: (err: any, data?: StartApplicationRefreshCommandOutput) => void): void;
|
|
111
|
+
startApplicationRefresh(args: StartApplicationRefreshCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartApplicationRefreshCommandOutput) => void): void;
|
|
105
112
|
/**
|
|
106
113
|
* @see {@link TagResourceCommand}
|
|
107
114
|
*/
|