Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi
published on Thursday, Aug 20, 2026 by Pulumi
Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi
published on Thursday, Aug 20, 2026 by Pulumi
Data source for managing an AWS VPC Lattice Listener.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.vpclattice.getListener({});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.get_listener()
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/vpclattice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpclattice.LookupListener(ctx, &vpclattice.LookupListenerArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.VpcLattice.GetListener.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpclattice.VpclatticeFunctions;
import com.pulumi.aws.vpclattice.inputs.GetListenerArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = VpclatticeFunctions.getListener(GetListenerArgs.builder()
.build());
}
}
variables:
example:
fn::invoke:
function: aws:vpclattice:getListener
arguments: {}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_vpclattice_getlistener" "example" {
}
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?: InvokeOutputOptions): Output<GetListenerResult>def get_listener(listener_identifier: Optional[str] = None,
region: Optional[str] = None,
service_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetListenerResult
def get_listener_output(listener_identifier: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
service_identifier: pulumi.Input[Optional[str]] = None,
tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOutputOptions] = 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 Output<GetListenerResult> Invoke(GetListenerInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetListenerResult> getListener(GetListenerArgs args, InvokeOptions options)
public static Output<GetListenerResult> getListener(GetListenerArgs args, InvokeOptions options)
public static Output<GetListenerResult> getListener(GetListenerArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws:vpclattice/getListener:getListener
arguments:
# arguments dictionarydata "aws_vpclattice_get_listener" "name" {
# arguments
}The following arguments are supported:
- Listener
Identifier string - ID or Amazon Resource Name (ARN) of the listener
- Service
Identifier string - ID or Amazon Resource Name (ARN) of the service network
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
- List of tags associated with the listener.
- Listener
Identifier string - ID or Amazon Resource Name (ARN) of the listener
- Service
Identifier string - ID or Amazon Resource Name (ARN) of the service network
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
- List of tags associated with the listener.
- listener_
identifier string - ID or Amazon Resource Name (ARN) of the listener
- service_
identifier string - ID or Amazon Resource Name (ARN) of the service network
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map(string)
- List of tags associated with the listener.
- listener
Identifier String - ID or Amazon Resource Name (ARN) of the listener
- service
Identifier String - ID or Amazon Resource Name (ARN) of the service network
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
- List of tags associated with the listener.
- listener
Identifier string - ID or Amazon Resource Name (ARN) of the listener
- service
Identifier string - ID or Amazon Resource Name (ARN) of the service network
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
- List of tags associated with the listener.
- listener_
identifier str - ID or Amazon Resource Name (ARN) of the listener
- service_
identifier str - ID or Amazon Resource Name (ARN) of the service network
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
- List of tags associated with the listener.
- listener
Identifier String - ID or Amazon Resource Name (ARN) of the listener
- service
Identifier String - ID or Amazon Resource Name (ARN) of the service network
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
- List of tags associated with the listener.
getListener Result
The following output properties are available:
- Arn string
- ARN of the listener.
- Created
At string - Date and time that the listener was created.
- Default
Actions List<GetListener Default Action> - Action for the default listener rule. See
defaultActionBlock below. - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Date and time the listener was last updated.
- Listener
Id string - ID of the listener.
- Listener
Identifier string - Name string
- Name of the listener.
- Port int
- Listener port.
- Protocol string
- Listener protocol. Either
HTTPSorHTTP. - Region string
- Service
Arn string - ARN of the service.
- Service
Id string - ID of the service.
- Service
Identifier string - Dictionary<string, string>
- List of tags associated with the listener.
- Arn string
- ARN of the listener.
- Created
At string - Date and time that the listener was created.
- Default
Actions []GetListener Default Action - Action for the default listener rule. See
defaultActionBlock below. - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Date and time the listener was last updated.
- Listener
Id string - ID of the listener.
- Listener
Identifier string - Name string
- Name of the listener.
- Port int
- Listener port.
- Protocol string
- Listener protocol. Either
HTTPSorHTTP. - Region string
- Service
Arn string - ARN of the service.
- Service
Id string - ID of the service.
- Service
Identifier string - map[string]string
- List of tags associated with the listener.
- arn string
- ARN of the listener.
- created_
at string - Date and time that the listener was created.
- default_
actions list(object) - Action for the default listener rule. See
defaultActionBlock below. - id string
- The provider-assigned unique ID for this managed resource.
- last_
updated_ stringat - Date and time the listener was last updated.
- listener_
id string - ID of the listener.
- listener_
identifier string - name string
- Name of the listener.
- port number
- Listener port.
- protocol string
- Listener protocol. Either
HTTPSorHTTP. - region string
- service_
arn string - ARN of the service.
- service_
id string - ID of the service.
- service_
identifier string - map(string)
- List of tags associated with the listener.
- arn String
- ARN of the listener.
- created
At String - Date and time that the listener was created.
- default
Actions List<GetListener Default Action> - Action for the default listener rule. See
defaultActionBlock below. - id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - Date and time the listener was last updated.
- listener
Id String - ID of the listener.
- listener
Identifier String - name String
- Name of the listener.
- port Integer
- Listener port.
- protocol String
- Listener protocol. Either
HTTPSorHTTP. - region String
- service
Arn String - ARN of the service.
- service
Id String - ID of the service.
- service
Identifier String - Map<String,String>
- List of tags associated with the listener.
- arn string
- ARN of the listener.
- created
At string - Date and time that the listener was created.
- default
Actions GetListener Default Action[] - Action for the default listener rule. See
defaultActionBlock below. - id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringAt - Date and time the listener was last updated.
- listener
Id string - ID of the listener.
- listener
Identifier string - name string
- Name of the listener.
- port number
- Listener port.
- protocol string
- Listener protocol. Either
HTTPSorHTTP. - region string
- service
Arn string - ARN of the service.
- service
Id string - ID of the service.
- service
Identifier string - {[key: string]: string}
- List of tags associated with the listener.
- arn str
- ARN of the listener.
- created_
at str - Date and time that the listener was created.
- default_
actions Sequence[GetListener Default Action] - Action for the default listener rule. See
defaultActionBlock below. - id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strat - Date and time the listener was last updated.
- listener_
id str - ID of the listener.
- listener_
identifier str - name str
- Name of the listener.
- port int
- Listener port.
- protocol str
- Listener protocol. Either
HTTPSorHTTP. - region str
- service_
arn str - ARN of the service.
- service_
id str - ID of the service.
- service_
identifier str - Mapping[str, str]
- List of tags associated with the listener.
- arn String
- ARN of the listener.
- created
At String - Date and time that the listener was created.
- default
Actions List<Property Map> - Action for the default listener rule. See
defaultActionBlock below. - id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - Date and time the listener was last updated.
- listener
Id String - ID of the listener.
- listener
Identifier String - name String
- Name of the listener.
- port Number
- Listener port.
- protocol String
- Listener protocol. Either
HTTPSorHTTP. - region String
- service
Arn String - ARN of the service.
- service
Id String - ID of the service.
- service
Identifier String - Map<String>
- List of tags associated with the listener.
Supporting Types
GetListenerDefaultAction
- Fixed
Responses List<GetListener Default Action Fixed Response> - Fixed response action. See
fixedResponseBlock below. - Forwards
List<Get
Listener Default Action Forward> - Forward action. See
forwardBlock below.
- Fixed
Responses []GetListener Default Action Fixed Response - Fixed response action. See
fixedResponseBlock below. - Forwards
[]Get
Listener Default Action Forward - Forward action. See
forwardBlock below.
- fixed_
responses list(object) - Fixed response action. See
fixedResponseBlock below. - forwards list(object)
- Forward action. See
forwardBlock below.
- fixed
Responses List<GetListener Default Action Fixed Response> - Fixed response action. See
fixedResponseBlock below. - forwards
List<Get
Listener Default Action Forward> - Forward action. See
forwardBlock below.
- fixed
Responses GetListener Default Action Fixed Response[] - Fixed response action. See
fixedResponseBlock below. - forwards
Get
Listener Default Action Forward[] - Forward action. See
forwardBlock below.
- fixed_
responses Sequence[GetListener Default Action Fixed Response] - Fixed response action. See
fixedResponseBlock below. - forwards
Sequence[Get
Listener Default Action Forward] - Forward action. See
forwardBlock below.
- fixed
Responses List<Property Map> - Fixed response action. See
fixedResponseBlock below. - forwards List<Property Map>
- Forward action. See
forwardBlock below.
GetListenerDefaultActionFixedResponse
- Status
Code int - Custom HTTP status code to return.
- Status
Code int - Custom HTTP status code to return.
- status_
code number - Custom HTTP status code to return.
- status
Code Integer - Custom HTTP status code to return.
- status
Code number - Custom HTTP status code to return.
- status_
code int - Custom HTTP status code to return.
- status
Code Number - Custom HTTP status code to return.
GetListenerDefaultActionForward
- Target
Groups List<GetListener Default Action Forward Target Group> - Target groups that the listener forwards traffic to. See
targetGroupsBlock below.
- Target
Groups []GetListener Default Action Forward Target Group - Target groups that the listener forwards traffic to. See
targetGroupsBlock below.
- target_
groups list(object) - Target groups that the listener forwards traffic to. See
targetGroupsBlock below.
- target
Groups List<GetListener Default Action Forward Target Group> - Target groups that the listener forwards traffic to. See
targetGroupsBlock below.
- target
Groups GetListener Default Action Forward Target Group[] - Target groups that the listener forwards traffic to. See
targetGroupsBlock below.
- target_
groups Sequence[GetListener Default Action Forward Target Group] - Target groups that the listener forwards traffic to. See
targetGroupsBlock below.
- target
Groups List<Property Map> - Target groups that the listener forwards traffic to. See
targetGroupsBlock below.
GetListenerDefaultActionForwardTargetGroup
- Target
Group stringIdentifier - ID or ARN of the target group.
- Weight int
- Weight assigned to the target group that determines the proportion of traffic it receives.
- Target
Group stringIdentifier - ID or ARN of the target group.
- Weight int
- Weight assigned to the target group that determines the proportion of traffic it receives.
- target_
group_ stringidentifier - ID or ARN of the target group.
- weight number
- Weight assigned to the target group that determines the proportion of traffic it receives.
- target
Group StringIdentifier - ID or ARN of the target group.
- weight Integer
- Weight assigned to the target group that determines the proportion of traffic it receives.
- target
Group stringIdentifier - ID or ARN of the target group.
- weight number
- Weight assigned to the target group that determines the proportion of traffic it receives.
- target_
group_ stridentifier - ID or ARN of the target group.
- weight int
- Weight assigned to the target group that determines the proportion of traffic it receives.
- target
Group StringIdentifier - ID or ARN of the target group.
- weight Number
- Weight assigned to the target group that determines the proportion of traffic it receives.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi
published on Thursday, Aug 20, 2026 by Pulumi