AWS Native

v0.43.0 published on Thursday, Dec 1, 2022 by Pulumi

getListener

Resource Type definition for AWS::ElasticLoadBalancingV2::Listener

Using getListener

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getListener(args: GetListenerArgs, opts?: InvokeOptions): Promise<GetListenerResult>
function getListenerOutput(args: GetListenerOutputArgs, opts?: InvokeOptions): Output<GetListenerResult>
def get_listener(listener_arn: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetListenerResult
def get_listener_output(listener_arn: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetListenerResult]
func LookupListener(ctx *Context, args *LookupListenerArgs, opts ...InvokeOption) (*LookupListenerResult, error)
func LookupListenerOutput(ctx *Context, args *LookupListenerOutputArgs, opts ...InvokeOption) LookupListenerResultOutput

> Note: This function is named LookupListener in the Go SDK.

public static class GetListener 
{
    public static Task<GetListenerResult> InvokeAsync(GetListenerArgs args, InvokeOptions? opts = null)
    public static Output<GetListenerResult> Invoke(GetListenerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetListenerResult> getListener(GetListenerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws-native:elasticloadbalancingv2:getListener
  arguments:
    # arguments dictionary

The following arguments are supported:

getListener Result

The following output properties are available:

Supporting Types

ListenerAction

ListenerAuthenticateCognitoConfig

ListenerAuthenticateOidcConfig

ListenerCertificate

ListenerFixedResponseConfig

ListenerForwardConfig

ListenerRedirectConfig

StatusCode string
Host string
Path string
Port string
Protocol string
Query string
StatusCode string
Host string
Path string
Port string
Protocol string
Query string
statusCode String
host String
path String
port String
protocol String
query String
statusCode string
host string
path string
port string
protocol string
query string
status_code str
host str
path str
port str
protocol str
query str
statusCode String
host String
path String
port String
protocol String
query String

ListenerTargetGroupStickinessConfig

durationSeconds Integer
enabled Boolean
durationSeconds number
enabled boolean
durationSeconds Number
enabled Boolean

ListenerTargetGroupTuple

targetGroupArn String
weight Integer
targetGroupArn string
weight number
targetGroupArn String
weight Number

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0