1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. globalaccelerator
  6. getCustomRoutingAccelerator
Viewing docs for AWS v7.52.1
published on Wednesday, Oct 28, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.52.1
published on Wednesday, Oct 28, 2026 by Pulumi

    Provides information about a Global Accelerator custom routing accelerator.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const config = new pulumi.Config();
    const acceleratorArn = config.get("acceleratorArn") || "";
    const acceleratorName = config.get("acceleratorName") || "";
    const example = aws.globalaccelerator.getCustomRoutingAccelerator({
        arn: acceleratorArn,
        name: acceleratorName,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    config = pulumi.Config()
    accelerator_arn = config.get("acceleratorArn")
    if accelerator_arn is None:
        accelerator_arn = ""
    accelerator_name = config.get("acceleratorName")
    if accelerator_name is None:
        accelerator_name = ""
    example = aws.globalaccelerator.get_custom_routing_accelerator(arn=accelerator_arn,
        name=accelerator_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/globalaccelerator"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		acceleratorArn := ""
    		if param := cfg.Get("acceleratorArn"); param != "" {
    			acceleratorArn = param
    		}
    		acceleratorName := ""
    		if param := cfg.Get("acceleratorName"); param != "" {
    			acceleratorName = param
    		}
    		_, err := globalaccelerator.LookupCustomRoutingAccelerator(ctx, &globalaccelerator.LookupCustomRoutingAcceleratorArgs{
    			Arn:  pulumi.StringRef(acceleratorArn),
    			Name: pulumi.StringRef(acceleratorName),
    		}, 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 config = new Config();
        var acceleratorArn = config.Get("acceleratorArn") ?? "";
        var acceleratorName = config.Get("acceleratorName") ?? "";
        var example = Aws.GlobalAccelerator.GetCustomRoutingAccelerator.Invoke(new()
        {
            Arn = acceleratorArn,
            Name = acceleratorName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.globalaccelerator.GlobalacceleratorFunctions;
    import com.pulumi.aws.globalaccelerator.inputs.GetCustomRoutingAcceleratorArgs;
    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 config = ctx.config();
            final var acceleratorArn = config.get("acceleratorArn").orElse("");
            final var acceleratorName = config.get("acceleratorName").orElse("");
            final var example = GlobalacceleratorFunctions.getCustomRoutingAccelerator(GetCustomRoutingAcceleratorArgs.builder()
                .arn(acceleratorArn)
                .name(acceleratorName)
                .build());
    
        }
    }
    
    configuration:
      acceleratorArn:
        type: string
        default: ""
      acceleratorName:
        type: string
        default: ""
    variables:
      example:
        fn::invoke:
          function: aws:globalaccelerator:getCustomRoutingAccelerator
          arguments:
            arn: ${acceleratorArn}
            name: ${acceleratorName}
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_globalaccelerator_custom_routing_accelerator" "example" {
      arn  = var.acceleratorArn
      name = var.acceleratorName
    }
    
    variable "acceleratorArn" {
      type    = string
      default = ""
    }
    variable "acceleratorName" {
      type    = string
      default = ""
    }
    

    Using getCustomRoutingAccelerator

    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 getCustomRoutingAccelerator(args: GetCustomRoutingAcceleratorArgs, opts?: InvokeOptions): Promise<GetCustomRoutingAcceleratorResult>
    function getCustomRoutingAcceleratorOutput(args: GetCustomRoutingAcceleratorOutputArgs, opts?: InvokeOutputOptions): Output<GetCustomRoutingAcceleratorResult>
    def get_custom_routing_accelerator(arn: Optional[str] = None,
                                       name: Optional[str] = None,
                                       tags: Optional[Mapping[str, str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetCustomRoutingAcceleratorResult
    def get_custom_routing_accelerator_output(arn: pulumi.Input[Optional[str]] = None,
                                       name: pulumi.Input[Optional[str]] = None,
                                       tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetCustomRoutingAcceleratorResult]
    func LookupCustomRoutingAccelerator(ctx *Context, args *LookupCustomRoutingAcceleratorArgs, opts ...InvokeOption) (*LookupCustomRoutingAcceleratorResult, error)
    func LookupCustomRoutingAcceleratorOutput(ctx *Context, args *LookupCustomRoutingAcceleratorOutputArgs, opts ...InvokeOption) LookupCustomRoutingAcceleratorResultOutput

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

    public static class GetCustomRoutingAccelerator 
    {
        public static Task<GetCustomRoutingAcceleratorResult> InvokeAsync(GetCustomRoutingAcceleratorArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomRoutingAcceleratorResult> Invoke(GetCustomRoutingAcceleratorInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomRoutingAcceleratorResult> Invoke(GetCustomRoutingAcceleratorInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetCustomRoutingAcceleratorResult> getCustomRoutingAccelerator(GetCustomRoutingAcceleratorArgs args, InvokeOptions options)
    public static Output<GetCustomRoutingAcceleratorResult> getCustomRoutingAccelerator(GetCustomRoutingAcceleratorArgs args, InvokeOptions options)
    public static Output<GetCustomRoutingAcceleratorResult> getCustomRoutingAccelerator(GetCustomRoutingAcceleratorArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws:globalaccelerator/getCustomRoutingAccelerator:getCustomRoutingAccelerator
      arguments:
        # arguments dictionary
    data "aws_globalaccelerator_get_custom_routing_accelerator" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    Full ARN of the custom routing accelerator.
    Name string

    Unique name of the custom routing accelerator.

    NOTE: When both arn and name are specified, arn takes precedence.

    Tags Dictionary<string, string>
    Map of tags assigned to the resource.
    Arn string
    Full ARN of the custom routing accelerator.
    Name string

    Unique name of the custom routing accelerator.

    NOTE: When both arn and name are specified, arn takes precedence.

    Tags map[string]string
    Map of tags assigned to the resource.
    arn string
    Full ARN of the custom routing accelerator.
    name string

    Unique name of the custom routing accelerator.

    NOTE: When both arn and name are specified, arn takes precedence.

    tags map(string)
    Map of tags assigned to the resource.
    arn String
    Full ARN of the custom routing accelerator.
    name String

    Unique name of the custom routing accelerator.

    NOTE: When both arn and name are specified, arn takes precedence.

    tags Map<String,String>
    Map of tags assigned to the resource.
    arn string
    Full ARN of the custom routing accelerator.
    name string

    Unique name of the custom routing accelerator.

    NOTE: When both arn and name are specified, arn takes precedence.

    tags {[key: string]: string}
    Map of tags assigned to the resource.
    arn str
    Full ARN of the custom routing accelerator.
    name str

    Unique name of the custom routing accelerator.

    NOTE: When both arn and name are specified, arn takes precedence.

    tags Mapping[str, str]
    Map of tags assigned to the resource.
    arn String
    Full ARN of the custom routing accelerator.
    name String

    Unique name of the custom routing accelerator.

    NOTE: When both arn and name are specified, arn takes precedence.

    tags Map<String>
    Map of tags assigned to the resource.

    getCustomRoutingAccelerator Result

    The following output properties are available:

    Arn string
    Attributes List<GetCustomRoutingAcceleratorAttribute>
    Attributes of the accelerator. See attributes below.
    DnsName string
    DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com.
    Enabled bool
    Whether the accelerator is enabled.
    HostedZoneId string
    Global Accelerator Route 53 zone ID used to route an Alias Resource Record Set to the accelerator.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddressType string
    Value for the address type.
    IpSets List<GetCustomRoutingAcceleratorIpSet>
    IP address set associated with the accelerator. See ipSets below.
    Name string
    Tags Dictionary<string, string>
    Map of tags assigned to the resource.
    Arn string
    Attributes []GetCustomRoutingAcceleratorAttribute
    Attributes of the accelerator. See attributes below.
    DnsName string
    DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com.
    Enabled bool
    Whether the accelerator is enabled.
    HostedZoneId string
    Global Accelerator Route 53 zone ID used to route an Alias Resource Record Set to the accelerator.
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddressType string
    Value for the address type.
    IpSets []GetCustomRoutingAcceleratorIpSet
    IP address set associated with the accelerator. See ipSets below.
    Name string
    Tags map[string]string
    Map of tags assigned to the resource.
    arn string
    attributes list(object)
    Attributes of the accelerator. See attributes below.
    dns_name string
    DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com.
    enabled bool
    Whether the accelerator is enabled.
    hosted_zone_id string
    Global Accelerator Route 53 zone ID used to route an Alias Resource Record Set to the accelerator.
    id string
    The provider-assigned unique ID for this managed resource.
    ip_address_type string
    Value for the address type.
    ip_sets list(object)
    IP address set associated with the accelerator. See ipSets below.
    name string
    tags map(string)
    Map of tags assigned to the resource.
    arn String
    attributes List<GetCustomRoutingAcceleratorAttribute>
    Attributes of the accelerator. See attributes below.
    dnsName String
    DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com.
    enabled Boolean
    Whether the accelerator is enabled.
    hostedZoneId String
    Global Accelerator Route 53 zone ID used to route an Alias Resource Record Set to the accelerator.
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddressType String
    Value for the address type.
    ipSets List<GetCustomRoutingAcceleratorIpSet>
    IP address set associated with the accelerator. See ipSets below.
    name String
    tags Map<String,String>
    Map of tags assigned to the resource.
    arn string
    attributes GetCustomRoutingAcceleratorAttribute[]
    Attributes of the accelerator. See attributes below.
    dnsName string
    DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com.
    enabled boolean
    Whether the accelerator is enabled.
    hostedZoneId string
    Global Accelerator Route 53 zone ID used to route an Alias Resource Record Set to the accelerator.
    id string
    The provider-assigned unique ID for this managed resource.
    ipAddressType string
    Value for the address type.
    ipSets GetCustomRoutingAcceleratorIpSet[]
    IP address set associated with the accelerator. See ipSets below.
    name string
    tags {[key: string]: string}
    Map of tags assigned to the resource.
    arn str
    attributes Sequence[GetCustomRoutingAcceleratorAttribute]
    Attributes of the accelerator. See attributes below.
    dns_name str
    DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com.
    enabled bool
    Whether the accelerator is enabled.
    hosted_zone_id str
    Global Accelerator Route 53 zone ID used to route an Alias Resource Record Set to the accelerator.
    id str
    The provider-assigned unique ID for this managed resource.
    ip_address_type str
    Value for the address type.
    ip_sets Sequence[GetCustomRoutingAcceleratorIpSet]
    IP address set associated with the accelerator. See ipSets below.
    name str
    tags Mapping[str, str]
    Map of tags assigned to the resource.
    arn String
    attributes List<Property Map>
    Attributes of the accelerator. See attributes below.
    dnsName String
    DNS name of the accelerator. For example, a5d53ff5ee6bca4ce.awsglobalaccelerator.com.
    enabled Boolean
    Whether the accelerator is enabled.
    hostedZoneId String
    Global Accelerator Route 53 zone ID used to route an Alias Resource Record Set to the accelerator.
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddressType String
    Value for the address type.
    ipSets List<Property Map>
    IP address set associated with the accelerator. See ipSets below.
    name String
    tags Map<String>
    Map of tags assigned to the resource.

    Supporting Types

    GetCustomRoutingAcceleratorAttribute

    FlowLogsEnabled bool
    Whether flow logs are enabled.
    FlowLogsS3Bucket string
    Name of the Amazon S3 bucket for the flow logs.
    FlowLogsS3Prefix string
    Prefix for the location in the Amazon S3 bucket for the flow logs.
    FlowLogsEnabled bool
    Whether flow logs are enabled.
    FlowLogsS3Bucket string
    Name of the Amazon S3 bucket for the flow logs.
    FlowLogsS3Prefix string
    Prefix for the location in the Amazon S3 bucket for the flow logs.
    flow_logs_enabled bool
    Whether flow logs are enabled.
    flow_logs_s3_bucket string
    Name of the Amazon S3 bucket for the flow logs.
    flow_logs_s3_prefix string
    Prefix for the location in the Amazon S3 bucket for the flow logs.
    flowLogsEnabled Boolean
    Whether flow logs are enabled.
    flowLogsS3Bucket String
    Name of the Amazon S3 bucket for the flow logs.
    flowLogsS3Prefix String
    Prefix for the location in the Amazon S3 bucket for the flow logs.
    flowLogsEnabled boolean
    Whether flow logs are enabled.
    flowLogsS3Bucket string
    Name of the Amazon S3 bucket for the flow logs.
    flowLogsS3Prefix string
    Prefix for the location in the Amazon S3 bucket for the flow logs.
    flow_logs_enabled bool
    Whether flow logs are enabled.
    flow_logs_s3_bucket str
    Name of the Amazon S3 bucket for the flow logs.
    flow_logs_s3_prefix str
    Prefix for the location in the Amazon S3 bucket for the flow logs.
    flowLogsEnabled Boolean
    Whether flow logs are enabled.
    flowLogsS3Bucket String
    Name of the Amazon S3 bucket for the flow logs.
    flowLogsS3Prefix String
    Prefix for the location in the Amazon S3 bucket for the flow logs.

    GetCustomRoutingAcceleratorIpSet

    IpAddresses List<string>
    List of IP addresses in the IP address set.
    IpFamily string
    Type of IP addresses included in this IP set.
    IpAddresses []string
    List of IP addresses in the IP address set.
    IpFamily string
    Type of IP addresses included in this IP set.
    ip_addresses list(string)
    List of IP addresses in the IP address set.
    ip_family string
    Type of IP addresses included in this IP set.
    ipAddresses List<String>
    List of IP addresses in the IP address set.
    ipFamily String
    Type of IP addresses included in this IP set.
    ipAddresses string[]
    List of IP addresses in the IP address set.
    ipFamily string
    Type of IP addresses included in this IP set.
    ip_addresses Sequence[str]
    List of IP addresses in the IP address set.
    ip_family str
    Type of IP addresses included in this IP set.
    ipAddresses List<String>
    List of IP addresses in the IP address set.
    ipFamily String
    Type of IP addresses included in this IP set.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.52.1
    published on Wednesday, Oct 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial