Skip to content

Commit

Permalink
feat(client-ssm-sap): Added support for SAP Hana High Availability di…
Browse files Browse the repository at this point in the history
…scovery (primary and secondary nodes) and Backint agent installation with SSM for SAP.
  • Loading branch information
awstools committed Jul 19, 2023
1 parent c3aefb0 commit 4de12dc
Show file tree
Hide file tree
Showing 23 changed files with 3,857 additions and 2,770 deletions.
8 changes: 8 additions & 0 deletions clients/client-ssm-sap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@ RegisterApplication

[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)

</details>
<details>
<summary>
StartApplicationRefresh
</summary>

[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)

</details>
<details>
<summary>
Expand Down
23 changes: 23 additions & 0 deletions clients/client-ssm-sap/src/SsmSap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ import {
RegisterApplicationCommandInput,
RegisterApplicationCommandOutput,
} from "./commands/RegisterApplicationCommand";
import {
StartApplicationRefreshCommand,
StartApplicationRefreshCommandInput,
StartApplicationRefreshCommandOutput,
} from "./commands/StartApplicationRefreshCommand";
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
UntagResourceCommand,
Expand Down Expand Up @@ -96,6 +101,7 @@ const commands = {
ListTagsForResourceCommand,
PutResourcePermissionCommand,
RegisterApplicationCommand,
StartApplicationRefreshCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateApplicationSettingsCommand,
Expand Down Expand Up @@ -307,6 +313,23 @@ export interface SsmSap {
cb: (err: any, data?: RegisterApplicationCommandOutput) => void
): void;

/**
* @see {@link StartApplicationRefreshCommand}
*/
startApplicationRefresh(
args: StartApplicationRefreshCommandInput,
options?: __HttpHandlerOptions
): Promise<StartApplicationRefreshCommandOutput>;
startApplicationRefresh(
args: StartApplicationRefreshCommandInput,
cb: (err: any, data?: StartApplicationRefreshCommandOutput) => void
): void;
startApplicationRefresh(
args: StartApplicationRefreshCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StartApplicationRefreshCommandOutput) => void
): void;

