AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::VpcLattice::AuthPolicy

CfnAuthPolicy

Creates or updates the auth policy. The policy string in JSON must not contain newlines or blank lines. For more information, see [Auth policies](https://docs.aws.amazon.com/vpc-lattice/latest/ug/auth-policies.html) in the *Amazon VPC Lattice User Guide* .

Import

import { CfnAuthPolicy } from 'aws-cdk-lib/aws-vpclattice';

Or use the module namespace:

import * as vpclattice from 'aws-cdk-lib/aws-vpclattice';
// vpclattice.CfnAuthPolicy

Properties

Configuration passed to the constructor as CfnAuthPolicyProps.

policyRequired
any

The auth policy.

resourceIdentifierRequired
string

The ID or ARN of the service network or service for which the policy is created.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter