Skip to main content

applications

Creates, updates, deletes or gets an application resource or lists applications in a region

Overview

Nameapplications
TypeResource
DescriptionRepresents an application that runs on an AWS Mainframe Modernization Environment
Idaws.m2.applications

Fields

NameDatatypeDescription
application_arnstring
application_idstring
definitionundefined
descriptionstring
engine_typestringThe target platform for the environment.
kms_key_idstringThe ID or the Amazon Resource Name (ARN) of the customer managed KMS Key used for encrypting application-related resources.
namestring
role_arnstring
tagsobjectDefines tags associated to an environment.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDefinition, EngineType, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all applications in a region.

SELECT
region,
application_arn,
application_id,
definition,
description,
engine_type,
kms_key_id,
name,
role_arn,
tags
FROM aws.m2.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
application_arn,
application_id,
definition,
description,
engine_type,
kms_key_id,
name,
role_arn,
tags
FROM aws.m2.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationArn>';

INSERT example

Use the following StackQL query and manifest file to create a new application resource, using stack-deploy.

/*+ create */
INSERT INTO aws.m2.applications (
Definition,
EngineType,
Name,
region
)
SELECT
'{{ Definition }}',
'{{ EngineType }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.m2.applications
WHERE data__Identifier = '<ApplicationArn>'
AND region = 'us-east-1';

Permissions

To operate on the applications resource, the following permissions are required:

Create

m2:CreateApplication,
m2:GetApplication,
m2:ListTagsForResource,
m2:TagResource,
s3:GetObject,
s3:ListBucket,
kms:DescribeKey,
kms:CreateGrant,
iam:PassRole

Read

m2:GetApplication,
m2:ListTagsForResource

Update

m2:UpdateApplication,
m2:GetApplication,
m2:ListTagsForResource,
m2:TagResource,
m2:UntagResource,
s3:GetObject,
s3:ListBucket

Delete

elasticloadbalancing:DeleteListener,
elasticloadbalancing:DeleteTargetGroup,
logs:DeleteLogDelivery,
m2:GetApplication,
m2:DeleteApplication

List

m2:ListApplications