Skip to main content

security_configs

Creates, updates, deletes or gets a security_config resource or lists security_configs in a region

Overview

Namesecurity_configs
TypeResource
DescriptionAmazon OpenSearchServerless security config resource
Idaws.opensearchserverless.security_configs

Fields

NameDatatypeDescription
descriptionstringSecurity config description
idstringThe identifier of the security config
namestringThe friendly name of the security config
saml_optionsobjectDescribes saml options in form of key value map
typestringConfig type for security config
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all security_configs in a region.

SELECT
region,
description,
id,
name,
saml_options,
type
FROM aws.opensearchserverless.security_configs
WHERE region = 'us-east-1';

Gets all properties from an individual security_config.

SELECT
region,
description,
id,
name,
saml_options,
type
FROM aws.opensearchserverless.security_configs
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.opensearchserverless.security_configs (
Description,
Name,
SamlOptions,
Type,
region
)
SELECT
'{{ Description }}',
'{{ Name }}',
'{{ SamlOptions }}',
'{{ Type }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.opensearchserverless.security_configs
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

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

Create

aoss:CreateSecurityConfig

Read

aoss:GetSecurityConfig

Update

aoss:GetSecurityConfig,
aoss:UpdateSecurityConfig

Delete

aoss:DeleteSecurityConfig

List

aoss:ListSecurityConfigs