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
iam_identity_center_optionsobjectDescribes IAM Identity Center options for an OpenSearch Serverless security configuration in the form of a key-value map
typestringConfig type for security config
regionstringAWS region.

For more information, see AWS::OpenSearchServerless::SecurityConfig.

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,
iam_identity_center_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,
iam_identity_center_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,
IamIdentityCenterOptions,
Type,
region
)
SELECT
'{{ Description }}',
'{{ Name }}',
'{{ SamlOptions }}',
'{{ IamIdentityCenterOptions }}',
'{{ 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,
sso:CreateApplication,
sso:ListApplications,
sso:DeleteApplication,
sso:PutApplicationAssignmentConfiguration,
sso:PutApplicationAuthenticationMethod,
sso:PutApplicationGrant

Read

aoss:GetSecurityConfig

Update

aoss:GetSecurityConfig,
aoss:UpdateSecurityConfig

Delete

aoss:DeleteSecurityConfig,
sso:ListApplicationAssignments,
sso:DeleteApplicationAssignment,
sso:DeleteApplication

List

aoss:ListSecurityConfigs