Skip to main content

applications

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

Overview

Nameapplications
TypeResource
DescriptionAmazon OpenSearchService application resource
Idawscc.opensearchservice.applications

Fields

NameDatatypeDescription
iam_identity_center_optionsobjectOptions for configuring IAM Identity Center
arnstringAmazon Resource Name (ARN) format.
idstringThe identifier of the application.
namestringThe name of the application.
endpointstringThe endpoint for the application.
app_configsarrayList of application configurations.
data_sourcesarrayList of data sources.
tagsarrayAn arbitrary set of tags (key-value pairs) for this application.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceapplicationsINSERTName, 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,
iam_identity_center_options,
arn,
id,
name,
endpoint,
app_configs,
data_sources,
tags
FROM awscc.opensearchservice.applications
WHERE
region = 'us-east-1' AND
Identifier = '{{ name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.opensearchservice.applications
SET PatchDocument = string('{{ {
"IamIdentityCenterOptions": iam_identity_center_options,
"Endpoint": endpoint,
"AppConfigs": app_configs,
"DataSources": data_sources,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

DELETE example

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

Permissions

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

es:CreateApplication,
es:GetApplication,
es:AddTags,
es:ListTags,
iam:CreateServiceLinkedRole