Skip to content

/AWS1/CL_OSS=>CREATESECURITYPOLICY()

About CreateSecurityPolicy

Creates a security policy to be used by one or more OpenSearch Serverless collections. Security policies provide access to a collection and its OpenSearch Dashboards endpoint from public networks or specific VPC endpoints. They also allow you to secure a collection with a KMS encryption key. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.

Method Signature

IMPORTING

Required arguments:

IV_TYPE TYPE /AWS1/OSSSECURITYPOLICYTYPE /AWS1/OSSSECURITYPOLICYTYPE

The type of security policy.

IV_NAME TYPE /AWS1/OSSPOLICYNAME /AWS1/OSSPOLICYNAME

The name of the policy.

IV_POLICY TYPE /AWS1/OSSPOLICYDOCUMENT /AWS1/OSSPOLICYDOCUMENT

The JSON policy document to use as the content for the new policy.

Optional arguments:

IV_DESCRIPTION TYPE /AWS1/OSSPOLICYDESCRIPTION /AWS1/OSSPOLICYDESCRIPTION

A description of the policy. Typically used to store information about the permissions defined in the policy.

IV_CLIENTTOKEN TYPE /AWS1/OSSCLIENTTOKEN /AWS1/OSSCLIENTTOKEN

Unique, case-sensitive identifier to ensure idempotency of the request.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_OSSCREATESECPOLICYRSP /AWS1/CL_OSSCREATESECPOLICYRSP