Viewing docs for AWS v7.52.1
published on Wednesday, Oct 28, 2026 by Pulumi
published on Wednesday, Oct 28, 2026 by Pulumi
Viewing docs for AWS v7.52.1
published on Wednesday, Oct 28, 2026 by Pulumi
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 dictionarydata "aws_globalaccelerator_get_custom_routing_accelerator" "name" {
# arguments
}The following arguments are supported:
getCustomRoutingAccelerator Result
The following output properties are available:
- Arn string
- Attributes
List<Get
Custom Routing Accelerator Attribute> - Attributes of the accelerator. See
attributesbelow. - Dns
Name string - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - Enabled bool
- Whether the accelerator is enabled.
- Hosted
Zone stringId - 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 stringType - Value for the address type.
- Ip
Sets List<GetCustom Routing Accelerator Ip Set> - IP address set associated with the accelerator. See
ipSetsbelow. - Name string
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Arn string
- Attributes
[]Get
Custom Routing Accelerator Attribute - Attributes of the accelerator. See
attributesbelow. - Dns
Name string - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - Enabled bool
- Whether the accelerator is enabled.
- Hosted
Zone stringId - 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 stringType - Value for the address type.
- Ip
Sets []GetCustom Routing Accelerator Ip Set - IP address set associated with the accelerator. See
ipSetsbelow. - Name string
- map[string]string
- Map of tags assigned to the resource.
- arn string
- attributes list(object)
- Attributes of the accelerator. See
attributesbelow. - dns_
name string - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - enabled bool
- Whether the accelerator is enabled.
- hosted_
zone_ stringid - 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_ stringtype - Value for the address type.
- ip_
sets list(object) - IP address set associated with the accelerator. See
ipSetsbelow. - name string
- map(string)
- Map of tags assigned to the resource.
- arn String
- attributes
List<Get
Custom Routing Accelerator Attribute> - Attributes of the accelerator. See
attributesbelow. - dns
Name String - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - enabled Boolean
- Whether the accelerator is enabled.
- hosted
Zone StringId - 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 StringType - Value for the address type.
- ip
Sets List<GetCustom Routing Accelerator Ip Set> - IP address set associated with the accelerator. See
ipSetsbelow. - name String
- Map<String,String>
- Map of tags assigned to the resource.
- arn string
- attributes
Get
Custom Routing Accelerator Attribute[] - Attributes of the accelerator. See
attributesbelow. - dns
Name string - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - enabled boolean
- Whether the accelerator is enabled.
- hosted
Zone stringId - 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 stringType - Value for the address type.
- ip
Sets GetCustom Routing Accelerator Ip Set[] - IP address set associated with the accelerator. See
ipSetsbelow. - name string
- {[key: string]: string}
- Map of tags assigned to the resource.
- arn str
- attributes
Sequence[Get
Custom Routing Accelerator Attribute] - Attributes of the accelerator. See
attributesbelow. - dns_
name str - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - enabled bool
- Whether the accelerator is enabled.
- hosted_
zone_ strid - 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_ strtype - Value for the address type.
- ip_
sets Sequence[GetCustom Routing Accelerator Ip Set] - IP address set associated with the accelerator. See
ipSetsbelow. - name str
- Mapping[str, str]
- Map of tags assigned to the resource.
- arn String
- attributes List<Property Map>
- Attributes of the accelerator. See
attributesbelow. - dns
Name String - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - enabled Boolean
- Whether the accelerator is enabled.
- hosted
Zone StringId - 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 StringType - Value for the address type.
- ip
Sets List<Property Map> - IP address set associated with the accelerator. See
ipSetsbelow. - name String
- Map<String>
- Map of tags assigned to the resource.
Supporting Types
GetCustomRoutingAcceleratorAttribute
- Flow
Logs boolEnabled - Whether flow logs are enabled.
- Flow
Logs stringS3Bucket - Name of the Amazon S3 bucket for the flow logs.
- Flow
Logs stringS3Prefix - Prefix for the location in the Amazon S3 bucket for the flow logs.
- Flow
Logs boolEnabled - Whether flow logs are enabled.
- Flow
Logs stringS3Bucket - Name of the Amazon S3 bucket for the flow logs.
- Flow
Logs stringS3Prefix - Prefix for the location in the Amazon S3 bucket for the flow logs.
- flow_
logs_ boolenabled - Whether flow logs are enabled.
- flow_
logs_ strings3_ bucket - Name of the Amazon S3 bucket for the flow logs.
- flow_
logs_ strings3_ prefix - Prefix for the location in the Amazon S3 bucket for the flow logs.
- flow
Logs BooleanEnabled - Whether flow logs are enabled.
- flow
Logs StringS3Bucket - Name of the Amazon S3 bucket for the flow logs.
- flow
Logs StringS3Prefix - Prefix for the location in the Amazon S3 bucket for the flow logs.
- flow
Logs booleanEnabled - Whether flow logs are enabled.
- flow
Logs stringS3Bucket - Name of the Amazon S3 bucket for the flow logs.
- flow
Logs stringS3Prefix - Prefix for the location in the Amazon S3 bucket for the flow logs.
- flow_
logs_ boolenabled - Whether flow logs are enabled.
- flow_
logs_ strs3_ bucket - Name of the Amazon S3 bucket for the flow logs.
- flow_
logs_ strs3_ prefix - Prefix for the location in the Amazon S3 bucket for the flow logs.
- flow
Logs BooleanEnabled - Whether flow logs are enabled.
- flow
Logs StringS3Bucket - Name of the Amazon S3 bucket for the flow logs.
- flow
Logs StringS3Prefix - Prefix for the location in the Amazon S3 bucket for the flow logs.
GetCustomRoutingAcceleratorIpSet
- 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.
- Ip
Addresses []string - List of IP addresses in the IP address set.
- Ip
Family 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.
- 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.
- ip
Addresses string[] - List of IP addresses in the IP address set.
- ip
Family 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.
- 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.
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.52.1
published on Wednesday, Oct 28, 2026 by Pulumi
published on Wednesday, Oct 28, 2026 by Pulumi