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
Idawscc.m2.applications

Fields

NameDatatypeDescription
application_arnstring
application_idstring
definitionobject
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.

For more information, see AWS::M2::Application.

Methods

NameResourceAccessible byRequired Params
create_resourceapplicationsINSERTEngineType, Name, region
delete_resourceapplicationsDELETEIdentifier, region
update_resourceapplicationsUPDATEIdentifier, PatchDocument, region
list_resourcesapplications_list_onlySELECTregion
get_resourceapplicationsSELECTIdentifier, region

SELECT examples

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 awscc.m2.applications
WHERE
region = 'us-east-1' AND
Identifier = '{{ application_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.m2.applications
SET PatchDocument = string('{{ {
"Definition": definition,
"Description": description,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.m2.applications
WHERE
Identifier = '{{ application_arn }}' AND
region = 'us-east-1';

Permissions

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

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