PreparedStatement

class PreparedStatement : KotlinCustomResource

Resource for managing an Athena Prepared Statement.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.BucketV2;
import com.pulumi.aws.s3.BucketV2Args;
import com.pulumi.aws.athena.Workgroup;
import com.pulumi.aws.athena.Database;
import com.pulumi.aws.athena.DatabaseArgs;
import com.pulumi.aws.athena.PreparedStatement;
import com.pulumi.aws.athena.PreparedStatementArgs;
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) {
var testBucketV2 = new BucketV2("testBucketV2", BucketV2Args.builder()
.forceDestroy(true)
.build());
var testWorkgroup = new Workgroup("testWorkgroup");
var testDatabase = new Database("testDatabase", DatabaseArgs.builder()
.name("example")
.bucket(testBucketV2.bucket())
.build());
var testPreparedStatement = new PreparedStatement("testPreparedStatement", PreparedStatementArgs.builder()
.queryStatement(testDatabase.name().applyValue(name -> String.format("SELECT * FROM %s WHERE x = ?", name)))
.workgroup(testWorkgroup.name())
.build());
}
}

Import

Using pulumi import, import Athena Prepared Statement using the WORKGROUP-NAME/STATEMENT-NAME. For example:

$ pulumi import aws:athena/preparedStatement:PreparedStatement example 12345abcde/example

Properties

Link copied to clipboard
val description: Output<String>?

Brief explanation of prepared statement. Maximum length of 1024.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the prepared statement. Maximum length of 256.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val queryStatement: Output<String>

The query string for the prepared statement.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val workgroup: Output<String>

The name of the workgroup to which the prepared statement belongs.