Skip to main content

default_application_settings

Creates, updates, deletes, gets or lists a default_application_settings resource.

Overview

Namedefault_application_settings
TypeResource
Idaws.opensearch.default_application_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
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>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_default_application_settingselectregionGets the ARN of the current default application. If the default application isn't set, the operation returns a resource not found error.
put_default_application_settingreplaceregion, applicationArn, setAsDefaultSets the default application to the application with the specified ARN. To remove the default application, use the GetDefaultApplicationSetting operation to get the current default and then call the PutDefaultApplicationSetting with the current applications ARN and the setAsDefault parameter set to false.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the ARN of the current default application. If the default application isn't set, the operation returns a resource not found error.

SELECT
application_arn
FROM aws.opensearch.default_application_settings
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Sets the default application to the application with the specified ARN. To remove the default application, use the GetDefaultApplicationSetting operation to get the current default and then call the PutDefaultApplicationSetting with the current applications ARN and the setAsDefault parameter set to false.

REPLACE aws.opensearch.default_application_settings
SET
applicationArn = '{{ applicationArn }}',
setAsDefault = {{ setAsDefault }}
WHERE
region = '{{ region }}' --required
AND applicationArn = '{{ applicationArn }}' --required
AND setAsDefault = {{ setAsDefault }} --required
RETURNING
application_arn;