We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
aws-native.elasticloadbalancingv2.getTargetGroup
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
Resource Type definition for AWS::ElasticLoadBalancingV2::TargetGroup
Using getTargetGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTargetGroup(args: GetTargetGroupArgs, opts?: InvokeOptions): Promise<GetTargetGroupResult>
function getTargetGroupOutput(args: GetTargetGroupOutputArgs, opts?: InvokeOptions): Output<GetTargetGroupResult>
def get_target_group(target_group_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTargetGroupResult
def get_target_group_output(target_group_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTargetGroupResult]
func LookupTargetGroup(ctx *Context, args *LookupTargetGroupArgs, opts ...InvokeOption) (*LookupTargetGroupResult, error)
func LookupTargetGroupOutput(ctx *Context, args *LookupTargetGroupOutputArgs, opts ...InvokeOption) LookupTargetGroupResultOutput
> Note: This function is named LookupTargetGroup
in the Go SDK.
public static class GetTargetGroup
{
public static Task<GetTargetGroupResult> InvokeAsync(GetTargetGroupArgs args, InvokeOptions? opts = null)
public static Output<GetTargetGroupResult> Invoke(GetTargetGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTargetGroupResult> getTargetGroup(GetTargetGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:elasticloadbalancingv2:getTargetGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Target
Group stringArn - The ARN of the Target Group
- Target
Group stringArn - The ARN of the Target Group
- target
Group StringArn - The ARN of the Target Group
- target
Group stringArn - The ARN of the Target Group
- target_
group_ strarn - The ARN of the Target Group
- target
Group StringArn - The ARN of the Target Group
getTargetGroup Result
The following output properties are available:
- Health
Check boolEnabled - Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and cannot be disabled.
- Health
Check intInterval Seconds - The approximate amount of time, in seconds, between health checks of an individual target.
- Health
Check stringPath - [HTTP/HTTPS health checks] The destination for health checks on the targets. [HTTP1 or HTTP2 protocol version] The ping path. The default is /. [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /AWS.ALB/healthcheck.
- Health
Check stringPort - The port the load balancer uses when performing health checks on targets.
- Health
Check stringProtocol - The protocol the load balancer uses when performing health checks on targets.
- Health
Check intTimeout Seconds - The amount of time, in seconds, during which no response from a target means a failed health check.
- Healthy
Threshold intCount - The number of consecutive health checks successes required before considering an unhealthy target healthy.
- Load
Balancer List<string>Arns - The Amazon Resource Names (ARNs) of the load balancers that route traffic to this target group.
- Matcher
Pulumi.
Aws Native. Elastic Load Balancing V2. Outputs. Target Group Matcher - [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
- List<Pulumi.
Aws Native. Outputs. Tag> - The tags.
- Target
Group stringArn - The ARN of the Target Group
- Target
Group List<Pulumi.Attributes Aws Native. Elastic Load Balancing V2. Outputs. Target Group Attribute> - The attributes.
- Target
Group stringFull Name - The full name of the target group.
- Target
Group stringName - The name of the target group.
- Targets
List<Pulumi.
Aws Native. Elastic Load Balancing V2. Outputs. Target Group Target Description> - The targets.
- Unhealthy
Threshold intCount - The number of consecutive health check failures required before considering a target unhealthy.
- Health
Check boolEnabled - Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and cannot be disabled.
- Health
Check intInterval Seconds - The approximate amount of time, in seconds, between health checks of an individual target.
- Health
Check stringPath - [HTTP/HTTPS health checks] The destination for health checks on the targets. [HTTP1 or HTTP2 protocol version] The ping path. The default is /. [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /AWS.ALB/healthcheck.
- Health
Check stringPort - The port the load balancer uses when performing health checks on targets.
- Health
Check stringProtocol - The protocol the load balancer uses when performing health checks on targets.
- Health
Check intTimeout Seconds - The amount of time, in seconds, during which no response from a target means a failed health check.
- Healthy
Threshold intCount - The number of consecutive health checks successes required before considering an unhealthy target healthy.
- Load
Balancer []stringArns - The Amazon Resource Names (ARNs) of the load balancers that route traffic to this target group.
- Matcher
Target
Group Matcher - [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
- Tag
- The tags.
- Target
Group stringArn - The ARN of the Target Group
- Target
Group []TargetAttributes Group Attribute - The attributes.
- Target
Group stringFull Name - The full name of the target group.
- Target
Group stringName - The name of the target group.
- Targets
[]Target
Group Target Description - The targets.
- Unhealthy
Threshold intCount - The number of consecutive health check failures required before considering a target unhealthy.
- health
Check BooleanEnabled - Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and cannot be disabled.
- health
Check IntegerInterval Seconds - The approximate amount of time, in seconds, between health checks of an individual target.
- health
Check StringPath - [HTTP/HTTPS health checks] The destination for health checks on the targets. [HTTP1 or HTTP2 protocol version] The ping path. The default is /. [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /AWS.ALB/healthcheck.
- health
Check StringPort - The port the load balancer uses when performing health checks on targets.
- health
Check StringProtocol - The protocol the load balancer uses when performing health checks on targets.
- health
Check IntegerTimeout Seconds - The amount of time, in seconds, during which no response from a target means a failed health check.
- healthy
Threshold IntegerCount - The number of consecutive health checks successes required before considering an unhealthy target healthy.
- load
Balancer List<String>Arns - The Amazon Resource Names (ARNs) of the load balancers that route traffic to this target group.
- matcher
Target
Group Matcher - [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
- List<Tag>
- The tags.
- target
Group StringArn - The ARN of the Target Group
- target
Group List<TargetAttributes Group Attribute> - The attributes.
- target
Group StringFull Name - The full name of the target group.
- target
Group StringName - The name of the target group.
- targets
List<Target
Group Target Description> - The targets.
- unhealthy
Threshold IntegerCount - The number of consecutive health check failures required before considering a target unhealthy.
- health
Check booleanEnabled - Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and cannot be disabled.
- health
Check numberInterval Seconds - The approximate amount of time, in seconds, between health checks of an individual target.
- health
Check stringPath - [HTTP/HTTPS health checks] The destination for health checks on the targets. [HTTP1 or HTTP2 protocol version] The ping path. The default is /. [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /AWS.ALB/healthcheck.
- health
Check stringPort - The port the load balancer uses when performing health checks on targets.
- health
Check stringProtocol - The protocol the load balancer uses when performing health checks on targets.
- health
Check numberTimeout Seconds - The amount of time, in seconds, during which no response from a target means a failed health check.
- healthy
Threshold numberCount - The number of consecutive health checks successes required before considering an unhealthy target healthy.
- load
Balancer string[]Arns - The Amazon Resource Names (ARNs) of the load balancers that route traffic to this target group.
- matcher
Target
Group Matcher - [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
- Tag[]
- The tags.
- target
Group stringArn - The ARN of the Target Group
- target
Group TargetAttributes Group Attribute[] - The attributes.
- target
Group stringFull Name - The full name of the target group.
- target
Group stringName - The name of the target group.
- targets
Target
Group Target Description[] - The targets.
- unhealthy
Threshold numberCount - The number of consecutive health check failures required before considering a target unhealthy.
- health_
check_ boolenabled - Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and cannot be disabled.
- health_
check_ intinterval_ seconds - The approximate amount of time, in seconds, between health checks of an individual target.
- health_
check_ strpath - [HTTP/HTTPS health checks] The destination for health checks on the targets. [HTTP1 or HTTP2 protocol version] The ping path. The default is /. [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /AWS.ALB/healthcheck.
- health_
check_ strport - The port the load balancer uses when performing health checks on targets.
- health_
check_ strprotocol - The protocol the load balancer uses when performing health checks on targets.
- health_
check_ inttimeout_ seconds - The amount of time, in seconds, during which no response from a target means a failed health check.
- healthy_
threshold_ intcount - The number of consecutive health checks successes required before considering an unhealthy target healthy.
- load_
balancer_ Sequence[str]arns - The Amazon Resource Names (ARNs) of the load balancers that route traffic to this target group.
- matcher
Target
Group Matcher - [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
- Sequence[root_Tag]
- The tags.
- target_
group_ strarn - The ARN of the Target Group
- target_
group_ Sequence[Targetattributes Group Attribute] - The attributes.
- target_
group_ strfull_ name - The full name of the target group.
- target_
group_ strname - The name of the target group.
- targets
Sequence[Target
Group Target Description] - The targets.
- unhealthy_
threshold_ intcount - The number of consecutive health check failures required before considering a target unhealthy.
- health
Check BooleanEnabled - Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and cannot be disabled.
- health
Check NumberInterval Seconds - The approximate amount of time, in seconds, between health checks of an individual target.
- health
Check StringPath - [HTTP/HTTPS health checks] The destination for health checks on the targets. [HTTP1 or HTTP2 protocol version] The ping path. The default is /. [GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /AWS.ALB/healthcheck.
- health
Check StringPort - The port the load balancer uses when performing health checks on targets.
- health
Check StringProtocol - The protocol the load balancer uses when performing health checks on targets.
- health
Check NumberTimeout Seconds - The amount of time, in seconds, during which no response from a target means a failed health check.
- healthy
Threshold NumberCount - The number of consecutive health checks successes required before considering an unhealthy target healthy.
- load
Balancer List<String>Arns - The Amazon Resource Names (ARNs) of the load balancers that route traffic to this target group.
- matcher Property Map
- [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
- List<Property Map>
- The tags.
- target
Group StringArn - The ARN of the Target Group
- target
Group List<Property Map>Attributes - The attributes.
- target
Group StringFull Name - The full name of the target group.
- target
Group StringName - The name of the target group.
- targets List<Property Map>
- The targets.
- unhealthy
Threshold NumberCount - The number of consecutive health check failures required before considering a target unhealthy.
Supporting Types
Tag
TargetGroupAttribute
TargetGroupMatcher
- Grpc
Code string - You can specify values between 0 and 99. You can specify multiple values, or a range of values. The default value is 12.
- Http
Code string - For Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values or a range of values.
- Grpc
Code string - You can specify values between 0 and 99. You can specify multiple values, or a range of values. The default value is 12.
- Http
Code string - For Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values or a range of values.
- grpc
Code String - You can specify values between 0 and 99. You can specify multiple values, or a range of values. The default value is 12.
- http
Code String - For Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values or a range of values.
- grpc
Code string - You can specify values between 0 and 99. You can specify multiple values, or a range of values. The default value is 12.
- http
Code string - For Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values or a range of values.
- grpc_
code str - You can specify values between 0 and 99. You can specify multiple values, or a range of values. The default value is 12.
- http_
code str - For Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values or a range of values.
- grpc
Code String - You can specify values between 0 and 99. You can specify multiple values, or a range of values. The default value is 12.
- http
Code String - For Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values or a range of values.
TargetGroupTargetDescription
- Id string
- The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.
- Availability
Zone string - An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
- Port int
- The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.
- Id string
- The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.
- Availability
Zone string - An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
- Port int
- The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.
- id String
- The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.
- availability
Zone String - An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
- port Integer
- The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.
- id string
- The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.
- availability
Zone string - An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
- port number
- The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.
- id str
- The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.
- availability_
zone str - An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
- port int
- The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.
- id String
- The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.
- availability
Zone String - An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
- port Number
- The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi