Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview​

Nameapplications
TypeResource
Idaws.opensearch.applications

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the OpenSearch application. (pattern: <code>[a-z0-9]{3,30}</code>)
namestringThe name of the OpenSearch application. (pattern: <code>[a-z][a-z0-9-]+</code>)
app_configsarrayThe configuration settings of the OpenSearch application.
arnstringThe Amazon Resource Name (ARN) of the domain. See Identifiers for IAM Entities in Using Amazon Web Services Identity and Access Management for more information. (pattern: <code>.*</code>)
created_atstring (date-time)The timestamp when the OpenSearch application was created.
data_sourcesarrayThe data sources associated with the OpenSearch application.
endpointstringThe endpoint URL of the OpenSearch application.
iam_identity_center_optionsobjectThe IAM Identity Center settings configured for the OpenSearch application.
kms_key_arnstringThe Amazon Resource Name (ARN) of the KMS key used to encrypt the application's data at rest. (pattern: <code>^arn:aws[a-zA-Z-]*:kms:[a-z0-9-]+:[0-9]{12}:key/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$</code>)
last_updated_atstring (date-time)The timestamp of the last update to the OpenSearch application.
statusstringThe current status of the OpenSearch application. Possible values: CREATING, UPDATING, DELETING, FAILED, ACTIVE, and DELETED. (CREATING, UPDATING, DELETING, ACTIVE, FAILED)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_applicationselectid, regionRetrieves the configuration and status of an existing OpenSearch application.
list_applicationsselectregionnextToken, statuses, maxResultsLists all OpenSearch applications under your account.
create_applicationinsertregion, nameCreates an OpenSearch UI application. For more information, see Using the OpenSearch user interface in Amazon OpenSearch Service.
update_applicationupdateid, regionUpdates the configuration and settings of an existing OpenSearch application.
delete_applicationdeleteid, regionDeletes a specified OpenSearch application.
start_migrationexecregion, applicationId, migrationOptionsInitiates a migration job to migrate saved objects from a data source to an Amazon OpenSearch Service application workspace. Saved objects include dashboards, visualizations, index patterns, and searches. You can specify export filters to control the scope of the migration and a conflict resolution strategy for handling existing objects in the target workspace.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier of the OpenSearch application to delete.
regionstringAWS region (default: us-east-1)
maxResultsinteger
nextTokenstring
statusesarrayFilters the list of OpenSearch applications by status. Possible values: CREATING, UPDATING, DELETING, FAILED, ACTIVE, and DELETED.

SELECT examples​

Retrieves the configuration and status of an existing OpenSearch application.

SELECT
id,
name,
app_configs,
arn,
created_at,
data_sources,
endpoint,
iam_identity_center_options,
kms_key_arn,
last_updated_at,
status
FROM aws.opensearch.applications
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates an OpenSearch UI application. For more information, see Using the OpenSearch user interface in Amazon OpenSearch Service.

INSERT INTO aws.opensearch.applications (
clientToken,
name,
dataSources,
iamIdentityCenterOptions,
appConfigs,
tagList,
kmsKeyArn,
region
)
SELECT
'{{ clientToken }}',
'{{ name }}' /* required */,
'{{ dataSources }}',
'{{ iamIdentityCenterOptions }}',
'{{ appConfigs }}',
'{{ tagList }}',
'{{ kmsKeyArn }}',
'{{ region }}'
RETURNING
id,
name,
app_configs,
arn,
created_at,
data_sources,
iam_identity_center_options,
kms_key_arn,
tag_list
;

UPDATE examples​

Updates the configuration and settings of an existing OpenSearch application.

UPDATE aws.opensearch.applications
SET
dataSources = '{{ dataSources }}',
appConfigs = '{{ appConfigs }}',
iamIdentityCenterOptions = '{{ iamIdentityCenterOptions }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
app_configs,
arn,
created_at,
data_sources,
iam_identity_center_options,
last_updated_at;

DELETE examples​

Deletes a specified OpenSearch application.

DELETE FROM aws.opensearch.applications
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods​

Initiates a migration job to migrate saved objects from a data source to an Amazon OpenSearch Service application workspace. Saved objects include dashboards, visualizations, index patterns, and searches. You can specify export filters to control the scope of the migration and a conflict resolution strategy for handling existing objects in the target workspace.

EXEC aws.opensearch.applications.start_migration
@region='{{ region }}' --required
@@json=
'{
"applicationId": "{{ applicationId }}",
"migrationOptions": "{{ migrationOptions }}",
"clientToken": "{{ clientToken }}"
}'
;