Base class for both Application and Network Load Balancers.
new BaseLoadBalancer(scope: Construct, id: string, baseProps: BaseLoadBalancerProps, additionalProps: any)
|env||The environment this resource belongs to.|
|load||The ARN of this load balancer.|
|load||The canonical hosted zone ID of this load balancer.|
|load||The DNS name of this load balancer.|
|load||The full name of this load balancer.|
|load||The name of this load balancer.|
|node||The construct tree node associated with this construct.|
|stack||The stack in which this resource is defined.|
|vpc||The VPC this load balancer has been created in.|
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
The ARN of this load balancer.
The canonical hosted zone ID of this load balancer.
The DNS name of this load balancer.
The full name of this load balancer.
The name of this load balancer.
The construct tree node associated with this construct.
The stack in which this resource is defined.
The VPC this load balancer has been created in.
|log||Enable access logging for this load balancer.|
|remove||Remove an attribute from the load balancer.|
|set||Set a non-standard attribute on the load balancer.|
|to||Returns a string representation of this construct.|
Access Logs(bucket, prefix?)
public logAccessLogs(bucket: IBucket, prefix?: string): void
Enable access logging for this load balancer.
A region must be specified on the stack containing the load balancer; you cannot enable logging on environment-agnostic stacks. See https://docs.aws.amazon.com/cdk/latest/guide/environments.html
public removeAttribute(key: string): void
Remove an attribute from the load balancer.
public setAttribute(key: string, value?: string): void
Set a non-standard attribute on the load balancer.
public toString(): string
Returns a string representation of this construct.