Skip to content
v2.278.0

CfnAuthPolicyProps Struct ​

Properties for defining a CfnAuthPolicy.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';

declare const policy: any;
const cfnAuthPolicyProps: vpclattice.CfnAuthPolicyProps = {
  policy: policy,
  resourceIdentifier: 'resourceIdentifier',
};
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_vpclattice as vpclattice

# policy: Any

cfn_auth_policy_props = vpclattice.CfnAuthPolicyProps(
    policy=policy,
    resource_identifier="resourceIdentifier"
)
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.vpclattice.*;

Object policy;

CfnAuthPolicyProps cfnAuthPolicyProps = CfnAuthPolicyProps.builder()
        .policy(policy)
        .resourceIdentifier("resourceIdentifier")
        .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.VpcLattice;

var policy;

var cfnAuthPolicyProps = new CfnAuthPolicyProps {
    Policy = policy,
    ResourceIdentifier = "resourceIdentifier"
};
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"

var policy interface{}

cfnAuthPolicyProps := &CfnAuthPolicyProps{
	Policy: policy,
	ResourceIdentifier: jsii.String("resourceIdentifier"),
}

Properties ​

policyanypolicyAnypolicyObjectPolicyobjectPolicyinterface{} required #
The auth policy.
resourceIdentifierstringresource_identifierstrresourceIdentifierStringResourceIdentifierstringResourceIdentifier*string required #
The ID or ARN of the service network or service for which the policy is created.