Skip to main content

applications

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

Overview

Nameapplications
TypeResource
DescriptionCreates an Amazon Kinesis Data Analytics application. For information about creating a Kinesis Data Analytics application, see [Creating an Application](https://docs.aws.amazon.com/kinesisanalytics/latest/java/getting-started.html).
Idaws.kinesisanalyticsv2.applications

Fields

NameDatatypeDescription
application_configurationobjectUse this parameter to configure the application.
application_descriptionstringThe description of the application.
application_modestringTo create a Kinesis Data Analytics Studio notebook, you must set the mode to `INTERACTIVE`. However, for a Kinesis Data Analytics for Apache Flink application, the mode is optional.
application_namestringThe name of the application.
runtime_environmentstringThe runtime environment for the application.
service_execution_rolestringSpecifies the IAM role that the application uses to access external resources.
run_configurationobjectSpecifies run configuration (start parameters) of a Kinesis Data Analytics application. Evaluated on update for RUNNING applications an only.
application_maintenance_configurationobjectUsed to configure start of maintenance window.
tagsarrayA list of one or more tags to assign to the application. A tag is a key-value pair that identifies an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTRuntimeEnvironment, ServiceExecutionRole, 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_configuration,
application_description,
application_mode,
application_name,
runtime_environment,
service_execution_role,
run_configuration,
application_maintenance_configuration,
tags
FROM aws.kinesisanalyticsv2.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
application_configuration,
application_description,
application_mode,
application_name,
runtime_environment,
service_execution_role,
run_configuration,
application_maintenance_configuration,
tags
FROM aws.kinesisanalyticsv2.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationName>';

INSERT example

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

/*+ create */
INSERT INTO aws.kinesisanalyticsv2.applications (
RuntimeEnvironment,
ServiceExecutionRole,
region
)
SELECT
'{{ RuntimeEnvironment }}',
'{{ ServiceExecutionRole }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

iam:PassRole,
kinesisanalytics:CreateApplication,
kinesisanalytics:DescribeApplication,
kinesisanalytics:ListTagsForResource,
kinesisanalytics:UpdateApplicationMaintenanceConfiguration

Read

kinesisanalytics:DescribeApplication,
kinesisanalytics:ListTagsForResource

Update

kinesisanalytics:UpdateApplication,
kinesisanalytics:DescribeApplication,
kinesisanalytics:TagResource,
kinesisanalytics:UntagResource,
kinesisanalytics:AddApplicationVpcConfiguration,
kinesisanalytics:DeleteApplicationVpcConfiguration,
kinesisanalytics:UpdateApplicationMaintenanceConfiguration,
kinesisanalytics:ListTagsForResource

Delete

kinesisanalytics:DescribeApplication,
kinesisanalytics:DeleteApplication

List

kinesisanalytics:ListApplications