Skip to main content

AlbTargetGroupSchema

AlbTargetGroupSchema is the schema of the AlbTargetGroup resource: the targets an Application Load Balancer forwards requests to, and how it checks they are healthy. Terraform provisions it as aws_lb_target_group.

@group

Resources/AlbTargetGroup

@overrideProperty

parents - This resource has parents.

@overrideProperty

resourceId - The resource id is of format alb-target-group-<execution-id>

Hierarchy

  • BaseResourceSchema
    • AlbTargetGroupSchema

Index

Properties

inheritedlocalResourceId

localResourceId: string

The ID the resource was created with, unique within its scope.

inheritedparents

parents: IResourceReference[]

The resources this one is built on top of.

properties

properties: { awsAccountId: string; awsRegionId: string; healthCheck?: AlbTargetGroupHealthCheckSchema; IpAddressType: ipv4; Name: string; Port: number; Protocol: HTTP; ProtocolVersion: HTTP1; TargetType: ip }

Input properties.

  • properties.awsAccountId - The AWS account id.
  • properties.awsRegionId - The AWS region id.
  • properties.healthCheck - The health check configuration. See AlbTargetGroupHealthCheckSchema for options.
  • properties.IpAddressType - The IP address type. Possible values are ipv4.
  • properties.Name - The name of the target group. The name should be unique across all your target groups since the target groups are referenced in the ALB listener by name.
  • properties.Port - The port of the target group. This port is where the target will receive traffic. If your target has multiple ports, you must create a separate target group for each port.
  • properties.Protocol - The protocol of the target group. Possible values are HTTP.
  • properties.ProtocolVersion - The protocol version of the target group. Possible values are HTTP1.
  • properties.TargetType - The target type of the target group. Possible values are ip.

Type declaration

  • awsAccountId: string
  • awsRegionId: string
  • optionalhealthCheck?: AlbTargetGroupHealthCheckSchema
  • IpAddressType: ipv4
  • Name: string
  • Port: number
  • Protocol: HTTP
  • ProtocolVersion: HTTP1
  • TargetType: ip

inheritedresourceId

resourceId: string

The ID of the resource, unique across the infrastructure: its localResourceId, followed by a hash of its scope when it has one.

response

response: { TargetGroupArn?: string } = { TargetGroupArn: 'arn:aws:elasticloadbalancing:us-east-1:000000000000:targetgroup/mock-tg/0123456789abcdef', }

Saved response.

  • response.TargetGroupArn - The ARN of the target group.

Type declaration

  • optionalTargetGroupArn?: string

inheritedscope

scope: string[]

The contexts of the models the resource is placed under, derived from where the node creating it sits in the model graph. Octo sets it; a resource created outside a model action has none.

inheritedtags

tags: {}

The tags applied to the resource.


Type declaration

  • [key string]: string