1. Packages
  2. AWS Native
  3. API Docs
  4. vpclattice
  5. TargetGroup

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

aws-native.vpclattice.TargetGroup

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi

    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
    AwsId string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedAt string
    Status Pulumi.AwsNative.VpcLattice.TargetGroupStatus
    Arn string
    AwsId string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedAt string
    Status TargetGroupStatus
    arn String
    awsId String
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt String
    status TargetGroupStatus
    arn string
    awsId string
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt string
    status TargetGroupStatus
    arn str
    aws_id str
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated_at str
    status TargetGroupStatus
    arn String
    awsId String
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedAt String
    status "CREATE_IN_PROGRESS" | "ACTIVE" | "DELETE_IN_PROGRESS" | "CREATE_FAILED" | "DELETE_FAILED"

    Supporting Types

    Tag, TagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    TargetGroupConfig, TargetGroupConfigArgs

    TargetGroupConfigIpAddressType, TargetGroupConfigIpAddressTypeArgs

    Ipv4
    IPV4
    Ipv6
    IPV6
    TargetGroupConfigIpAddressTypeIpv4
    IPV4
    TargetGroupConfigIpAddressTypeIpv6
    IPV6
    Ipv4
    IPV4
    Ipv6
    IPV6
    Ipv4
    IPV4
    Ipv6
    IPV6
    IPV4
    IPV4
    IPV6
    IPV6
    "IPV4"
    IPV4
    "IPV6"
    IPV6

    TargetGroupConfigLambdaEventStructureVersion, TargetGroupConfigLambdaEventStructureVersionArgs

    V1
    V1
    V2
    V2
    TargetGroupConfigLambdaEventStructureVersionV1
    V1
    TargetGroupConfigLambdaEventStructureVersionV2
    V2
    V1
    V1
    V2
    V2
    V1
    V1
    V2
    V2
    V1
    V1
    V2
    V2
    "V1"
    V1
    "V2"
    V2

    TargetGroupConfigProtocol, TargetGroupConfigProtocolArgs

    Http
    HTTP
    Https
    HTTPS
    TargetGroupConfigProtocolHttp
    HTTP
    TargetGroupConfigProtocolHttps
    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
    TargetGroupConfigProtocolVersionHttp1
    HTTP1
    TargetGroupConfigProtocolVersionHttp2
    HTTP2
    TargetGroupConfigProtocolVersionGrpc
    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

    TargetGroupHealthCheckConfigProtocol, TargetGroupHealthCheckConfigProtocolArgs

    Http
    HTTP
    Https
    HTTPS
    TargetGroupHealthCheckConfigProtocolHttp
    HTTP
    TargetGroupHealthCheckConfigProtocolHttps
    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
    TargetGroupHealthCheckConfigProtocolVersionHttp1
    HTTP1
    TargetGroupHealthCheckConfigProtocolVersionHttp2
    HTTP2
    TargetGroupHealthCheckConfigProtocolVersionGrpc
    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

    HttpCode string
    HttpCode string
    httpCode String
    httpCode string
    httpCode String

    TargetGroupStatus, TargetGroupStatusArgs

    CreateInProgress
    CREATE_IN_PROGRESS
    Active
    ACTIVE
    DeleteInProgress
    DELETE_IN_PROGRESS
    CreateFailed
    CREATE_FAILED
    DeleteFailed
    DELETE_FAILED
    TargetGroupStatusCreateInProgress
    CREATE_IN_PROGRESS
    TargetGroupStatusActive
    ACTIVE
    TargetGroupStatusDeleteInProgress
    DELETE_IN_PROGRESS
    TargetGroupStatusCreateFailed
    CREATE_FAILED
    TargetGroupStatusDeleteFailed
    DELETE_FAILED
    CreateInProgress
    CREATE_IN_PROGRESS
    Active
    ACTIVE
    DeleteInProgress
    DELETE_IN_PROGRESS
    CreateFailed
    CREATE_FAILED
    DeleteFailed
    DELETE_FAILED
    CreateInProgress
    CREATE_IN_PROGRESS
    Active
    ACTIVE
    DeleteInProgress
    DELETE_IN_PROGRESS
    CreateFailed
    CREATE_FAILED
    DeleteFailed
    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

    Id string
    Port int
    Id string
    Port int
    id String
    port Integer
    id string
    port number
    id str
    port int
    id String
    port Number

    TargetGroupType, TargetGroupTypeArgs

    Ip
    IP
    Lambda
    LAMBDA
    Instance
    INSTANCE
    Alb
    ALB
    TargetGroupTypeIp
    IP
    TargetGroupTypeLambda
    LAMBDA
    TargetGroupTypeInstance
    INSTANCE
    TargetGroupTypeAlb
    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 logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.102.0 published on Tuesday, Apr 16, 2024 by Pulumi