@aws-sdk/client-ssm-sap 3.569.0 → 3.573.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 (32) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +186 -0
  3. package/dist-es/SsmSap.js +6 -0
  4. package/dist-es/commands/ListOperationEventsCommand.js +24 -0
  5. package/dist-es/commands/StartApplicationCommand.js +24 -0
  6. package/dist-es/commands/StopApplicationCommand.js +24 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +8 -0
  9. package/dist-es/pagination/ListOperationEventsPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/protocols/Aws_restJson1.js +104 -0
  12. package/dist-types/SsmSap.d.ts +21 -0
  13. package/dist-types/SsmSapClient.d.ts +5 -2
  14. package/dist-types/commands/ListOperationEventsCommand.d.ts +89 -0
  15. package/dist-types/commands/StartApplicationCommand.d.ts +72 -0
  16. package/dist-types/commands/StopApplicationCommand.d.ts +76 -0
  17. package/dist-types/commands/index.d.ts +3 -0
  18. package/dist-types/models/models_0.d.ts +209 -1
  19. package/dist-types/pagination/ListOperationEventsPaginator.d.ts +7 -0
  20. package/dist-types/pagination/index.d.ts +1 -0
  21. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  22. package/dist-types/ts3.4/SsmSap.d.ts +51 -0
  23. package/dist-types/ts3.4/SsmSapClient.d.ts +18 -0
  24. package/dist-types/ts3.4/commands/ListOperationEventsCommand.d.ts +39 -0
  25. package/dist-types/ts3.4/commands/StartApplicationCommand.d.ts +38 -0
  26. package/dist-types/ts3.4/commands/StopApplicationCommand.d.ts +38 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +47 -0
  29. package/dist-types/ts3.4/pagination/ListOperationEventsPaginator.d.ts +11 -0
  30. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  32. package/package.json +8 -8
@@ -149,6 +149,22 @@ export const se_ListDatabasesCommand = async (input, context) => {
149
149
  b.m("POST").h(headers).b(body);
150
150
  return b.build();
151
151
  };
