AWS Native is in preview. AWS Classic is fully supported.
aws-native.vpclattice.TargetGroup
Explore with Pulumi AI
AWS Native is in preview. AWS Classic is fully supported.
A target group is a collection of targets, or compute resources, that run your application or service. A target group can only be used by a single service.
Create TargetGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TargetGroup(name: string, args: TargetGroupArgs, opts?: CustomResourceOptions);
@overload
def TargetGroup(resource_name: str,
args: TargetGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TargetGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[TargetGroupType] = None,
config: Optional[TargetGroupConfigArgs] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
targets: Optional[Sequence[TargetGroupTargetArgs]] = None)
func NewTargetGroup(ctx *Context, name string, args TargetGroupArgs, opts ...ResourceOption) (*TargetGroup, error)
public TargetGroup(string name, TargetGroupArgs args, CustomResourceOptions? opts = null)
public TargetGroup(String name, TargetGroupArgs args)
public TargetGroup(String name, TargetGroupArgs args, CustomResourceOptions options)
type: aws-native:vpclattice:TargetGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TargetGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TargetGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TargetGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Example
The following reference example uses placeholder values for all input properties.
Coming soon!
Coming soon!
Coming soon!
Coming soon!
const aws_nativeTargetGroupResource = new aws_native.vpclattice.TargetGroup("aws-nativeTargetGroupResource", {
type: aws_native.vpclattice.TargetGroupType.Ip,
config: {
healthCheck: {
enabled: false,
healthCheckIntervalSeconds: 0,
healthCheckTimeoutSeconds: 0,
healthyThresholdCount: 0,
matcher: {
httpCode: "string",
},
path: "string",
port: 0,
protocol: aws_native.vpclattice.TargetGroupHealthCheckConfigProtocol.Http,
protocolVersion: aws_native.vpclattice.TargetGroupHealthCheckConfigProtocolVersion.Http1,
unhealthyThresholdCount: 0,
},
ipAddressType: aws_native.vpclattice.TargetGroupConfigIpAddressType.Ipv4,
lambdaEventStructureVersion: aws_native.vpclattice.TargetGroupConfigLambdaEventStructureVersion.V1,
port: 0,
protocol: aws_native.vpclattice.TargetGroupConfigProtocol.Http,
protocolVersion: aws_native.vpclattice.TargetGroupConfigProtocolVersion.Http1,
vpcIdentifier: "string",
},
name: "string",
tags: [{
key: "string",
value: "string",
}],
targets: [{
id: "string",
port: 0,
}],
});
Coming soon!
TargetGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TargetGroup resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetGroup resource produces the following output properties:
- Arn string
- Aws
Id string - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Status
Pulumi.
Aws Native. Vpc Lattice. Target Group Status
- Arn string
- Aws
Id string - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Status
Target
Group Status
- arn String
- aws
Id String - created
At String - id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - status
Target
Group Status
- arn string
- aws
Id string - created
At string - id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringAt - status
Target
Group Status
- arn str
- aws_
id str - created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strat - status
Target
Group Status
- arn String
- aws
Id String - created
At String - id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - status "CREATE_IN_PROGRESS" | "ACTIVE" | "DELETE_IN_PROGRESS" | "CREATE_FAILED" | "DELETE_FAILED"
Supporting Types
Tag, TagArgs
TargetGroupConfig, TargetGroupConfigArgs
- Health
Check Pulumi.Aws Native. Vpc Lattice. Inputs. Target Group Health Check Config - Ip
Address Pulumi.Type Aws Native. Vpc Lattice. Target Group Config Ip Address Type - Lambda
Event Pulumi.Structure Version Aws Native. Vpc Lattice. Target Group Config Lambda Event Structure Version - Port int
- Protocol
Pulumi.
Aws Native. Vpc Lattice. Target Group Config Protocol - Protocol
Version Pulumi.Aws Native. Vpc Lattice. Target Group Config Protocol Version - Vpc
Identifier string
TargetGroupConfigIpAddressType, TargetGroupConfigIpAddressTypeArgs
- Ipv4
- IPV4
- Ipv6
- IPV6
- Target
Group Config Ip Address Type Ipv4 - IPV4
- Target
Group Config Ip Address Type Ipv6 - IPV6
- Ipv4
- IPV4
- Ipv6
- IPV6
- Ipv4
- IPV4
- Ipv6
- IPV6
- IPV4
- IPV4
- IPV6
- IPV6
- "IPV4"
- IPV4
- "IPV6"
- IPV6
TargetGroupConfigLambdaEventStructureVersion, TargetGroupConfigLambdaEventStructureVersionArgs
- V1
- V1
- V2
- V2
- Target
Group Config Lambda Event Structure Version V1 - V1
- Target
Group Config Lambda Event Structure Version V2 - V2
- V1
- V1
- V2
- V2
- V1
- V1
- V2
- V2
- V1
- V1
- V2
- V2
- "V1"
- V1
- "V2"
- V2
TargetGroupConfigProtocol, TargetGroupConfigProtocolArgs
- Http
- HTTP
- Https
- HTTPS
- Target
Group Config Protocol Http - HTTP
- Target
Group Config Protocol Https - HTTPS
- Http
- HTTP
- Https
- HTTPS
- Http
- HTTP
- Https
- HTTPS
- HTTP
- HTTP
- HTTPS
- HTTPS
- "HTTP"
- HTTP
- "HTTPS"
- HTTPS
TargetGroupConfigProtocolVersion, TargetGroupConfigProtocolVersionArgs
- Http1
- HTTP1
- Http2
- HTTP2
- Grpc
- GRPC
- Target
Group Config Protocol Version Http1 - HTTP1
- Target
Group Config Protocol Version Http2 - HTTP2
- Target
Group Config Protocol Version Grpc - GRPC
- Http1
- HTTP1
- Http2
- HTTP2
- Grpc
- GRPC
- Http1
- HTTP1
- Http2
- HTTP2
- Grpc
- GRPC
- HTTP1
- HTTP1
- HTTP2
- HTTP2
- GRPC
- GRPC
- "HTTP1"
- HTTP1
- "HTTP2"
- HTTP2
- "GRPC"
- GRPC
TargetGroupHealthCheckConfig, TargetGroupHealthCheckConfigArgs
- Enabled bool
- Health
Check intInterval Seconds - Health
Check intTimeout Seconds - Healthy
Threshold intCount - Matcher
Pulumi.
Aws Native. Vpc Lattice. Inputs. Target Group Matcher - Path string
- Port int
- Protocol
Pulumi.
Aws Native. Vpc Lattice. Target Group Health Check Config Protocol - Protocol
Version Pulumi.Aws Native. Vpc Lattice. Target Group Health Check Config Protocol Version - Unhealthy
Threshold intCount
- enabled Boolean
- health
Check NumberInterval Seconds - health
Check NumberTimeout Seconds - healthy
Threshold NumberCount - matcher Property Map
- path String
- port Number
- protocol "HTTP" | "HTTPS"
- protocol
Version "HTTP1" | "HTTP2" | "GRPC" - unhealthy
Threshold NumberCount
TargetGroupHealthCheckConfigProtocol, TargetGroupHealthCheckConfigProtocolArgs
- Http
- HTTP
- Https
- HTTPS
- Target
Group Health Check Config Protocol Http - HTTP
- Target
Group Health Check Config Protocol Https - HTTPS
- Http
- HTTP
- Https
- HTTPS
- Http
- HTTP
- Https
- HTTPS
- HTTP
- HTTP
- HTTPS
- HTTPS
- "HTTP"
- HTTP
- "HTTPS"
- HTTPS
TargetGroupHealthCheckConfigProtocolVersion, TargetGroupHealthCheckConfigProtocolVersionArgs
- Http1
- HTTP1
- Http2
- HTTP2
- Grpc
- GRPC
- Target
Group Health Check Config Protocol Version Http1 - HTTP1
- Target
Group Health Check Config Protocol Version Http2 - HTTP2
- Target
Group Health Check Config Protocol Version Grpc - GRPC
- Http1
- HTTP1
- Http2
- HTTP2
- Grpc
- GRPC
- Http1
- HTTP1
- Http2
- HTTP2
- Grpc
- GRPC
- HTTP1
- HTTP1
- HTTP2
- HTTP2
- GRPC
- GRPC
- "HTTP1"
- HTTP1
- "HTTP2"
- HTTP2
- "GRPC"
- GRPC
TargetGroupMatcher, TargetGroupMatcherArgs
- Http
Code string
- Http
Code string
- http
Code String
- http
Code string
- http_
code str
- http
Code String
TargetGroupStatus, TargetGroupStatusArgs
- Create
In Progress - CREATE_IN_PROGRESS
- Active
- ACTIVE
- Delete
In Progress - DELETE_IN_PROGRESS
- Create
Failed - CREATE_FAILED
- Delete
Failed - DELETE_FAILED
- Target
Group Status Create In Progress - CREATE_IN_PROGRESS
- Target
Group Status Active - ACTIVE
- Target
Group Status Delete In Progress - DELETE_IN_PROGRESS
- Target
Group Status Create Failed - CREATE_FAILED
- Target
Group Status Delete Failed - DELETE_FAILED
- Create
In Progress - CREATE_IN_PROGRESS
- Active
- ACTIVE
- Delete
In Progress - DELETE_IN_PROGRESS
- Create
Failed - CREATE_FAILED
- Delete
Failed - DELETE_FAILED
- Create
In Progress - CREATE_IN_PROGRESS
- Active
- ACTIVE
- Delete
In Progress - DELETE_IN_PROGRESS
- Create
Failed - CREATE_FAILED
- Delete
Failed - DELETE_FAILED
- CREATE_IN_PROGRESS
- CREATE_IN_PROGRESS
- ACTIVE
- ACTIVE
- DELETE_IN_PROGRESS
- DELETE_IN_PROGRESS
- CREATE_FAILED
- CREATE_FAILED
- DELETE_FAILED
- DELETE_FAILED
- "CREATE_IN_PROGRESS"
- CREATE_IN_PROGRESS
- "ACTIVE"
- ACTIVE
- "DELETE_IN_PROGRESS"
- DELETE_IN_PROGRESS
- "CREATE_FAILED"
- CREATE_FAILED
- "DELETE_FAILED"
- DELETE_FAILED
TargetGroupTarget, TargetGroupTargetArgs
TargetGroupType, TargetGroupTypeArgs
- Ip
- IP
- Lambda
- LAMBDA
- Instance
- INSTANCE
- Alb
- ALB
- Target
Group Type Ip - IP
- Target
Group Type Lambda - LAMBDA
- Target
Group Type Instance - INSTANCE
- Target
Group Type Alb - ALB
- Ip
- IP
- Lambda
- LAMBDA
- Instance
- INSTANCE
- Alb
- ALB
- Ip
- IP
- Lambda
- LAMBDA
- Instance
- INSTANCE
- Alb
- ALB
- IP
- IP
- LAMBDA_
- LAMBDA
- INSTANCE
- INSTANCE
- ALB
- ALB
- "IP"
- IP
- "LAMBDA"
- LAMBDA
- "INSTANCE"
- INSTANCE
- "ALB"
- ALB
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
AWS Native is in preview. AWS Classic is fully supported.