// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.globalaccelerator;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.globalaccelerator.inputs.GetAcceleratorArgs;
import com.pulumi.aws.globalaccelerator.inputs.GetAcceleratorPlainArgs;
import com.pulumi.aws.globalaccelerator.outputs.GetAcceleratorResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import java.util.concurrent.CompletableFuture;

public final class GlobalacceleratorFunctions {
    /**
     * Provides information about a Global Accelerator accelerator.
     * 
     * ## Example Usage
     * ```java
     * 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.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(&#34;acceleratorArn&#34;).orElse(&#34;&#34;);
     *         final var acceleratorName = config.get(&#34;acceleratorName&#34;).orElse(&#34;&#34;);
     *         final var example = GlobalacceleratorFunctions.getAccelerator(GetAcceleratorArgs.builder()
     *             .arn(acceleratorArn)
     *             .name(acceleratorName)
     *             .build());
     * 
     *     }
     * }
     * ```
     * 
     */
    public static Output<GetAcceleratorResult> getAccelerator() {
        return getAccelerator(GetAcceleratorArgs.Empty, InvokeOptions.Empty);
    }
    /**
     * Provides information about a Global Accelerator accelerator.
     * 
     * ## Example Usage
     * ```java
     * 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.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(&#34;acceleratorArn&#34;).orElse(&#34;&#34;);
     *         final var acceleratorName = config.get(&#34;acceleratorName&#34;).orElse(&#34;&#34;);
     *         final var example = GlobalacceleratorFunctions.getAccelerator(GetAcceleratorArgs.builder()
     *             .arn(acceleratorArn)
     *             .name(acceleratorName)
     *             .build());
     * 
     *     }
     * }
     * ```
     * 
     */
    public static CompletableFuture<GetAcceleratorResult> getAcceleratorPlain() {
        return getAcceleratorPlain(GetAcceleratorPlainArgs.Empty, InvokeOptions.Empty);
    }
    /**
     * Provides information about a Global Accelerator accelerator.
     * 
     * ## Example Usage
     * ```java
     * 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.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(&#34;acceleratorArn&#34;).orElse(&#34;&#34;);
     *         final var acceleratorName = config.get(&#34;acceleratorName&#34;).orElse(&#34;&#34;);
     *         final var example = GlobalacceleratorFunctions.getAccelerator(GetAcceleratorArgs.builder()
     *             .arn(acceleratorArn)
     *             .name(acceleratorName)
     *             .build());
     * 
     *     }
     * }
     * ```
     * 
     */
    public static Output<GetAcceleratorResult> getAccelerator(GetAcceleratorArgs args) {
        return getAccelerator(args, InvokeOptions.Empty);
    }
    /**
     * Provides information about a Global Accelerator accelerator.
     * 
     * ## Example Usage
     * ```java
     * 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.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(&#34;acceleratorArn&#34;).orElse(&#34;&#34;);
     *         final var acceleratorName = config.get(&#34;acceleratorName&#34;).orElse(&#34;&#34;);
     *         final var example = GlobalacceleratorFunctions.getAccelerator(GetAcceleratorArgs.builder()
     *             .arn(acceleratorArn)
     *             .name(acceleratorName)
     *             .build());
     * 
     *     }
     * }
     * ```
     * 
     */
    public static CompletableFuture<GetAcceleratorResult> getAcceleratorPlain(GetAcceleratorPlainArgs args) {
        return getAcceleratorPlain(args, InvokeOptions.Empty);
    }
    /**
     * Provides information about a Global Accelerator accelerator.
     * 
     * ## Example Usage
     * ```java
     * 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.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(&#34;acceleratorArn&#34;).orElse(&#34;&#34;);
     *         final var acceleratorName = config.get(&#34;acceleratorName&#34;).orElse(&#34;&#34;);
     *         final var example = GlobalacceleratorFunctions.getAccelerator(GetAcceleratorArgs.builder()
     *             .arn(acceleratorArn)
     *             .name(acceleratorName)
     *             .build());
     * 
     *     }
     * }
     * ```
     * 
     */
    public static Output<GetAcceleratorResult> getAccelerator(GetAcceleratorArgs args, InvokeOptions options) {
        return Deployment.getInstance().invoke("aws:globalaccelerator/getAccelerator:getAccelerator", TypeShape.of(GetAcceleratorResult.class), args, Utilities.withVersion(options));
    }
    /**
     * Provides information about a Global Accelerator accelerator.
     * 
     * ## Example Usage
     * ```java
     * 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.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(&#34;acceleratorArn&#34;).orElse(&#34;&#34;);
     *         final var acceleratorName = config.get(&#34;acceleratorName&#34;).orElse(&#34;&#34;);
     *         final var example = GlobalacceleratorFunctions.getAccelerator(GetAcceleratorArgs.builder()
     *             .arn(acceleratorArn)
     *             .name(acceleratorName)
     *             .build());
     * 
     *     }
     * }
     * ```
     * 
     */
    public static CompletableFuture<GetAcceleratorResult> getAcceleratorPlain(GetAcceleratorPlainArgs args, InvokeOptions options) {
        return Deployment.getInstance().invokeAsync("aws:globalaccelerator/getAccelerator:getAccelerator", TypeShape.of(GetAcceleratorResult.class), args, Utilities.withVersion(options));
    }
}