152
+ export const se_ListOperationEventsCommand = async (input, context) => {
153
+ const b = rb(input, context);
154
+ const headers = {
155
+ "content-type": "application/json",
156
+ };
157
+ b.bp("/list-operation-events");
158
+ let body;
159
+ body = JSON.stringify(take(input, {
160
+ Filters: (_) => _json(_),
161
+ MaxResults: [],
162
+ NextToken: [],
163
+ OperationId: [],
164
+ }));
165
+ b.m("POST").h(headers).b(body);
166
+ return b.build();
167
+ };
152
168
  export const se_ListOperationsCommand = async (input, context) => {
153
169
  const b = rb(input, context);
154
170
  const headers = {
@@ -209,6 +225,19 @@ export const se_RegisterApplicationCommand = async (input, context) => {
209
225
  b.m("POST").h(headers).b(body);
210
226
  return b.build();
211
227
  };
228
+ export const se_StartApplicationCommand = async (input, context) => {
229
+ const b = rb(input, context);
230
+ const headers = {
231
+ "content-type": "application/json",
232
+ };
233
+ b.bp("/start-application");
234
+ let body;
235
+ body = JSON.stringify(take(input, {
236
+ ApplicationId: [],
237
+ }));
238
+ b.m("POST").h(headers).b(body);
239
+ return b.build();
240
+ };
212
241
  export const se_StartApplicationRefreshCommand = async (input, context) => {
213
242
  const b = rb(input, context);
214
243
  const headers = {
@@ -222,6 +251,21 @@ export const se_StartApplicationRefreshCommand = async (input, context) => {
222
251
  b.m("POST").h(headers).b(body);
223
252
  return b.build();
224
253
  };
254
+ export const se_StopApplicationCommand = async (input, context) => {
255
+ const b = rb(input, context);
256
+ const headers = {
257
+ "content-type": "application/json",
258
+ };
259
+ b.bp("/stop-application");
260
+ let body;
261
+ body = JSON.stringify(take(input, {
262
+ ApplicationId: [],
263
+ IncludeEc2InstanceShutdown: [],
264
+ StopConnectedEntity: [],
265
+ }));
266
+ b.m("POST").h(headers).b(body);
267
+ return b.build();
268
+ };
225
269
  export const se_TagResourceCommand = async (input, context) => {
226
270
  const b = rb(input, context);
227
271
  const headers = {
@@ -410,6 +454,21 @@ export const de_ListDatabasesCommand = async (output, context) => {
410
454
  Object.assign(contents, doc);
411
455
  return contents;
412
456
  };
457
+ export const de_ListOperationEventsCommand = async (output, context) => {
458
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
459
+ return de_CommandError(output, context);
460
+ }
461
+ const contents = map({
462
+ $metadata: deserializeMetadata(output),
463
+ });
464
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
465
+ const doc = take(data, {
466
+ NextToken: __expectString,
467
+ OperationEvents: (_) => de_OperationEventList(_, context),
468
+ });
469
+ Object.assign(contents, doc);
470
+ return contents;
471
+ };
413
472
  export const de_ListOperationsCommand = async (output, context) => {
414
473
  if (output.statusCode !== 200 && output.statusCode >= 300) {
415
474
  return de_CommandError(output, context);
@@ -468,6 +527,20 @@ export const de_RegisterApplicationCommand = async (output, context) => {
468
527
  Object.assign(contents, doc);
469
528
  return contents;
470
529
  };
530
+ export const de_StartApplicationCommand = async (output, context) => {
531
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
532
+ return de_CommandError(output, context);
533
+ }
534
+ const contents = map({
535
+ $metadata: deserializeMetadata(output),
536
+ });
537
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
538
+ const doc = take(data, {
539
+ OperationId: __expectString,
540
+ });
541
+ Object.assign(contents, doc);
542
+ return contents;
543
+ };
471
544
  export const de_StartApplicationRefreshCommand = async (output, context) => {
472
545
  if (output.statusCode !== 200 && output.statusCode >= 300) {
473
546
  return de_CommandError(output, context);
@@ -482,6 +555,20 @@ export const de_StartApplicationRefreshCommand = async (output, context) => {
482
555
  Object.assign(contents, doc);
483
556
  return contents;
484
557
  };
558
+ export const de_StopApplicationCommand = async (output, context) => {
559
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
560
+ return de_CommandError(output, context);
561
+ }
562
+ const contents = map({
563
+ $metadata: deserializeMetadata(output),
564
+ });
565
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
566
+ const doc = take(data, {
567
+ OperationId: __expectString,
568
+ });
569
+ Object.assign(contents, doc);
570
+ return contents;
571
+ };
485
572
  export const de_TagResourceCommand = async (output, context) => {
486
573
  if (output.statusCode !== 200 && output.statusCode >= 300) {
487
574
  return de_CommandError(output, context);
@@ -681,6 +768,23 @@ const de_Operation = (output, context) => {
681
768
  Type: __expectString,
682
769
  });
683
770
  };
771
+ const de_OperationEvent = (output, context) => {
772
+ return take(output, {
773
+ Description: __expectString,
774
+ Resource: _json,
775
+ Status: __expectString,
776
+ StatusMessage: __expectString,
777
+ Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
778
+ });
779
+ };
780
+ const de_OperationEventList = (output, context) => {
781
+ const retVal = (output || [])
782
+ .filter((e) => e != null)
783
+ .map((entry) => {
784
+ return de_OperationEvent(entry, context);
785
+ });
786
+ return retVal;
787
+ };
684
788
  const de_OperationList = (output, context) => {
685
789
  const retVal = (output || [])
686
790
  .filter((e) => e != null)
@@ -9,11 +9,14 @@ import { GetResourcePermissionCommandInput, GetResourcePermissionCommandOutput }
9
9
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
10
10
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
11
11
  import { ListDatabasesCommandInput, ListDatabasesCommandOutput } from "./commands/ListDatabasesCommand";
12
+ import { ListOperationEventsCommandInput, ListOperationEventsCommandOutput } from "./commands/ListOperationEventsCommand";
12
13
  import { ListOperationsCommandInput, ListOperationsCommandOutput } from "./commands/ListOperationsCommand";
13
14
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
14
15
  import { PutResourcePermissionCommandInput, PutResourcePermissionCommandOutput } from "./commands/PutResourcePermissionCommand";
15
16
  import { RegisterApplicationCommandInput, RegisterApplicationCommandOutput } from "./commands/RegisterApplicationCommand";
17
+ import { StartApplicationCommandInput, StartApplicationCommandOutput } from "./commands/StartApplicationCommand";
16
18
  import { StartApplicationRefreshCommandInput, StartApplicationRefreshCommandOutput } from "./commands/StartApplicationRefreshCommand";
19
+ import { StopApplicationCommandInput, StopApplicationCommandOutput } from "./commands/StopApplicationCommand";
17
20
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
18
21
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
19
22
  import { UpdateApplicationSettingsCommandInput, UpdateApplicationSettingsCommandOutput } from "./commands/UpdateApplicationSettingsCommand";
@@ -84,6 +87,12 @@ export interface SsmSap {
84
87
  listDatabases(args: ListDatabasesCommandInput, options?: __HttpHandlerOptions): Promise<ListDatabasesCommandOutput>;
85
88
  listDatabases(args: ListDatabasesCommandInput, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
86
89
  listDatabases(args: ListDatabasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
90
+ /**
91
+ * @see {@link ListOperationEventsCommand}
92
+ */
93
+ listOperationEvents(args: ListOperationEventsCommandInput, options?: __HttpHandlerOptions): Promise<ListOperationEventsCommandOutput>;
94
+ listOperationEvents(args: ListOperationEventsCommandInput, cb: (err: any, data?: ListOperationEventsCommandOutput) => void): void;
95
+ listOperationEvents(args: ListOperationEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOperationEventsCommandOutput) => void): void;
87
96
  /**
88
97
  * @see {@link ListOperationsCommand}
89
98
  */
@@ -108,12 +117,24 @@ export interface SsmSap {
108
117
  registerApplication(args: RegisterApplicationCommandInput, options?: __HttpHandlerOptions): Promise<RegisterApplicationCommandOutput>;
109
118
  registerApplication(args: RegisterApplicationCommandInput, cb: (err: any, data?: RegisterApplicationCommandOutput) => void): void;
110
119
  registerApplication(args: RegisterApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterApplicationCommandOutput) => void): void;
120
+ /**
121
+ * @see {@link StartApplicationCommand}
122
+ */
123
+ startApplication(args: StartApplicationCommandInput, options?: __HttpHandlerOptions): Promise<StartApplicationCommandOutput>;
124
+ startApplication(args: StartApplicationCommandInput, cb: (err: any, data?: StartApplicationCommandOutput) => void): void;
125
+ startApplication(args: StartApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartApplicationCommandOutput) => void): void;
111
126
  /**
112
127
  * @see {@link StartApplicationRefreshCommand}
113
128
  */
114
129
  startApplicationRefresh(args: StartApplicationRefreshCommandInput, options?: __HttpHandlerOptions): Promise<StartApplicationRefreshCommandOutput>;
115
130
  startApplicationRefresh(args: StartApplicationRefreshCommandInput, cb: (err: any, data?: StartApplicationRefreshCommandOutput) => void): void;
116
131
  startApplicationRefresh(args: StartApplicationRefreshCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartApplicationRefreshCommandOutput) => void): void;
132
+ /**
133
+ * @see {@link StopApplicationCommand}
134
+ */
135
+ stopApplication(args: StopApplicationCommandInput, options?: __HttpHandlerOptions): Promise<StopApplicationCommandOutput>;
136
+ stopApplication(args: StopApplicationCommandInput, cb: (err: any, data?: StopApplicationCommandOutput) => void): void;
137
+ stopApplication(args: StopApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopApplicationCommandOutput) => void): void;
117
138
  /**
118
139
  * @see {@link TagResourceCommand}
119
140
  */
@@ -17,11 +17,14 @@ import { GetResourcePermissionCommandInput, GetResourcePermissionCommandOutput }
17
17
  import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
18
18
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
19
19
  import { ListDatabasesCommandInput, ListDatabasesCommandOutput } from "./commands/ListDatabasesCommand";
20
+ import { ListOperationEventsCommandInput, ListOperationEventsCommandOutput } from "./commands/ListOperationEventsCommand";
20
21
  import { ListOperationsCommandInput, ListOperationsCommandOutput } from "./commands/ListOperationsCommand";
21
22
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
22
23
  import { PutResourcePermissionCommandInput, PutResourcePermissionCommandOutput } from "./commands/PutResourcePermissionCommand";
23
24
  import { RegisterApplicationCommandInput, RegisterApplicationCommandOutput } from "./commands/RegisterApplicationCommand";
25
+ import { StartApplicationCommandInput, StartApplicationCommandOutput } from "./commands/StartApplicationCommand";
24
26
  import { StartApplicationRefreshCommandInput, StartApplicationRefreshCommandOutput } from "./commands/StartApplicationRefreshCommand";
27
+ import { StopApplicationCommandInput, StopApplicationCommandOutput } from "./commands/StopApplicationCommand";
25
28
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
26
29
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
27
30
  import { UpdateApplicationSettingsCommandInput, UpdateApplicationSettingsCommandOutput } from "./commands/UpdateApplicationSettingsCommand";
@@ -31,11 +34,11 @@ export { __Client };
31
34
  /**
32
35
  * @public
33
36
  */
34
- export type ServiceInputTypes = DeleteResourcePermissionCommandInput | DeregisterApplicationCommandInput | GetApplicationCommandInput | GetComponentCommandInput | GetDatabaseCommandInput | GetOperationCommandInput | GetResourcePermissionCommandInput | ListApplicationsCommandInput | ListComponentsCommandInput | ListDatabasesCommandInput | ListOperationsCommandInput | ListTagsForResourceCommandInput | PutResourcePermissionCommandInput | RegisterApplicationCommandInput | StartApplicationRefreshCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationSettingsCommandInput;
37
+ export type ServiceInputTypes = DeleteResourcePermissionCommandInput | DeregisterApplicationCommandInput | GetApplicationCommandInput | GetComponentCommandInput | GetDatabaseCommandInput | GetOperationCommandInput | GetResourcePermissionCommandInput | ListApplicationsCommandInput | ListComponentsCommandInput | ListDatabasesCommandInput | ListOperationEventsCommandInput | ListOperationsCommandInput | ListTagsForResourceCommandInput | PutResourcePermissionCommandInput | RegisterApplicationCommandInput | StartApplicationCommandInput | StartApplicationRefreshCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationSettingsCommandInput;
35
38
  /**
36
39
  * @public
37
40
  */
38
- export type ServiceOutputTypes = DeleteResourcePermissionCommandOutput | DeregisterApplicationCommandOutput | GetApplicationCommandOutput | GetComponentCommandOutput | GetDatabaseCommandOutput | GetOperationCommandOutput | GetResourcePermissionCommandOutput | ListApplicationsCommandOutput | ListComponentsCommandOutput | ListDatabasesCommandOutput | ListOperationsCommandOutput | ListTagsForResourceCommandOutput | PutResourcePermissionCommandOutput | RegisterApplicationCommandOutput | StartApplicationRefreshCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationSettingsCommandOutput;
41
+ export type ServiceOutputTypes = DeleteResourcePermissionCommandOutput | DeregisterApplicationCommandOutput | GetApplicationCommandOutput | GetComponentCommandOutput | GetDatabaseCommandOutput | GetOperationCommandOutput | GetResourcePermissionCommandOutput | ListApplicationsCommandOutput | ListComponentsCommandOutput | ListDatabasesCommandOutput | ListOperationEventsCommandOutput | ListOperationsCommandOutput | ListTagsForResourceCommandOutput | PutResourcePermissionCommandOutput | RegisterApplicationCommandOutput | StartApplicationCommandOutput | StartApplicationRefreshCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationSettingsCommandOutput;
39
42
  /**
40
43
  * @public
41
44
  */
@@ -0,0 +1,89 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListOperationEventsInput, ListOperationEventsOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SsmSapClientResolvedConfig } from "../SsmSapClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListOperationEventsCommand}.
13
+ */
14
+ export interface ListOperationEventsCommandInput extends ListOperationEventsInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListOperationEventsCommand}.
20
+ */
21
+ export interface ListOperationEventsCommandOutput extends ListOperationEventsOutput, __MetadataBearer {
22
+ }
23
+ declare const ListOperationEventsCommand_base: {
24
+ new (input: ListOperationEventsCommandInput): import("@smithy/smithy-client").CommandImpl<ListOperationEventsCommandInput, ListOperationEventsCommandOutput, SsmSapClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListOperationEventsCommandInput): import("@smithy/smithy-client").CommandImpl<ListOperationEventsCommandInput, ListOperationEventsCommandOutput, SsmSapClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Returns a list of operations events.</p>
30
+ * <p>Available parameters include <code>OperationID</code>, as well as optional parameters
31
+ * <code>MaxResults</code>, <code>NextToken</code>, and
32
+ * <code>Filters</code>.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { SsmSapClient, ListOperationEventsCommand } from "@aws-sdk/client-ssm-sap"; // ES Modules import
37
+ * // const { SsmSapClient, ListOperationEventsCommand } = require("@aws-sdk/client-ssm-sap"); // CommonJS import
38
+ * const client = new SsmSapClient(config);
39
+ * const input = { // ListOperationEventsInput
40
+ * OperationId: "STRING_VALUE", // required
41
+ * MaxResults: Number("int"),
42
+ * NextToken: "STRING_VALUE",
43
+ * Filters: [ // FilterList
44
+ * { // Filter
45
+ * Name: "STRING_VALUE", // required
46
+ * Value: "STRING_VALUE", // required
47
+ * Operator: "Equals" || "GreaterThanOrEquals" || "LessThanOrEquals", // required
48
+ * },
49
+ * ],
50
+ * };
51
+ * const command = new ListOperationEventsCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // ListOperationEventsOutput
54
+ * // OperationEvents: [ // OperationEventList
55
+ * // { // OperationEvent
56
+ * // Description: "STRING_VALUE",
57
+ * // Resource: { // Resource
58
+ * // ResourceArn: "STRING_VALUE",
59
+ * // ResourceType: "STRING_VALUE",
60
+ * // },
61
+ * // Status: "IN_PROGRESS" || "COMPLETED" || "FAILED",
62
+ * // StatusMessage: "STRING_VALUE",
63
+ * // Timestamp: new Date("TIMESTAMP"),
64
+ * // },
65
+ * // ],
66
+ * // NextToken: "STRING_VALUE",
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param ListOperationEventsCommandInput - {@link ListOperationEventsCommandInput}
72
+ * @returns {@link ListOperationEventsCommandOutput}
73
+ * @see {@link ListOperationEventsCommandInput} for command's `input` shape.
74
+ * @see {@link ListOperationEventsCommandOutput} for command's `response` shape.
75
+ * @see {@link SsmSapClientResolvedConfig | config} for SsmSapClient's `config` shape.
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>An internal error has occurred.</p>
79
+ *
80
+ * @throws {@link ValidationException} (client fault)
81
+ * <p>The input fails to satisfy the constraints specified by an AWS service. </p>
82
+ *
83
+ * @throws {@link SsmSapServiceException}
84
+ * <p>Base exception class for all service exceptions from SsmSap service.</p>
85
+ *
86
+ * @public
87
+ */
88
+ export declare class ListOperationEventsCommand extends ListOperationEventsCommand_base {
89
+ }
@@ -0,0 +1,72 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { StartApplicationInput, StartApplicationOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SsmSapClientResolvedConfig } from "../SsmSapClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link StartApplicationCommand}.
13
+ */
14
+ export interface StartApplicationCommandInput extends StartApplicationInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link StartApplicationCommand}.
20
+ */
21
+ export interface StartApplicationCommandOutput extends StartApplicationOutput, __MetadataBearer {
22
+ }
23
+ declare const StartApplicationCommand_base: {
24
+ new (input: StartApplicationCommandInput): import("@smithy/smithy-client").CommandImpl<StartApplicationCommandInput, StartApplicationCommandOutput, SsmSapClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: StartApplicationCommandInput): import("@smithy/smithy-client").CommandImpl<StartApplicationCommandInput, StartApplicationCommandOutput, SsmSapClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Request is an operation which starts an application.</p>
30
+ * <p>Parameter <code>ApplicationId</code> is required.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { SsmSapClient, StartApplicationCommand } from "@aws-sdk/client-ssm-sap"; // ES Modules import
35
+ * // const { SsmSapClient, StartApplicationCommand } = require("@aws-sdk/client-ssm-sap"); // CommonJS import
36
+ * const client = new SsmSapClient(config);
37
+ * const input = { // StartApplicationInput
38
+ * ApplicationId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new StartApplicationCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // StartApplicationOutput
43
+ * // OperationId: "STRING_VALUE",
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param StartApplicationCommandInput - {@link StartApplicationCommandInput}
49
+ * @returns {@link StartApplicationCommandOutput}
50
+ * @see {@link StartApplicationCommandInput} for command's `input` shape.
51
+ * @see {@link StartApplicationCommandOutput} for command's `response` shape.
52
+ * @see {@link SsmSapClientResolvedConfig | config} for SsmSapClient's `config` shape.
53
+ *
54
+ * @throws {@link ConflictException} (client fault)
55
+ * <p>A conflict has occurred.</p>
56
+ *
57
+ * @throws {@link InternalServerException} (server fault)
58
+ * <p>An internal error has occurred.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The resource is not available.</p>
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ * <p>The input fails to satisfy the constraints specified by an AWS service. </p>
65
+ *
66
+ * @throws {@link SsmSapServiceException}
67
+ * <p>Base exception class for all service exceptions from SsmSap service.</p>
68
+ *
69
+ * @public
70
+ */
71
+ export declare class StartApplicationCommand extends StartApplicationCommand_base {
72
+ }
@@ -0,0 +1,76 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { StopApplicationInput, StopApplicationOutput } from "../models/models_0";
4
+ import { ServiceInputTypes, ServiceOutputTypes, SsmSapClientResolvedConfig } from "../SsmSapClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link StopApplicationCommand}.
13
+ */
14
+ export interface StopApplicationCommandInput extends StopApplicationInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link StopApplicationCommand}.
20
+ */
21
+ export interface StopApplicationCommandOutput extends StopApplicationOutput, __MetadataBearer {
22
+ }
23
+ declare const StopApplicationCommand_base: {
24
+ new (input: StopApplicationCommandInput): import("@smithy/smithy-client").CommandImpl<StopApplicationCommandInput, StopApplicationCommandOutput, SsmSapClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: StopApplicationCommandInput): import("@smithy/smithy-client").CommandImpl<StopApplicationCommandInput, StopApplicationCommandOutput, SsmSapClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Request is an operation to stop an application.</p>
30
+ * <p>Parameter <code>ApplicationId</code> is required.
31
+ * Parameters <code>StopConnectedEntity</code> and
32
+ * <code>IncludeEc2InstanceShutdown</code> are optional.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { SsmSapClient, StopApplicationCommand } from "@aws-sdk/client-ssm-sap"; // ES Modules import
37
+ * // const { SsmSapClient, StopApplicationCommand } = require("@aws-sdk/client-ssm-sap"); // CommonJS import
38
+ * const client = new SsmSapClient(config);
39
+ * const input = { // StopApplicationInput
40
+ * ApplicationId: "STRING_VALUE", // required
41
+ * StopConnectedEntity: "DBMS",
42
+ * IncludeEc2InstanceShutdown: true || false,
43
+ * };
44
+ * const command = new StopApplicationCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // StopApplicationOutput
47
+ * // OperationId: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param StopApplicationCommandInput - {@link StopApplicationCommandInput}
53
+ * @returns {@link StopApplicationCommandOutput}
54
+ * @see {@link StopApplicationCommandInput} for command's `input` shape.
55
+ * @see {@link StopApplicationCommandOutput} for command's `response` shape.
56
+ * @see {@link SsmSapClientResolvedConfig | config} for SsmSapClient's `config` shape.
57
+ *
58
+ * @throws {@link ConflictException} (client fault)
59
+ * <p>A conflict has occurred.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>An internal error has occurred.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>The resource is not available.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>The input fails to satisfy the constraints specified by an AWS service. </p>
69
+ *
70
+ * @throws {@link SsmSapServiceException}
71
+ * <p>Base exception class for all service exceptions from SsmSap service.</p>
72
+ *
73
+ * @public
74
+ */
75
+ export declare class StopApplicationCommand extends StopApplicationCommand_base {
76
+ }
@@ -8,11 +8,14 @@ export * from "./GetResourcePermissionCommand";
8
8
  export * from "./ListApplicationsCommand";
9
9
  export * from "./ListComponentsCommand";
10
10
  export * from "./ListDatabasesCommand";
11
+ export * from "./ListOperationEventsCommand";
11
12
  export * from "./ListOperationsCommand";
12
13
  export * from "./ListTagsForResourceCommand";
13
14
  export * from "./PutResourcePermissionCommand";
14
15
  export * from "./RegisterApplicationCommand";
16
+ export * from "./StartApplicationCommand";
15
17
  export * from "./StartApplicationRefreshCommand";
18
+ export * from "./StopApplicationCommand";
16
19
  export * from "./TagResourceCommand";
17
20
  export * from "./UntagResourceCommand";
18
21
  export * from "./UpdateApplicationSettingsCommand";