Skip to main content

@swamp/aws/elasticloadbalancingv2

v2026.04.23.3

AWS ELASTICLOADBALANCINGV2 infrastructure models

Repository

https://github.com/systeminit/swamp-extensions

Labels

awselasticloadbalancingv2cloudinfrastructure

Contents

Quality score

Verified by Swamp

How well-documented and verifiable this extension is.

100%

Grade A

  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Has description1/1earned
  • At least one platform tag (or universal)1/1earned
  • Two or more platform tags (or universal)1/1earned
  • License declared1/1earned
  • Verified public repository2/2earned

Install

$ swamp extension pull @swamp/aws/elasticloadbalancingv2

@swamp/aws/elasticloadbalancingv2/listenerv2026.04.23.2listener.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
MutualAuthentication?objectThe mutual authentication configuration information.
ListenerAttributes?arrayThe listener attributes. Attributes that you do not modify retain their current values.
AlpnPolicy?array[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.
SslPolicy?string[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported. For more information, see [Security policies](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/describe-ssl-policies.html) in the *Application Load Balancers Guide* and [Security policies](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/describe-ssl-policies.html) in the *Network Load Balancers Guide*. [HTTPS listeners] Updating the security policy can result i
LoadBalancerArnstringThe Amazon Resource Name (ARN) of the load balancer.
DefaultActionsarrayThe actions for the default rule. You cannot define a condition for a default rule. To create additional rules for an Application Load Balancer, use [AWS::ElasticLoadBalancingV2::ListenerRule](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenerrule.html).
Port?numberThe port on which the load balancer is listening. You can't specify a port for a Gateway Load Balancer.
Certificates?arrayThe default SSL server certificate for a secure listener. You must provide exactly one certificate if the listener protocol is HTTPS or TLS. For an HTTPS listener, update requires some interruptions. For a TLS listener, update requires no interruption. To create a certificate list for a secure listener, use [AWS::ElasticLoadBalancingV2::ListenerCertificate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-listenercertificate.html).
Protocol?stringThe protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, TCP_UDP, QUIC, and TCP_QUIC. You can’t specify the UDP, TCP_UDP, QUIC, or TCP_QUIC protocol if dual-stack mode is enabled. You can't specify a protocol for a Gateway Load Balancer.
createCreate a ElasticLoadBalancingV2 Listener
getGet a ElasticLoadBalancingV2 Listener
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 Listener
updateUpdate a ElasticLoadBalancingV2 Listener
deleteDelete a ElasticLoadBalancingV2 Listener
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 Listener
syncSync ElasticLoadBalancingV2 Listener state from AWS

Resources

state(infinite)— ElasticLoadBalancingV2 Listener resource state
@swamp/aws/elasticloadbalancingv2/listener-rulev2026.04.23.2listener_rule.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
ListenerArn?stringThe Amazon Resource Name (ARN) of the listener.
ActionsarrayThe actions. The rule must include exactly one of the following types of actions: forward, fixed-response, or redirect, and it must be the last action to be performed. If the rule is for an HTTPS listener, it can also optionally include an authentication action.
PrioritynumberThe rule priority. A listener can't have multiple rules with the same priority. If you try to reorder rules by updating their priorities, do not specify a new priority if an existing rule already uses this priority, as this can cause an error. If you need to reuse a priority with a different rule, you must remove it as a priority first, and then specify it in a subsequent update.
ConditionsarrayThe conditions. The rule can optionally include up to one of each of the following conditions: http-request-method, host-header, path-pattern, and source-ip. A rule can also optionally include one or more of each of the following conditions: http-header and query-string.
Transforms?array
createCreate a ElasticLoadBalancingV2 ListenerRule
getGet a ElasticLoadBalancingV2 ListenerRule
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 ListenerRule
updateUpdate a ElasticLoadBalancingV2 ListenerRule
deleteDelete a ElasticLoadBalancingV2 ListenerRule
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 ListenerRule
syncSync ElasticLoadBalancingV2 ListenerRule state from AWS

Resources

state(infinite)— ElasticLoadBalancingV2 ListenerRule resource state
@swamp/aws/elasticloadbalancingv2/load-balancerv2026.04.23.2load_balancer.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
IpAddressType?stringThe IP address type. Internal load balancers must use ipv4. [Application Load Balancers] The possible values are ipv4 (IPv4 addresses), dualstack (IPv4 and IPv6 addresses), and dualstack-without-public-ipv4 (public IPv6 addresses and private IPv4 and IPv6 addresses). Application Load Balancer authentication supports IPv4 addresses only when connecting to an Identity Provider (IdP) or Amazon Cognito endpoint. Without a public IPv4 address the load balancer can't complete the authentication proces
EnablePrefixForIpv6SourceNat?string[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must be dualstack. The default value is off.
SecurityGroups?array[Application Load Balancers and Network Load Balancers] The IDs of the security groups for the load balancer.
LoadBalancerAttributes?arrayThe load balancer attributes. Attributes that you do not modify retain their current values.
MinimumLoadBalancerCapacity?objectThe minimum capacity for a load balancer.
EnableCapacityReservationProvisionStabilize?booleanIndicates whether to enable stabilization when creating or updating an LCU reservation. This ensures that the final stack status reflects the status of the LCU reservation. The default is false.
Scheme?stringThe nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet. The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route
Name?stringThe name of the load balancer. This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, must not begin or end with a hyphen, and must not begin with "internal-". If you don\
Subnets?arrayThe IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. To specify an Elastic IP address, specify subnet mappings instead of subnets. [Application Load Balancers] You must specify subnets from at least two Availability Zones. [Application Load Balancers on Outposts] You must specify one Outpost subnet. [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. [Network
Type?stringThe type of load balancer. The default is application.
Tags?arrayThe tags to assign to the load balancer.
SubnetMappings?arrayThe IDs of the subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. [Application Load Balancers] You must specify subnets from at least two Availability Zones. You can't specify Elastic IP addresses for your subnets. [Application Load Balancers on Outposts] You must specify one Outpost subnet. [Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones. [Network Load Balancers] You c
EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic?stringIndicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through privatelink. The default is on. You can't configure this property on a Network Load Balancer unless you associated a security group with the load balancer when you created it.
Ipv4IpamPoolId?stringThe ID of the IPv4 IPAM pool.
createCreate a ElasticLoadBalancingV2 LoadBalancer
getGet a ElasticLoadBalancingV2 LoadBalancer
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 LoadBalancer
updateUpdate a ElasticLoadBalancingV2 LoadBalancer
deleteDelete a ElasticLoadBalancingV2 LoadBalancer
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 LoadBalancer
syncSync ElasticLoadBalancingV2 LoadBalancer state from AWS

Resources

state(infinite)— ElasticLoadBalancingV2 LoadBalancer resource state
@swamp/aws/elasticloadbalancingv2/target-groupv2026.04.23.2target_group.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
IpAddressType?stringThe type of IP address used for this target group. The possible values are ipv4 and ipv6.
HealthCheckIntervalSeconds?numberThe approximate amount of time, in seconds, between health checks of an individual target.
Matcher?object[HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target.
HealthCheckPath?string[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.
Port?numberThe port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is GENEVE, the supported port is 6081.
Targets?arrayThe targets.
HealthCheckEnabled?booleanIndicates 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.
ProtocolVersion?string[HTTP/HTTPS protocol] The protocol version. The possible values are GRPC, HTTP1, and HTTP2.
UnhealthyThresholdCount?numberThe number of consecutive health check failures required before considering a target unhealthy.
HealthCheckTimeoutSeconds?numberThe amount of time, in seconds, during which no response from a target means a failed health check.
Name?stringThe name of the target group.
VpcId?stringThe identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not apply.
HealthyThresholdCount?numberThe number of consecutive health checks successes required before considering an unhealthy target healthy.
HealthCheckProtocol?stringThe protocol the load balancer uses when performing health checks on targets.
TargetGroupAttributes?arrayThe attributes.
TargetType?stringThe type of target that you must specify when registering targets with this target group. You can't specify targets for a target group using more than one target type.
HealthCheckPort?stringThe port the load balancer uses when performing health checks on targets.
Protocol?stringThe protocol to use for routing traffic to the targets.
Tags?arrayThe tags.
TargetControlPort?numberThe port that the target control agent uses to communicate the available capacity of targets to the load balancer.
createCreate a ElasticLoadBalancingV2 TargetGroup
getGet a ElasticLoadBalancingV2 TargetGroup
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 TargetGroup
updateUpdate a ElasticLoadBalancingV2 TargetGroup
deleteDelete a ElasticLoadBalancingV2 TargetGroup
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 TargetGroup
syncSync ElasticLoadBalancingV2 TargetGroup state from AWS

Resources

state(infinite)— ElasticLoadBalancingV2 TargetGroup resource state
@swamp/aws/elasticloadbalancingv2/trust-storev2026.04.23.2trust_store.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
Name?stringThe name of the trust store.
CaCertificatesBundleS3Bucket?stringThe name of the S3 bucket to fetch the CA certificate bundle from.
CaCertificatesBundleS3Key?stringThe name of the S3 object to fetch the CA certificate bundle from.
CaCertificatesBundleS3ObjectVersion?stringThe version of the S3 bucket that contains the CA certificate bundle.
Tags?arrayThe tags to assign to the trust store.
createCreate a ElasticLoadBalancingV2 TrustStore
getGet a ElasticLoadBalancingV2 TrustStore
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 TrustStore
updateUpdate a ElasticLoadBalancingV2 TrustStore
deleteDelete a ElasticLoadBalancingV2 TrustStore
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 TrustStore
syncSync ElasticLoadBalancingV2 TrustStore state from AWS

Resources

state(infinite)— ElasticLoadBalancingV2 TrustStore resource state
@swamp/aws/elasticloadbalancingv2/trust-store-revocationv2026.04.23.2trust_store_revocation.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
RevocationContents?arrayThe attributes required to create a trust store revocation.
TrustStoreArn?stringThe Amazon Resource Name (ARN) of the trust store.
createCreate a ElasticLoadBalancingV2 TrustStoreRevocation
getGet a ElasticLoadBalancingV2 TrustStoreRevocation
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 TrustStoreRevocation
deleteDelete a ElasticLoadBalancingV2 TrustStoreRevocation
ArgumentTypeDescription
identifierstringThe primary identifier of the ElasticLoadBalancingV2 TrustStoreRevocation
syncSync ElasticLoadBalancingV2 TrustStoreRevocation state from AWS

Resources

state(infinite)— ElasticLoadBalancingV2 TrustStoreRevocation resource state