All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.athena.AthenaFunctions Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.athena;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.athena.inputs.GetNamedQueryArgs;
import com.pulumi.aws.athena.inputs.GetNamedQueryPlainArgs;
import com.pulumi.aws.athena.outputs.GetNamedQueryResult;
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 AthenaFunctions {
    /**
     * Provides an Athena Named Query data source.
     * 
     * ## Example Usage
     * 
     * <!--Start PulumiCodeChooser -->
     * 
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.aws.athena.AthenaFunctions;
     * import com.pulumi.aws.athena.inputs.GetNamedQueryArgs;
     * 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 example = AthenaFunctions.getNamedQuery(GetNamedQueryArgs.builder()
     *             .name("athenaQueryName")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getNamedQuery(GetNamedQueryArgs args) { return getNamedQuery(args, InvokeOptions.Empty); } /** * Provides an Athena Named Query data source. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.aws.athena.AthenaFunctions;
     * import com.pulumi.aws.athena.inputs.GetNamedQueryArgs;
     * 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 example = AthenaFunctions.getNamedQuery(GetNamedQueryArgs.builder()
     *             .name("athenaQueryName")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getNamedQueryPlain(GetNamedQueryPlainArgs args) { return getNamedQueryPlain(args, InvokeOptions.Empty); } /** * Provides an Athena Named Query data source. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.aws.athena.AthenaFunctions;
     * import com.pulumi.aws.athena.inputs.GetNamedQueryArgs;
     * 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 example = AthenaFunctions.getNamedQuery(GetNamedQueryArgs.builder()
     *             .name("athenaQueryName")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static Output getNamedQuery(GetNamedQueryArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("aws:athena/getNamedQuery:getNamedQuery", TypeShape.of(GetNamedQueryResult.class), args, Utilities.withVersion(options)); } /** * Provides an Athena Named Query data source. * * ## Example Usage * * <!--Start PulumiCodeChooser --> *
     * {@code
     * package generated_program;
     * 
     * import com.pulumi.Context;
     * import com.pulumi.Pulumi;
     * import com.pulumi.core.Output;
     * import com.pulumi.aws.athena.AthenaFunctions;
     * import com.pulumi.aws.athena.inputs.GetNamedQueryArgs;
     * 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 example = AthenaFunctions.getNamedQuery(GetNamedQueryArgs.builder()
     *             .name("athenaQueryName")
     *             .build());
     * 
     *     }
     * }
     * }
     * 
* <!--End PulumiCodeChooser --> * */ public static CompletableFuture getNamedQueryPlain(GetNamedQueryPlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("aws:athena/getNamedQuery:getNamedQuery", TypeShape.of(GetNamedQueryResult.class), args, Utilities.withVersion(options)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy