applications
Creates, updates, deletes or gets an application resource or lists applications in a region
Overview
| Name | applications |
| Type | Resource |
| Description | Resource schema for AWS::SystemsManagerSAP::Application |
| Id | awscc.systemsmanagersap.applications |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
application_id | string | |
application_type | string | |
arn | string | The ARN of the SSM-SAP application |
credentials | array | |
instances | array | |
sap_instance_number | string | |
sid | string | |
tags | array | The tags of a SystemsManagerSAP application. |
database_arn | string | The ARN of the SAP HANA database |
components_info | array | This is an optional parameter for component details to which the SAP ABAP application is attached, such as Web Dispatcher. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the SSM-SAP application |
region | string | AWS region. |
For more information, see AWS::SystemsManagerSAP::Application.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | applications | INSERT | ApplicationId, ApplicationType, region |
delete_resource | applications | DELETE | Identifier, region |
update_resource | applications | UPDATE | Identifier, PatchDocument, region |
list_resources | applications_list_only | SELECT | region |
get_resource | applications | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual application.
SELECT
region,
application_id,
application_type,
arn,
credentials,
instances,
sap_instance_number,
sid,
tags,
database_arn,
components_info
FROM awscc.systemsmanagersap.applications
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';
Lists all applications in a region.
SELECT
region,
arn
FROM awscc.systemsmanagersap.applications_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new application resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.systemsmanagersap.applications (
ApplicationId,
ApplicationType,
region
)
SELECT
'{{ application_id }}',
'{{ application_type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.systemsmanagersap.applications (
ApplicationId,
ApplicationType,
Credentials,
Instances,
SapInstanceNumber,
Sid,
Tags,
DatabaseArn,
ComponentsInfo,
region
)
SELECT
'{{ application_id }}',
'{{ application_type }}',
'{{ credentials }}',
'{{ instances }}',
'{{ sap_instance_number }}',
'{{ sid }}',
'{{ tags }}',
'{{ database_arn }}',
'{{ components_info }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: application
props:
- name: application_id
value: '{{ application_id }}'
- name: application_type
value: '{{ application_type }}'
- name: credentials
value:
- database_name: '{{ database_name }}'
credential_type: '{{ credential_type }}'
secret_id: '{{ secret_id }}'
- name: instances
value:
- '{{ instances[0] }}'
- name: sap_instance_number
value: '{{ sap_instance_number }}'
- name: sid
value: '{{ sid }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: database_arn
value: '{{ database_arn }}'
- name: components_info
value:
- component_type: '{{ component_type }}'
ec2_instance_id: '{{ ec2_instance_id }}'
sid: '{{ sid }}'
UPDATE example
Use the following StackQL query and manifest file to update a application resource, using stack-deploy.
/*+ update */
UPDATE awscc.systemsmanagersap.applications
SET PatchDocument = string('{{ {
"ApplicationId": application_id,
"ApplicationType": application_type,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.systemsmanagersap.applications
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the applications resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
ssm-sap:RegisterApplication,
ssm-sap:GetApplication,
ssm-sap:TagResource,
ssm-sap:ListTagsForResource,
iam:CreateServiceLinkedRole
ssm-sap:GetApplication,
ssm-sap:ListTagsForResource
ssm-sap:TagResource,
ssm-sap:UntagResource,
ssm-sap:ListTagsForResource,
ssm-sap:GetApplication
ssm-sap:DeregisterApplication,
ssm-sap:GetApplication
ssm-sap:ListApplications