We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi
aws-native.globalaccelerator.getListener
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 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)
public static Output<GetListenerResult> getListener(GetListenerArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:globalaccelerator:getListener
  arguments:
    # arguments dictionaryThe 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.Aws Native. Global Accelerator. Listener Client Affinity 
- 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.Aws Native. Global Accelerator. Outputs. Listener Port Range> 
- The list of port ranges for the connections from clients to the accelerator.
- Protocol
Pulumi.Aws Native. Global Accelerator. Listener Protocol 
- The protocol for the listener.
- ClientAffinity ListenerClient Affinity 
- 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 []ListenerPort Range 
- The list of port ranges for the connections from clients to the accelerator.
- Protocol
ListenerProtocol 
- The protocol for the listener.
- clientAffinity ListenerClient Affinity 
- 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<ListenerPort Range> 
- The list of port ranges for the connections from clients to the accelerator.
- protocol
ListenerProtocol 
- The protocol for the listener.
- clientAffinity ListenerClient Affinity 
- 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 ListenerPort Range[] 
- The list of port ranges for the connections from clients to the accelerator.
- protocol
ListenerProtocol 
- The protocol for the listener.
- client_affinity ListenerClient Affinity 
- 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[ListenerPort Range] 
- 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  
ListenerProtocol 
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi