AuthorizationPolicyProperty
Struct External
| 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_ec2 as ec2 } from 'aws-cdk-lib';
const authorizationPolicyProperty: ec2.CfnClientVpnEndpoint.AuthorizationPolicyProperty = {
policyDocument: 'policyDocument',
// the properties below are optional
description: 'description',
shadowMode: 'shadowMode',
};
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_ec2 as ec2
authorization_policy_property = ec2.CfnClientVpnEndpoint.AuthorizationPolicyProperty(
policy_document="policyDocument",
# the properties below are optional
description="description",
shadow_mode="shadowMode"
)
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.ec2.*;
AuthorizationPolicyProperty authorizationPolicyProperty = AuthorizationPolicyProperty.builder()
.policyDocument("policyDocument")
// the properties below are optional
.description("description")
.shadowMode("shadowMode")
.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.EC2;
var authorizationPolicyProperty = new AuthorizationPolicyProperty {
PolicyDocument = "policyDocument",
// the properties below are optional
Description = "description",
ShadowMode = "shadowMode"
};
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"
authorizationPolicyProperty := &AuthorizationPolicyProperty{
PolicyDocument: jsii.String("policyDocument"),
// the properties below are optional
Description: jsii.String("description"),
ShadowMode: jsii.String("shadowMode"),
}
Properties
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A brief description of the authorization policy.
policyDocumentstringpolicy_documentstrpolicyDocumentStringPolicyDocumentstringPolicyDocument*string required #The Cedar policy document.
shadowModeoptionalstringshadow_modeoptionalstrshadowModeoptionalStringShadowModeoptionalstringShadowModeoptional*string #Whether the authorization policy runs in shadow (observe-only) mode.