CfnSecurityPolicyProps

class aws_cdk.aws_opensearchserverless.CfnSecurityPolicyProps(*, name, policy, type, description=None)

Bases: object

Properties for defining a CfnSecurityPolicy.

Parameters:
  • name (str) – The name of the policy.

  • policy (str) – The JSON policy document without any whitespaces.

  • type (str) – The type of security policy. Can be either encryption or network .

  • description (Optional[str]) – The description of the security policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchserverless-securitypolicy.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchserverless as opensearchserverless

cfn_security_policy_props = opensearchserverless.CfnSecurityPolicyProps(
    name="name",
    policy="policy",
    type="type",

    # the properties below are optional
    description="description"
)

Attributes

description

The description of the security policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchserverless-securitypolicy.html#cfn-opensearchserverless-securitypolicy-description

name

The name of the policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchserverless-securitypolicy.html#cfn-opensearchserverless-securitypolicy-name

policy

The JSON policy document without any whitespaces.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchserverless-securitypolicy.html#cfn-opensearchserverless-securitypolicy-policy

type

The type of security policy.

Can be either encryption or network .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opensearchserverless-securitypolicy.html#cfn-opensearchserverless-securitypolicy-type