Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Idaws.ssm_sap.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
applicationobjectReturns all of the metadata of an application registered with AWS Systems Manager for SAP.
tagsobjectThe tags of a registered application.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_applicationselectregionGets an application registered with AWS Systems Manager for SAP. It also returns the components of the application.
list_applicationsselectregionLists all the applications registered with AWS Systems Manager for SAP.
register_applicationinsertregion, ApplicationId, ApplicationType, InstancesRegister an SAP application with AWS Systems Manager for SAP. You must meet the following requirements before registering. The SAP application you want to register with AWS Systems Manager for SAP is running on Amazon EC2. AWS Systems Manager Agent must be setup on an Amazon EC2 instance along with the required IAM permissions. Amazon EC2 instance(s) must have access to the secrets created in AWS Secrets Manager to manage SAP applications and components.
update_application_settingsupdateregion, ApplicationIdUpdates the settings of an application registered with AWS Systems Manager for SAP.
deregister_applicationdeleteregionDeregister an SAP application with AWS Systems Manager for SAP. This action does not affect the existing setup of your SAP workloads on Amazon EC2.
start_applicationexecregion, ApplicationIdRequest is an operation which starts an application. Parameter ApplicationId is required.
start_application_refreshexecregion, ApplicationIdRefreshes a registered application.
start_configuration_checksexecregion, ApplicationIdInitiates configuration check operations against a specified application.
stop_applicationexecregion, ApplicationIdRequest is an operation to stop an application. Parameter ApplicationId is required. Parameters StopConnectedEntity and IncludeEc2InstanceShutdown are optional.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets an application registered with AWS Systems Manager for SAP. It also returns the components of the application.

SELECT
application,
tags
FROM aws.ssm_sap.applications
WHERE region = '{{ region }}' -- required
;

INSERT examples

Register an SAP application with AWS Systems Manager for SAP. You must meet the following requirements before registering. The SAP application you want to register with AWS Systems Manager for SAP is running on Amazon EC2. AWS Systems Manager Agent must be setup on an Amazon EC2 instance along with the required IAM permissions. Amazon EC2 instance(s) must have access to the secrets created in AWS Secrets Manager to manage SAP applications and components.

INSERT INTO aws.ssm_sap.applications (
ApplicationId,
ApplicationType,
Instances,
SapInstanceNumber,
Sid,
Tags,
Credentials,
DatabaseArn,
ComponentsInfo,
region
)
SELECT
'{{ ApplicationId }}' /* required */,
'{{ ApplicationType }}' /* required */,
'{{ Instances }}' /* required */,
'{{ SapInstanceNumber }}',
'{{ Sid }}',
'{{ Tags }}',
'{{ Credentials }}',
'{{ DatabaseArn }}',
'{{ ComponentsInfo }}',
'{{ region }}'
RETURNING
application,
operation_id
;

UPDATE examples

Updates the settings of an application registered with AWS Systems Manager for SAP.

UPDATE aws.ssm_sap.applications
SET
ApplicationId = '{{ ApplicationId }}',
CredentialsToAddOrUpdate = '{{ CredentialsToAddOrUpdate }}',
CredentialsToRemove = '{{ CredentialsToRemove }}',
Backint = '{{ Backint }}',
DatabaseArn = '{{ DatabaseArn }}'
WHERE
region = '{{ region }}' --required
AND ApplicationId = '{{ ApplicationId }}' --required
RETURNING
message,
operation_ids;

DELETE examples

Deregister an SAP application with AWS Systems Manager for SAP. This action does not affect the existing setup of your SAP workloads on Amazon EC2.

DELETE FROM aws.ssm_sap.applications
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Request is an operation which starts an application. Parameter ApplicationId is required.

EXEC aws.ssm_sap.applications.start_application
@region='{{ region }}' --required
@@json=
'{
"ApplicationId": "{{ ApplicationId }}"
}'
;