1. Packages
  2. AWS
  3. API Docs
  4. globalaccelerator
  5. getCustomRoutingAccelerator
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.globalaccelerator.getCustomRoutingAccelerator

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 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/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:

    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>
    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
    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>
    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}
    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]
    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>

    getCustomRoutingAccelerator Result

    The following output properties are available:

    Arn string
    Attributes List<GetCustomRoutingAcceleratorAttribute>
    DnsName string
    Enabled bool
    HostedZoneId string
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddressType string
    IpSets List<GetCustomRoutingAcceleratorIpSet>
    Name string
    Tags Dictionary<string, string>
    Arn string
    Attributes []GetCustomRoutingAcceleratorAttribute
    DnsName string
    Enabled bool
    HostedZoneId string
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddressType string
    IpSets []GetCustomRoutingAcceleratorIpSet
    Name string
    Tags map[string]string
    arn String
    attributes List<GetCustomRoutingAcceleratorAttribute>
    dnsName String
    enabled Boolean
    hostedZoneId String
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddressType String
    ipSets List<GetCustomRoutingAcceleratorIpSet>
    name String
    tags Map<String,String>
    arn string
    attributes GetCustomRoutingAcceleratorAttribute[]
    dnsName string
    enabled boolean
    hostedZoneId string
    id string
    The provider-assigned unique ID for this managed resource.
    ipAddressType string
    ipSets GetCustomRoutingAcceleratorIpSet[]
    name string
    tags {[key: string]: string}
    arn String
    attributes List<Property Map>
    dnsName String
    enabled Boolean
    hostedZoneId String
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddressType String
    ipSets List<Property Map>
    name String
    tags Map<String>

    Supporting Types

    GetCustomRoutingAcceleratorAttribute

    GetCustomRoutingAcceleratorIpSet

    IpAddresses List<string>
    IpFamily string
    IpAddresses []string
    IpFamily string
    ipAddresses List<String>
    ipFamily String
    ipAddresses string[]
    ipFamily string
    ip_addresses Sequence[str]
    ip_family str
    ipAddresses List<String>
    ipFamily String

    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 v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi