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
Idaws.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

NameAccessible byRequired Params
create_resourceINSERTName, 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,
iam_identity_center_options,
arn,
id,
name,
endpoint,
app_configs,
data_sources,
tags
FROM aws.opensearchservice.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
iam_identity_center_options,
arn,
id,
name,
endpoint,
app_configs,
data_sources,
tags
FROM aws.opensearchservice.applications
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

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

Read

es:GetApplication,
es:ListTags

Update

es:UpdateApplication,
es:GetApplication,
es:AddTags,
es:RemoveTags,
es:ListTags

Delete

es:GetApplication,
es:DeleteApplication

List

es:ListApplications