Skip to main content

AlbListenerSchema

AlbListenerSchema is the schema of the AlbListener resource: a port an Application Load Balancer listens on, and the rules routing each request it receives. Terraform provisions it as aws_lb_listener and aws_lb_listener_rule.

@group

Resources/AlbListener

@overrideProperty

parents - This resource has parents.

@overrideProperty

resourceId - The resource id is of format alb-listener-<alb-name>-<port>

Hierarchy

  • BaseResourceSchema
    • AlbListenerSchema

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; DefaultActions: ({ action: AlbListenerActionFixedResponseActionSchema; actionType: fixed-response } | { action: AlbListenerActionForwardConfigSchema; actionType: forward } | { action: AlbListenerActionRedirectActionSchema; actionType: redirect })[]; Port: number; Protocol: HTTP; rules: { actions: ({ action: AlbListenerActionFixedResponseActionSchema; actionType: fixed-response } | { action: AlbListenerActionForwardConfigSchema; actionType: forward } | { action: AlbListenerActionRedirectActionSchema; actionType: redirect })[]; conditions: ({ condition: AlbListenerRuleHostHeaderConditionSchema; conditionType: host-header } | { condition: AlbListenerRuleHttpHeaderConditionSchema; conditionType: http-header } | { condition: AlbListenerRuleHttpRequestMethodConditionSchema; conditionType: http-request-method } | { condition: AlbListenerRulePathPatternConditionSchema; conditionType: path-pattern } | { condition: AlbListenerRuleQueryStringConditionSchema; conditionType: query-string } | { condition: AlbListenerRuleSourceIpConditionSchema; conditionType: source-ip })[]; Priority: number }[] }

Input properties.

  • properties.awsAccountId - The AWS account ID.
  • properties.awsRegionId - The AWS region ID.
  • properties.DefaultActions - Specify an action to run when none of the conditions are met. See IAlbListenerActionTypes for options.
  • properties.Port - The port on which the listener is listening.
  • properties.Protocol - The protocol to use. Valid values are HTTP.
  • properties.rules - Specify the rules for the listener. A rule must contain conditions as per IAlbListenerRuleTypes, a set of actions to perform if the conditions are met as per IAlbListenerActionTypes, and a priority which determines the order in which the rules are evaluated.

Type declaration

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: { ListenerArn?: string } = { ListenerArn: 'arn:aws:elasticloadbalancing:us-east-1:000000000000:listener/app/mock-alb/0123456789abcdef/0123456789abcdef', }

Saved response.

  • response.ListenerArn - ALB Listener ARN.

Type declaration

  • optionalListenerArn?: 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