CfnSecurityPolicyProps Struct
Properties for defining a CfnSecurityPolicy.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const cfnSecurityPolicyProps: opensearchserverless.CfnSecurityPolicyProps = {
name: 'name',
policy: 'policy',
type: 'type',
// the properties below are optional
description: 'description',
};
python
# 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"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;
CfnSecurityPolicyProps cfnSecurityPolicyProps = CfnSecurityPolicyProps.builder()
.name("name")
.policy("policy")
.type("type")
// the properties below are optional
.description("description")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;
var cfnSecurityPolicyProps = new CfnSecurityPolicyProps {
Name = "name",
Policy = "policy",
Type = "type",
// the properties below are optional
Description = "description"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSecurityPolicyProps := &CfnSecurityPolicyProps{
Name: jsii.String("name"),
Policy: jsii.String("policy"),
Type: jsii.String("type"),
// the properties below are optional
Description: jsii.String("description"),
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the security policy.
The name of the policy.
The JSON policy document without any whitespaces.
The type of security policy.
Can be either encryption or network .