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

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi

aws-native.globalaccelerator.getListener

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.100.0 published on Wednesday, Mar 27, 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>
    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
    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>
    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[]
    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]
    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>
    protocol "TCP" | "UDP"
    The protocol for the listener.

    Supporting Types

    ListenerClientAffinity

    ListenerPortRange

    fromPort Integer
    toPort Integer
    fromPort number
    toPort number
    fromPort Number
    toPort Number

    ListenerProtocol

    Package Details

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

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.100.0 published on Wednesday, Mar 27, 2024 by Pulumi