1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. globalaccelerator
  5. getListener

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.globalaccelerator.getListener

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    Resource Type definition for AWS::GlobalAccelerator::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:globalaccelerator:getListener
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ListenerArn string
    The Amazon Resource Name (ARN) of the listener.
    ListenerArn string
    The Amazon Resource Name (ARN) of the listener.
    listenerArn String
    The Amazon Resource Name (ARN) of the listener.
    listenerArn string
    The Amazon Resource Name (ARN) of the listener.
    listener_arn str
    The Amazon Resource Name (ARN) of the listener.
    listenerArn String
    The Amazon Resource Name (ARN) of the listener.

    getListener Result

    The following output properties are available:

    ClientAffinity Pulumi.AwsNative.GlobalAccelerator.ListenerClientAffinity
    Client affinity lets you direct all requests from a user to the same endpoint.
    ListenerArn string
    The Amazon Resource Name (ARN) of the listener.
    PortRanges List<Pulumi.AwsNative.GlobalAccelerator.Outputs.ListenerPortRange>
    The list of port ranges for the connections from clients to the accelerator.
    Protocol Pulumi.AwsNative.GlobalAccelerator.ListenerProtocol
    The protocol for the listener.
    ClientAffinity ListenerClientAffinity
    Client affinity lets you direct all requests from a user to the same endpoint.
    ListenerArn string
    The Amazon Resource Name (ARN) of the listener.
    PortRanges []ListenerPortRange
    The list of port ranges for the connections from clients to the accelerator.
    Protocol ListenerProtocol
    The protocol for the listener.
    clientAffinity ListenerClientAffinity
    Client affinity lets you direct all requests from a user to the same endpoint.
    listenerArn String
    The Amazon Resource Name (ARN) of the listener.
    portRanges List<ListenerPortRange>
    The list of port ranges for the connections from clients to the accelerator.
    protocol ListenerProtocol
    The protocol for the listener.
    clientAffinity ListenerClientAffinity
    Client affinity lets you direct all requests from a user to the same endpoint.
    listenerArn string
    The Amazon Resource Name (ARN) of the listener.
    portRanges ListenerPortRange[]
    The list of port ranges for the connections from clients to the accelerator.
    protocol ListenerProtocol
    The protocol for the listener.
    client_affinity ListenerClientAffinity
    Client affinity lets you direct all requests from a user to the same endpoint.
    listener_arn str
    The Amazon Resource Name (ARN) of the listener.
    port_ranges Sequence[ListenerPortRange]
    The list of port ranges for the connections from clients to the accelerator.
    protocol ListenerProtocol
    The protocol for the listener.
    clientAffinity "NONE" | "SOURCE_IP"
    Client affinity lets you direct all requests from a user to the same endpoint.
    listenerArn String
    The Amazon Resource Name (ARN) of the listener.
    portRanges List<Property Map>
    The list of port ranges for the connections from clients to the accelerator.
    protocol "TCP" | "UDP"
    The protocol for the listener.

    Supporting Types

    ListenerClientAffinity

    ListenerPortRange

    FromPort int
    The first port in the range of ports, inclusive.
    ToPort int
    The last port in the range of ports, inclusive.
    FromPort int
    The first port in the range of ports, inclusive.
    ToPort int
    The last port in the range of ports, inclusive.
    fromPort Integer
    The first port in the range of ports, inclusive.
    toPort Integer
    The last port in the range of ports, inclusive.
    fromPort number
    The first port in the range of ports, inclusive.
    toPort number
    The last port in the range of ports, inclusive.
    from_port int
    The first port in the range of ports, inclusive.
    to_port int
    The last port in the range of ports, inclusive.
    fromPort Number
    The first port in the range of ports, inclusive.
    toPort Number
    The last port in the range of ports, inclusive.

    ListenerProtocol

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi