Skip to content

Commit

Permalink
feat(client-ssm-sap): Add new attributes to the outputs of GetApplica…
Browse files Browse the repository at this point in the history
…tion and GetDatabase APIs.
  • Loading branch information
awstools committed Aug 19, 2024
1 parent 30b277c commit 20c4094
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 51 deletions.
3 changes: 3 additions & 0 deletions clients/client-ssm-sap/src/commands/GetApplicationCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export interface GetApplicationCommandOutput extends GetApplicationOutput, __Met
* // ],
* // LastUpdated: new Date("TIMESTAMP"),
* // StatusMessage: "STRING_VALUE",
* // AssociatedApplicationArns: [ // ApplicationArnList
* // "STRING_VALUE",
* // ],
* // },
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
Expand Down
3 changes: 3 additions & 0 deletions clients/client-ssm-sap/src/commands/GetDatabaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ export interface GetDatabaseCommandOutput extends GetDatabaseOutput, __MetadataB
* // PrimaryHost: "STRING_VALUE",
* // SQLPort: Number("int"),
* // LastUpdated: new Date("TIMESTAMP"),
* // ConnectedComponentArns: [ // ComponentArnList
* // "STRING_VALUE",
* // ],
* // },
* // Tags: { // TagMap
* // "<keys>": "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export interface ListOperationEventsCommandOutput extends ListOperationEventsOut
/**
* <p>Returns a list of operations events.</p>
* <p>Available parameters include <code>OperationID</code>, as well as optional parameters
* <code>MaxResults</code>, <code>NextToken</code>, and
* <code>Filters</code>.</p>
* <code>MaxResults</code>, <code>NextToken</code>, and <code>Filters</code>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ export interface RegisterApplicationCommandOutput extends RegisterApplicationOut
* // ],
* // LastUpdated: new Date("TIMESTAMP"),
* // StatusMessage: "STRING_VALUE",
* // AssociatedApplicationArns: [ // ApplicationArnList
* // "STRING_VALUE",
* // ],
* // },
* // OperationId: "STRING_VALUE",
* // };
Expand Down
6 changes: 3 additions & 3 deletions clients/client-ssm-sap/src/commands/StopApplicationCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export interface StopApplicationCommandOutput extends StopApplicationOutput, __M

/**
* <p>Request is an operation to stop an application.</p>
* <p>Parameter <code>ApplicationId</code> is required.
* Parameters <code>StopConnectedEntity</code> and
* <code>IncludeEc2InstanceShutdown</code> are optional.</p>
* <p>Parameter <code>ApplicationId</code> is required. Parameters
* <code>StopConnectedEntity</code> and <code>IncludeEc2InstanceShutdown</code> are
* optional.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
68 changes: 37 additions & 31 deletions clients/client-ssm-sap/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ export interface Application {
* @public
*/
StatusMessage?: string;

/**
* <p>The Amazon Resource Names of the associated AWS Systems Manager for SAP
* applications.</p>
* @public
*/
AssociatedApplicationArns?: string[];
}

/**
Expand Down Expand Up @@ -849,6 +856,13 @@ export interface Database {
* @public
*/
LastUpdated?: Date;

/**
* <p>The Amazon Resource Names of the connected AWS Systems Manager for SAP
* components.</p>
* @public
*/
ConnectedComponentArns?: string[];
}

/**
Expand Down Expand Up @@ -1499,33 +1513,32 @@ export interface ListOperationEventsInput {
MaxResults?: number;

/**
* <p>The token to use to retrieve the next page of results.
* This value is null when there are no more results to return.</p>
* <p>The token to use to retrieve the next page of results. This value is null when there are
* no more results to return.</p>
* @public
*/
NextToken?: string;

/**
* <p>Optionally specify filters to narrow the returned operation
* event items.</p>
* <p>Valid filter names include <code>status</code>, <code>resourceID</code>,
* and <code>resourceType</code>. The valid operator for all three filters
* is <code>Equals</code>.</p>
* <p>Optionally specify filters to narrow the returned operation event items.</p>
* <p>Valid filter names include <code>status</code>, <code>resourceID</code>, and
* <code>resourceType</code>. The valid operator for all three filters is
* <code>Equals</code>.</p>
* @public
*/
Filters?: Filter[];
}

