All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.elasticloadbalancingv2.targets.AlbArnTarget Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.elasticloadbalancingv2.targets;

/**
 * A single Application Load Balancer as the target for load balancing.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.elasticloadbalancingv2.targets.*;
 * AlbArnTarget albArnTarget = new AlbArnTarget("albArn", 123);
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.73.0 (build 6faeda3)", date = "2023-01-25T18:29:12.771Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.elasticloadbalancingv2.targets.$Module.class, fqn = "@aws-cdk/aws-elasticloadbalancingv2-targets.AlbArnTarget") public class AlbArnTarget extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancerTarget { protected AlbArnTarget(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected AlbArnTarget(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * Create a new alb target. *

* @param albArn The ARN of the application load balancer to load balance to. This parameter is required. * @param port The port on which the target is listening. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public AlbArnTarget(final @org.jetbrains.annotations.NotNull java.lang.String albArn, final @org.jetbrains.annotations.NotNull java.lang.Number port) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(albArn, "albArn is required"), java.util.Objects.requireNonNull(port, "port is required") }); } /** * Register this alb target with a load balancer. *

* Don't call this, it is called automatically when you add the target to a * load balancer. *

* @param targetGroup This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.elasticloadbalancingv2.LoadBalancerTargetProps attachToNetworkTargetGroup(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.elasticloadbalancingv2.INetworkTargetGroup targetGroup) { return software.amazon.jsii.Kernel.call(this, "attachToNetworkTargetGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.elasticloadbalancingv2.LoadBalancerTargetProps.class), new Object[] { java.util.Objects.requireNonNull(targetGroup, "targetGroup is required") }); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy