- Implements:
@aws-cdk/core.ITaggable
Define a Route53 Private Hosted Zone, same as @aws-cdk/aws-route53.PrivateHostedZone, but allows associating the PHZ with VPC(s) in different AWS accounts.
import { CrossAccountHostedZone } from '@tomas-mazak/cdk-dns'
new CrossAccountHostedZone(scope: Construct, id: string, props: CrossAccountHostedZoneProps)
- Type:
@aws-cdk/core.Construct
- Type:
string
- Type:
@aws-cdk/core.TagManager
TagManager to set, remove and format tags.
import { CrossAccountHostedZoneProps } from '@tomas-mazak/cdk-dns'
const crossAccountHostedZoneProps: CrossAccountHostedZoneProps = { ... }
VPCs to associate the PHZ with, including the VPC account information (as the VPC can be in a different account than the PHZ itself).
- Type:
string
The name of the domain.
- Type:
string
Any comments that you want to include about the hosted zone.
- Type:
@aws-cdk/aws-iam.IRole
An IAM role to assume to create the private hosted zone.
Use if the PHZ should be deployed in different account than the CDK stack (default: CDK credentials are directly used)
import { CrossAccountVpc } from '@tomas-mazak/cdk-dns'
const crossAccountVpc: CrossAccountVpc = { ... }
- Type:
@aws-cdk/aws-ec2.IVpc
VPCs to associate the PHZ with.
- Type:
@aws-cdk/aws-iam.IRole
An IAM role to assume to "switch" to the VPC account, to associate the PHZ with the VPC.
If not specified, CDK credentials will be used directly (that means, CDK must be authenticated to the account where the VPC is)