/**
* <p>The resource contains a <code>ResourceArn</code>
* and the <code>ResourceType</code>.</p>
* <p>The resource contains a <code>ResourceArn</code> and the
* <code>ResourceType</code>.</p>
* @public
*/
export interface Resource {
/**
* <p>The Amazon Resource Name (ARN) of the source resource.</p>
* <p>Example of <code>ResourceArn</code>:
* "<code>arn:aws:ec2:us-east-1:111111111111:instance/i-abcdefgh987654321</code>"</p>
* "<code>arn:aws:ec2:us-east-1:111111111111:instance/i-abcdefgh987654321</code>"</p>
* @public
*/
ResourceArn?: string;
Expand Down Expand Up @@ -1555,9 +1568,8 @@ export const OperationEventStatus = {
export type OperationEventStatus = (typeof OperationEventStatus)[keyof typeof OperationEventStatus];

/**
* <p>An operation event returns details for an operation, including
* key milestones which can be used to monitor and track operations
* in progress.</p>
* <p>An operation event returns details for an operation, including key milestones which can
* be used to monitor and track operations in progress.</p>
* <p>Operation events contain:</p>
* <ul>
* <li>
Expand All @@ -1576,14 +1588,13 @@ export type OperationEventStatus = (typeof OperationEventStatus)[keyof typeof Op
* <p>TimeStamp</p>
* </li>
* </ul>
* <p>Operation event examples include StartApplication or
* StopApplication.</p>
* <p>Operation event examples include StartApplication or StopApplication.</p>
* @public
*/
export interface OperationEvent {
/**
* <p>A description of the operation event. For example,
* "Stop the EC2 instance i-abcdefgh987654321".</p>
* <p>A description of the operation event. For example, "Stop the EC2 instance
* i-abcdefgh987654321".</p>
* @public
*/
Description?: string;
Expand All @@ -1596,16 +1607,14 @@ export interface OperationEvent {
Resource?: Resource;

/**
* <p>The status of the operation event. The possible statuses
* are: <code>IN_PROGRESS</code>,
* <code>COMPLETED</code>, and <code>FAILED</code>.</p>
* <p>The status of the operation event. The possible statuses are: <code>IN_PROGRESS</code>,
* <code>COMPLETED</code>, and <code>FAILED</code>.</p>
* @public
*/
Status?: OperationEventStatus;

/**
* <p>The status message relating to a specific
* operation event.</p>
* <p>The status message relating to a specific operation event.</p>
* @public
*/
StatusMessage?: string;
Expand All @@ -1622,8 +1631,7 @@ export interface OperationEvent {
*/
export interface ListOperationEventsOutput {
/**
* <p>A returned list of operation events that
* meet the filter criteria.</p>
* <p>A returned list of operation events that meet the filter criteria.</p>
* @public
*/
OperationEvents?: OperationEvent[];
Expand Down Expand Up @@ -1866,18 +1874,16 @@ export interface StopApplicationInput {
ApplicationId: string | undefined;

/**
* <p>Specify the <code>ConnectedEntityType</code>. Accepted type
* is <code>DBMS</code>.</p>
* <p>If this parameter is included, the connected DBMS (Database
* Management System) will be stopped.</p>
* <p>Specify the <code>ConnectedEntityType</code>. Accepted type is <code>DBMS</code>.</p>
* <p>If this parameter is included, the connected DBMS (Database Management System) will be
* stopped.</p>
* @public
*/
StopConnectedEntity?: ConnectedEntityType;

/**
* <p>Boolean. If included and if set to <code>True</code>, the
* StopApplication operation will shut down the associated Amazon EC2 instance in addition to
* the application.</p>
* <p>Boolean. If included and if set to <code>True</code>, the StopApplication operation will
* shut down the associated Amazon EC2 instance in addition to the application.</p>
* @public
*/
IncludeEc2InstanceShutdown?: boolean;
Expand Down
6 changes: 6 additions & 0 deletions clients/client-ssm-sap/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,7 @@ const de_Application = (output: any, context: __SerdeContext): Application => {
return take(output, {
AppRegistryArn: __expectString,
Arn: __expectString,
AssociatedApplicationArns: _json,
Components: _json,
DiscoveryStatus: __expectString,
Id: __expectString,
Expand All @@ -1183,6 +1184,8 @@ const de_Application = (output: any, context: __SerdeContext): Application => {
}) as any;
};

// de_ApplicationArnList omitted.

// de_ApplicationCredential omitted.

// de_ApplicationCredentialList omitted.
Expand Down Expand Up @@ -1221,6 +1224,8 @@ const de_Component = (output: any, context: __SerdeContext): Component => {
}) as any;
};

// de_ComponentArnList omitted.

// de_ComponentIdList omitted.

// de_ComponentSummary omitted.
Expand All @@ -1235,6 +1240,7 @@ const de_Database = (output: any, context: __SerdeContext): Database => {
ApplicationId: __expectString,
Arn: __expectString,
ComponentId: __expectString,
ConnectedComponentArns: _json,
Credentials: _json,
DatabaseId: __expectString,
DatabaseName: __expectString,
Expand Down
Loading

0 comments on commit 20c4094

Please sign in to comment.