Package com.pulumi.aws.vpclattice
Class TargetGroupAttachment
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.vpclattice.TargetGroupAttachment
-
public class TargetGroupAttachment extends com.pulumi.resources.CustomResourceProvides the ability to register a target with an AWS VPC Lattice Target Group. ## Example Usage ### Basic Usagepackage generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.vpclattice.TargetGroupAttachment; import com.pulumi.aws.vpclattice.TargetGroupAttachmentArgs; import com.pulumi.aws.vpclattice.inputs.TargetGroupAttachmentTargetArgs; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var example = new TargetGroupAttachment("example", TargetGroupAttachmentArgs.builder() .target(TargetGroupAttachmentTargetArgs.builder() .id(exampleAwsLb.arn()) .port(80) .build()) .targetGroupIdentifier(exampleAwsVpclatticeTargetGroup.id()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description TargetGroupAttachment(java.lang.String name)TargetGroupAttachment(java.lang.String name, TargetGroupAttachmentArgs args)TargetGroupAttachment(java.lang.String name, TargetGroupAttachmentArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetGroupAttachmentget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TargetGroupAttachmentState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<TargetGroupAttachmentTarget>target()com.pulumi.core.Output<java.lang.String>targetGroupIdentifier()
-
-
-
Constructor Detail
-
TargetGroupAttachment
public TargetGroupAttachment(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
TargetGroupAttachment
public TargetGroupAttachment(java.lang.String name, TargetGroupAttachmentArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
TargetGroupAttachment
public TargetGroupAttachment(java.lang.String name, TargetGroupAttachmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
target
public com.pulumi.core.Output<TargetGroupAttachmentTarget> target()
- Returns:
- Target to register with the target group. See `target` Block for details.
-
targetGroupIdentifier
public com.pulumi.core.Output<java.lang.String> targetGroupIdentifier()
- Returns:
- ID or ARN of the target group.
-
get
public static TargetGroupAttachment get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable TargetGroupAttachmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-