Class BaseLoadBalancer
- All Implemented Interfaces:
IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
ApplicationLoadBalancer,NetworkLoadBalancer
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseLoadBalancer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBaseLoadBalancer(software.amazon.jsii.JsiiObjectRef objRef) protectedBaseLoadBalancer(software.constructs.Construct scope, String id, BaseLoadBalancerProps baseProps, Object additionalProps) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.getVpc()The VPC this load balancer has been created in.voidlogAccessLogs(IBucket bucket) Enable access logging for this load balancer.voidlogAccessLogs(IBucket bucket, String prefix) Enable access logging for this load balancer.voidremoveAttribute(String key) Remove an attribute from the load balancer.protected IPrincipalvoidsetAttribute(String key) Set a non-standard attribute on the load balancer.voidsetAttribute(String key, String value) Set a non-standard attribute on the load balancer.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
BaseLoadBalancer
protected BaseLoadBalancer(software.amazon.jsii.JsiiObjectRef objRef) -
BaseLoadBalancer
protected BaseLoadBalancer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BaseLoadBalancer
@Stability(Stable) protected BaseLoadBalancer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull BaseLoadBalancerProps baseProps, @NotNull Object additionalProps) - Parameters:
scope- This parameter is required.id- This parameter is required.baseProps- This parameter is required.additionalProps- This parameter is required.
-
-
Method Details
-
logAccessLogs
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
- Parameters:
bucket- This parameter is required.prefix-
-
logAccessLogs
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
- Parameters:
bucket- This parameter is required.
-
removeAttribute
Remove an attribute from the load balancer.- Parameters:
key- This parameter is required.
-
resourcePolicyPrincipal
-
setAttribute
Set a non-standard attribute on the load balancer.- Parameters:
key- This parameter is required.value-- See Also:
-
setAttribute
Set a non-standard attribute on the load balancer.- Parameters:
key- This parameter is required.- See Also:
-
validateLoadBalancer
-
getLoadBalancerArn
The ARN of this load balancer.Example value:
arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-internal-load-balancer/50dc6c495c0c9188 -
getLoadBalancerCanonicalHostedZoneId
The canonical hosted zone ID of this load balancer.Example value:
Z2P70J7EXAMPLE -
getLoadBalancerDnsName
The DNS name of this load balancer.Example value:
my-load-balancer-424835706.us-west-2.elb.amazonaws.com -
getLoadBalancerFullName
The full name of this load balancer.Example value:
app/my-load-balancer/50dc6c495c0c9188 -
getLoadBalancerName
The name of this load balancer.Example value:
my-load-balancer -
getLoadBalancerSecurityGroups
-
getVpc
The VPC this load balancer has been created in.This property is always defined (not
nullorundefined) for sub-classes ofBaseLoadBalancer.
-