Skip to content

Latest commit

 

History

History
128 lines (66 loc) · 3.69 KB

API.md

File metadata and controls

128 lines (66 loc) · 3.69 KB

API Reference

Constructs

CrossAccountHostedZone

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.

Initializer

import { CrossAccountHostedZone } from '@tomas-mazak/cdk-dns'

new CrossAccountHostedZone(scope: Construct, id: string, props: CrossAccountHostedZoneProps)
scopeRequired

idRequired
  • Type: string

propsRequired

Properties

tagsRequired

TagManager to set, remove and format tags.


Structs

CrossAccountHostedZoneProps

Initializer

import { CrossAccountHostedZoneProps } from '@tomas-mazak/cdk-dns'

const crossAccountHostedZoneProps: CrossAccountHostedZoneProps = { ... }
vpcsRequired

VPCs to associate the PHZ with, including the VPC account information (as the VPC can be in a different account than the PHZ itself).


zoneNameRequired
  • Type: string

The name of the domain.


commentOptional
  • Type: string

Any comments that you want to include about the hosted zone.


zoneAccountRoleOptional

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)


CrossAccountVpc

Initializer

import { CrossAccountVpc } from '@tomas-mazak/cdk-dns'

const crossAccountVpc: CrossAccountVpc = { ... }
vpcRequired

VPCs to associate the PHZ with.


vpcAccountRoleOptional

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)