/**
* @see {@link TagResourceCommand}
*/
Expand Down
6 changes: 6 additions & 0 deletions clients/client-ssm-sap/src/SsmSapClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ import {
RegisterApplicationCommandInput,
RegisterApplicationCommandOutput,
} from "./commands/RegisterApplicationCommand";
import {
StartApplicationRefreshCommandInput,
StartApplicationRefreshCommandOutput,
} from "./commands/StartApplicationRefreshCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import {
Expand Down Expand Up @@ -115,6 +119,7 @@ export type ServiceInputTypes =
| ListTagsForResourceCommandInput
| PutResourcePermissionCommandInput
| RegisterApplicationCommandInput
| StartApplicationRefreshCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateApplicationSettingsCommandInput;
Expand All @@ -137,6 +142,7 @@ export type ServiceOutputTypes =
| ListTagsForResourceCommandOutput
| PutResourcePermissionCommandOutput
| RegisterApplicationCommandOutput
| StartApplicationRefreshCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateApplicationSettingsCommandOutput;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface DeleteResourcePermissionCommandOutput extends DeleteResourcePer
* // const { SsmSapClient, DeleteResourcePermissionCommand } = require("@aws-sdk/client-ssm-sap"); // CommonJS import
* const client = new SsmSapClient(config);
* const input = { // DeleteResourcePermissionInput
* ActionType: "STRING_VALUE",
* ActionType: "RESTORE",
* SourceResourceArn: "STRING_VALUE",
* ResourceArn: "STRING_VALUE", // required
* };
Expand Down
5 changes: 3 additions & 2 deletions clients/client-ssm-sap/src/commands/GetApplicationCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ export interface GetApplicationCommandOutput extends GetApplicationOutput, __Met
* // { // GetApplicationOutput
* // Application: { // Application
* // Id: "STRING_VALUE",
* // Type: "STRING_VALUE",
* // Type: "HANA",
* // Arn: "STRING_VALUE",
* // AppRegistryArn: "STRING_VALUE",
* // Status: "STRING_VALUE",
* // Status: "ACTIVATED" || "STARTING" || "STOPPED" || "STOPPING" || "FAILED" || "REGISTERING" || "DELETING" || "UNKNOWN",
* // DiscoveryStatus: "SUCCESS" || "REGISTRATION_FAILED" || "REFRESH_FAILED" || "REGISTERING" || "DELETING",
* // Components: [ // ComponentIdList
* // "STRING_VALUE",
* // ],
Expand Down
30 changes: 27 additions & 3 deletions clients/client-ssm-sap/src/commands/GetComponentCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,22 +53,46 @@ export interface GetComponentCommandOutput extends GetComponentOutput, __Metadat
* // { // GetComponentOutput
* // Component: { // Component
* // ComponentId: "STRING_VALUE",
* // ParentComponent: "STRING_VALUE",
* // ChildComponents: [ // ComponentIdList
* // "STRING_VALUE",
* // ],
* // ApplicationId: "STRING_VALUE",
* // ComponentType: "STRING_VALUE",
* // Status: "STRING_VALUE",
* // ComponentType: "HANA" || "HANA_NODE",
* // Status: "ACTIVATED" || "STARTING" || "STOPPED" || "STOPPING" || "RUNNING" || "RUNNING_WITH_ERROR" || "UNDEFINED",
* // SapHostname: "STRING_VALUE",
* // SapKernelVersion: "STRING_VALUE",
* // HdbVersion: "STRING_VALUE",
* // Resilience: { // Resilience
* // HsrTier: "STRING_VALUE",
* // HsrReplicationMode: "PRIMARY" || "NONE" || "SYNC" || "SYNCMEM" || "ASYNC",
* // HsrOperationMode: "PRIMARY" || "LOGREPLAY" || "DELTA_DATASHIPPING" || "LOGREPLAY_READACCESS" || "NONE",
* // ClusterStatus: "ONLINE" || "STANDBY" || "MAINTENANCE" || "OFFLINE" || "NONE",
* // },
* // AssociatedHost: { // AssociatedHost
* // Hostname: "STRING_VALUE",
* // Ec2InstanceId: "STRING_VALUE",
* // OsVersion: "STRING_VALUE",
* // },
* // Databases: [ // DatabaseIdList
* // "STRING_VALUE",
* // ],
* // Hosts: [ // HostList
* // { // Host
* // HostName: "STRING_VALUE",
* // HostRole: "STRING_VALUE",
* // HostIp: "STRING_VALUE",
* // EC2InstanceId: "STRING_VALUE",
* // InstanceId: "STRING_VALUE",
* // HostRole: "LEADER" || "WORKER" || "STANDBY" || "UNKNOWN",
* // OsVersion: "STRING_VALUE",
* // },
* // ],
* // PrimaryHost: "STRING_VALUE",
* // LastUpdated: new Date("TIMESTAMP"),
* // Arn: "STRING_VALUE",
* // },
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // };
*
Expand Down
6 changes: 3 additions & 3 deletions clients/client-ssm-sap/src/commands/GetDatabaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ export interface GetDatabaseCommandOutput extends GetDatabaseOutput, __MetadataB
* // Credentials: [ // ApplicationCredentialList
* // { // ApplicationCredential
* // DatabaseName: "STRING_VALUE", // required
* // CredentialType: "STRING_VALUE", // required
* // CredentialType: "ADMIN", // required
* // SecretId: "STRING_VALUE", // required
* // },
* // ],
* // DatabaseId: "STRING_VALUE",
* // DatabaseName: "STRING_VALUE",
* // DatabaseType: "STRING_VALUE",
* // DatabaseType: "SYSTEM" || "TENANT",
* // Arn: "STRING_VALUE",
* // Status: "STRING_VALUE",
* // Status: "RUNNING" || "STARTING" || "STOPPED" || "WARNING" || "UNKNOWN" || "ERROR",
* // PrimaryHost: "STRING_VALUE",
* // SQLPort: Number("int"),
* // LastUpdated: new Date("TIMESTAMP"),
Expand Down
2 changes: 1 addition & 1 deletion clients/client-ssm-sap/src/commands/GetOperationCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface GetOperationCommandOutput extends GetOperationOutput, __Metadat
* // Operation: { // Operation
* // Id: "STRING_VALUE",
* // Type: "STRING_VALUE",
* // Status: "STRING_VALUE",
* // Status: "INPROGRESS" || "SUCCESS" || "ERROR",
* // StatusMessage: "STRING_VALUE",
* // Properties: { // OperationProperties
* // "<keys>": "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface GetResourcePermissionCommandOutput extends GetResourcePermissio
* // const { SsmSapClient, GetResourcePermissionCommand } = require("@aws-sdk/client-ssm-sap"); // CommonJS import
* const client = new SsmSapClient(config);
* const input = { // GetResourcePermissionInput
* ActionType: "STRING_VALUE",
* ActionType: "RESTORE",
* ResourceArn: "STRING_VALUE", // required
* };
* const command = new GetResourcePermissionCommand(input);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface ListApplicationsCommandOutput extends ListApplicationsOutput, _
* // Applications: [ // ApplicationSummaryList
* // { // ApplicationSummary
* // Id: "STRING_VALUE",
* // Type: "STRING_VALUE",
* // Type: "HANA",
* // Arn: "STRING_VALUE",
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
Expand Down
3 changes: 2 additions & 1 deletion clients/client-ssm-sap/src/commands/ListComponentsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ export interface ListComponentsCommandOutput extends ListComponentsOutput, __Met
* // { // ComponentSummary
* // ApplicationId: "STRING_VALUE",
* // ComponentId: "STRING_VALUE",
* // ComponentType: "STRING_VALUE",
* // ComponentType: "HANA" || "HANA_NODE",
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
* // },
* // Arn: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface ListDatabasesCommandOutput extends ListDatabasesOutput, __Metad
* // ApplicationId: "STRING_VALUE",
* // ComponentId: "STRING_VALUE",
* // DatabaseId: "STRING_VALUE",
* // DatabaseType: "STRING_VALUE",
* // DatabaseType: "SYSTEM" || "TENANT",
* // Arn: "STRING_VALUE",
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ssm-sap/src/commands/ListOperationsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface ListOperationsCommandOutput extends ListOperationsOutput, __Met
* { // Filter
* Name: "STRING_VALUE", // required
* Value: "STRING_VALUE", // required
* Operator: "STRING_VALUE", // required
* Operator: "Equals" || "GreaterThanOrEquals" || "LessThanOrEquals", // required
* },
* ],
* };
Expand All @@ -62,7 +62,7 @@ export interface ListOperationsCommandOutput extends ListOperationsOutput, __Met
* // { // Operation
* // Id: "STRING_VALUE",
* // Type: "STRING_VALUE",
* // Status: "STRING_VALUE",
* // Status: "INPROGRESS" || "SUCCESS" || "ERROR",
* // StatusMessage: "STRING_VALUE",
* // Properties: { // OperationProperties
* // "<keys>": "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface PutResourcePermissionCommandOutput extends PutResourcePermissio
* // const { SsmSapClient, PutResourcePermissionCommand } = require("@aws-sdk/client-ssm-sap"); // CommonJS import
* const client = new SsmSapClient(config);
* const input = { // PutResourcePermissionInput
* ActionType: "STRING_VALUE", // required
* ActionType: "RESTORE", // required
* SourceResourceArn: "STRING_VALUE", // required
* ResourceArn: "STRING_VALUE", // required
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface RegisterApplicationCommandOutput extends RegisterApplicationOut
* const client = new SsmSapClient(config);
* const input = { // RegisterApplicationInput
* ApplicationId: "STRING_VALUE", // required
* ApplicationType: "STRING_VALUE", // required
* ApplicationType: "HANA", // required
* Instances: [ // InstanceList // required
* "STRING_VALUE",
* ],
Expand All @@ -68,7 +68,7 @@ export interface RegisterApplicationCommandOutput extends RegisterApplicationOut
* Credentials: [ // ApplicationCredentialList // required
* { // ApplicationCredential
* DatabaseName: "STRING_VALUE", // required
* CredentialType: "STRING_VALUE", // required
* CredentialType: "ADMIN", // required
* SecretId: "STRING_VALUE", // required
* },
* ],
Expand All @@ -78,10 +78,11 @@ export interface RegisterApplicationCommandOutput extends RegisterApplicationOut
* // { // RegisterApplicationOutput
* // Application: { // Application
* // Id: "STRING_VALUE",
* // Type: "STRING_VALUE",
* // Type: "HANA",
* // Arn: "STRING_VALUE",
* // AppRegistryArn: "STRING_VALUE",
* // Status: "STRING_VALUE",
* // Status: "ACTIVATED" || "STARTING" || "STOPPED" || "STOPPING" || "FAILED" || "REGISTERING" || "DELETING" || "UNKNOWN",
* // DiscoveryStatus: "SUCCESS" || "REGISTRATION_FAILED" || "REFRESH_FAILED" || "REGISTERING" || "DELETING",
* // Components: [ // ComponentIdList
* // "STRING_VALUE",
* // ],
Expand Down
Loading

0 comments on commit 4de12dc

Please sign in to comment.