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 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.getAccelerator({
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_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.LookupAccelerator(ctx, &globalaccelerator.LookupAcceleratorArgs{
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.GetAccelerator.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.GetAcceleratorArgs;
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.getAccelerator(GetAcceleratorArgs.builder()
.arn(acceleratorArn)
.name(acceleratorName)
.build());
}
}
configuration:
acceleratorArn:
type: string
default: ""
acceleratorName:
type: string
default: ""
variables:
example:
fn::invoke:
function: aws:globalaccelerator:getAccelerator
arguments:
arn: ${acceleratorArn}
name: ${acceleratorName}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_globalaccelerator_accelerator" "example" {
arn = var.acceleratorArn
name = var.acceleratorName
}
variable "acceleratorArn" {
type = string
default = ""
}
variable "acceleratorName" {
type = string
default = ""
}
Using getAccelerator
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 getAccelerator(args: GetAcceleratorArgs, opts?: InvokeOptions): Promise<GetAcceleratorResult>
function getAcceleratorOutput(args: GetAcceleratorOutputArgs, opts?: InvokeOutputOptions): Output<GetAcceleratorResult>def get_accelerator(arn: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAcceleratorResult
def get_accelerator_output(arn: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAcceleratorResult]func LookupAccelerator(ctx *Context, args *LookupAcceleratorArgs, opts ...InvokeOption) (*LookupAcceleratorResult, error)
func LookupAcceleratorOutput(ctx *Context, args *LookupAcceleratorOutputArgs, opts ...InvokeOption) LookupAcceleratorResultOutput> Note: This function is named LookupAccelerator in the Go SDK.
public static class GetAccelerator
{
public static Task<GetAcceleratorResult> InvokeAsync(GetAcceleratorArgs args, InvokeOptions? opts = null)
public static Output<GetAcceleratorResult> Invoke(GetAcceleratorInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAcceleratorResult> Invoke(GetAcceleratorInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAcceleratorResult> getAccelerator(GetAcceleratorArgs args, InvokeOptions options)
public static Output<GetAcceleratorResult> getAccelerator(GetAcceleratorArgs args, InvokeOptions options)
public static Output<GetAcceleratorResult> getAccelerator(GetAcceleratorArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws:globalaccelerator/getAccelerator:getAccelerator
arguments:
# arguments dictionarydata "aws_globalaccelerator_get_accelerator" "name" {
# arguments
}The following arguments are supported:
getAccelerator Result
The following output properties are available:
- Arn string
- Attributes
List<Get
Accelerator Attribute> - Attributes of the accelerator. See
attributesbelow. - Dns
Name string - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - Dual
Stack stringDns Name - DNS name that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
- 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
- Ip
Address stringType - Value for the address type.
- Ip
Sets List<GetAccelerator 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
Accelerator Attribute - Attributes of the accelerator. See
attributesbelow. - Dns
Name string - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - Dual
Stack stringDns Name - DNS name that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
- 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
- Ip
Address stringType - Value for the address type.
- Ip
Sets []GetAccelerator 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. - dual_
stack_ stringdns_ name - DNS name that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
- 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
- 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
Accelerator Attribute> - Attributes of the accelerator. See
attributesbelow. - dns
Name String - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - dual
Stack StringDns Name - DNS name that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
- 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
- ip
Address StringType - Value for the address type.
- ip
Sets List<GetAccelerator 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
Accelerator Attribute[] - Attributes of the accelerator. See
attributesbelow. - dns
Name string - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - dual
Stack stringDns Name - DNS name that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
- 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
- ip
Address stringType - Value for the address type.
- ip
Sets GetAccelerator 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
Accelerator Attribute] - Attributes of the accelerator. See
attributesbelow. - dns_
name str - DNS name of the accelerator. For example,
a5d53ff5ee6bca4ce.awsglobalaccelerator.com. - dual_
stack_ strdns_ name - DNS name that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
- 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
- ip_
address_ strtype - Value for the address type.
- ip_
sets Sequence[GetAccelerator 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. - dual
Stack StringDns Name - DNS name that points to a dual-stack accelerator's four static IP addresses: two IPv4 addresses and two IPv6 addresses.
- 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
- 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
GetAcceleratorAttribute
- 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.
GetAcceleratorIpSet
- 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