AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.globalaccelerator.getCustomRoutingAccelerator
Explore with Pulumi AI
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/v6/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.List;
import java.util.ArrayList;
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}
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?: InvokeOptions): 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: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = 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 CompletableFuture<GetCustomRoutingAcceleratorResult> getCustomRoutingAccelerator(GetCustomRoutingAcceleratorArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:globalaccelerator/getCustomRoutingAccelerator:getCustomRoutingAccelerator
arguments:
# arguments dictionary
The following arguments are supported:
getCustomRoutingAccelerator Result
The following output properties are available:
- Arn string
- Attributes
List<Get
Custom Routing Accelerator Attribute> - Dns
Name string - Enabled bool
- Hosted
Zone stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address stringType - Ip
Sets List<GetCustom Routing Accelerator Ip Set> - Name string
- Dictionary<string, string>
- Arn string
- Attributes
[]Get
Custom Routing Accelerator Attribute - Dns
Name string - Enabled bool
- Hosted
Zone stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address stringType - Ip
Sets []GetCustom Routing Accelerator Ip Set - Name string
- map[string]string
- arn String
- attributes
List<Get
Custom Routing Accelerator Attribute> - dns
Name String - enabled Boolean
- hosted
Zone StringId - id String
- The provider-assigned unique ID for this managed resource.
- ip
Address StringType - ip
Sets List<GetCustom Routing Accelerator Ip Set> - name String
- Map<String,String>
- arn string
- attributes
Get
Custom Routing Accelerator Attribute[] - dns
Name string - enabled boolean
- hosted
Zone stringId - id string
- The provider-assigned unique ID for this managed resource.
- ip
Address stringType - ip
Sets GetCustom Routing Accelerator Ip Set[] - name string
- {[key: string]: string}
- arn str
- attributes
Sequence[Get
Custom Routing Accelerator Attribute] - dns_
name str - enabled bool
- hosted_
zone_ strid - id str
- The provider-assigned unique ID for this managed resource.
- ip_
address_ strtype - ip_
sets Sequence[GetCustom Routing Accelerator Ip Set] - name str
- Mapping[str, str]
- arn String
- attributes List<Property Map>
- dns
Name String - enabled Boolean
- hosted
Zone StringId - id String
- The provider-assigned unique ID for this managed resource.
- ip
Address StringType - ip
Sets List<Property Map> - name String
- Map<String>
Supporting Types
GetCustomRoutingAcceleratorAttribute
- Flow
Logs boolEnabled - Flow
Logs stringS3Bucket - Flow
Logs stringS3Prefix
- Flow
Logs boolEnabled - Flow
Logs stringS3Bucket - Flow
Logs stringS3Prefix
- flow
Logs BooleanEnabled - flow
Logs StringS3Bucket - flow
Logs StringS3Prefix
- flow
Logs booleanEnabled - flow
Logs stringS3Bucket - flow
Logs stringS3Prefix
- flow
Logs BooleanEnabled - flow
Logs StringS3Bucket - flow
Logs StringS3Prefix
GetCustomRoutingAcceleratorIpSet
- Ip
Addresses List<string> - Ip
Family string
- Ip
Addresses []string - Ip
Family string
- ip
Addresses List<String> - ip
Family String
- ip
Addresses string[] - ip
Family string
- ip_
addresses Sequence[str] - ip_
family str
- ip
Addresses List<String> - ip
Family String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.