Documentation ¶
Overview ¶
CDK constructs for defining an interaction between an Amazon Route53 domain and an Application Load Balancer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRoute53ToAlb_Override ¶
func NewRoute53ToAlb_Override(r Route53ToAlb, scope constructs.Construct, id *string, props *Route53ToAlbProps)
func Route53ToAlb_IsConstruct ¶
func Route53ToAlb_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
Types ¶
type Route53ToAlb ¶
type Route53ToAlb interface { constructs.Construct HostedZone() awsroute53.IHostedZone LoadBalancer() awselasticloadbalancingv2.ApplicationLoadBalancer Node() constructs.Node Vpc() awsec2.IVpc ToString() *string }
func NewRoute53ToAlb ¶
func NewRoute53ToAlb(scope constructs.Construct, id *string, props *Route53ToAlbProps) Route53ToAlb
type Route53ToAlbProps ¶
type Route53ToAlbProps struct { // Whether to create a public or private API. // // This value has implications // for the VPC, the type of Hosted Zone and the Application Load Balancer PublicApi *bool `json:"publicApi"` // Optional properties to customize the bucket used to store the ALB Access Logs. // // Supplying this and setting logAccessLogs to false is an error. AlbLoggingBucketProps *awss3.BucketProps `json:"albLoggingBucketProps"` // Existing Public or Private Hosted Zone. // // If a Private Hosted Zone, must // exist in the same VPC specified in existingVpc ExistingHostedZoneInterface awsroute53.IHostedZone `json:"existingHostedZoneInterface"` // An existing Application Load Balancer. // // Providing both this and loadBalancerProps // is an error. This ALB must exist in the same VPC specified in existingVPC ExistingLoadBalancerObj awselasticloadbalancingv2.ApplicationLoadBalancer `json:"existingLoadBalancerObj"` // An existing VPC. // // Providing both this and vpcProps is an error. If an existingAlb or existing // Private Hosted Zone is provided, this value must be the VPC associated with those resources. ExistingVpc awsec2.IVpc `json:"existingVpc"` // Custom properties for a new ALB. // // Providing both this and existingLoadBalancerObj // is an error. These properties cannot include a VPC. LoadBalancerProps interface{} `json:"loadBalancerProps"` // Whether to turn on Access Logs for the Application Load Balancer. // // Uses an S3 bucket // with associated storage costs. Enabling Access Logging is a best practice. LogAlbAccessLogs *bool `json:"logAlbAccessLogs"` // Custom properties for a new Private Hosted Zone. // // Cannot be specified for a // public API. Cannot specify a VPC PrivateHostedZoneProps interface{} `json:"privateHostedZoneProps"` // Custom properties for a new VPC. // // Providing both this and existingVpc is // an error. If an existingAlb or existing Private Hosted Zone is provided, those // already exist in a VPC so this value cannot be provided. VpcProps *awsec2.VpcProps `json:"vpcProps"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.