com.pulumi.aws.dynamodb.DynamodbFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.dynamodb;
import com.pulumi.aws.Utilities;
import com.pulumi.aws.dynamodb.inputs.GetTableArgs;
import com.pulumi.aws.dynamodb.inputs.GetTableItemArgs;
import com.pulumi.aws.dynamodb.inputs.GetTableItemPlainArgs;
import com.pulumi.aws.dynamodb.inputs.GetTablePlainArgs;
import com.pulumi.aws.dynamodb.outputs.GetTableItemResult;
import com.pulumi.aws.dynamodb.outputs.GetTableResult;
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 DynamodbFunctions {
/**
* Provides information about a DynamoDB table.
*
* ## 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.dynamodb.DynamodbFunctions;
* import com.pulumi.aws.dynamodb.inputs.GetTableArgs;
* 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 tableName = DynamodbFunctions.getTable(GetTableArgs.builder()
* .name("tableName")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTable(GetTableArgs args) {
return getTable(args, InvokeOptions.Empty);
}
/**
* Provides information about a DynamoDB table.
*
* ## 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.dynamodb.DynamodbFunctions;
* import com.pulumi.aws.dynamodb.inputs.GetTableArgs;
* 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 tableName = DynamodbFunctions.getTable(GetTableArgs.builder()
* .name("tableName")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTablePlain(GetTablePlainArgs args) {
return getTablePlain(args, InvokeOptions.Empty);
}
/**
* Provides information about a DynamoDB table.
*
* ## 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.dynamodb.DynamodbFunctions;
* import com.pulumi.aws.dynamodb.inputs.GetTableArgs;
* 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 tableName = DynamodbFunctions.getTable(GetTableArgs.builder()
* .name("tableName")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTable(GetTableArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:dynamodb/getTable:getTable", TypeShape.of(GetTableResult.class), args, Utilities.withVersion(options));
}
/**
* Provides information about a DynamoDB table.
*
* ## 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.dynamodb.DynamodbFunctions;
* import com.pulumi.aws.dynamodb.inputs.GetTableArgs;
* 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 tableName = DynamodbFunctions.getTable(GetTableArgs.builder()
* .name("tableName")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTablePlain(GetTablePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:dynamodb/getTable:getTable", TypeShape.of(GetTableResult.class), args, Utilities.withVersion(options));
}
/**
* Data source for retrieving a value from an AWS DynamoDB table.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.dynamodb.DynamodbFunctions;
* import com.pulumi.aws.dynamodb.inputs.GetTableItemArgs;
* 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 test = DynamodbFunctions.getTableItem(GetTableItemArgs.builder()
* .tableName(example.name())
* .expressionAttributeNames(Map.of("#P", "Percentile"))
* .projectionExpression("#P")
* .key("""
* {
* "hashKey": {"S": "example"}
* }
* """)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTableItem(GetTableItemArgs args) {
return getTableItem(args, InvokeOptions.Empty);
}
/**
* Data source for retrieving a value from an AWS DynamoDB table.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.dynamodb.DynamodbFunctions;
* import com.pulumi.aws.dynamodb.inputs.GetTableItemArgs;
* 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 test = DynamodbFunctions.getTableItem(GetTableItemArgs.builder()
* .tableName(example.name())
* .expressionAttributeNames(Map.of("#P", "Percentile"))
* .projectionExpression("#P")
* .key("""
* {
* "hashKey": {"S": "example"}
* }
* """)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTableItemPlain(GetTableItemPlainArgs args) {
return getTableItemPlain(args, InvokeOptions.Empty);
}
/**
* Data source for retrieving a value from an AWS DynamoDB table.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.dynamodb.DynamodbFunctions;
* import com.pulumi.aws.dynamodb.inputs.GetTableItemArgs;
* 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 test = DynamodbFunctions.getTableItem(GetTableItemArgs.builder()
* .tableName(example.name())
* .expressionAttributeNames(Map.of("#P", "Percentile"))
* .projectionExpression("#P")
* .key("""
* {
* "hashKey": {"S": "example"}
* }
* """)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getTableItem(GetTableItemArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("aws:dynamodb/getTableItem:getTableItem", TypeShape.of(GetTableItemResult.class), args, Utilities.withVersion(options));
}
/**
* Data source for retrieving a value from an AWS DynamoDB table.
*
* ## Example Usage
*
* ### Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.dynamodb.DynamodbFunctions;
* import com.pulumi.aws.dynamodb.inputs.GetTableItemArgs;
* 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 test = DynamodbFunctions.getTableItem(GetTableItemArgs.builder()
* .tableName(example.name())
* .expressionAttributeNames(Map.of("#P", "Percentile"))
* .projectionExpression("#P")
* .key("""
* {
* "hashKey": {"S": "example"}
* }
* """)
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getTableItemPlain(GetTableItemPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("aws:dynamodb/getTableItem:getTableItem", TypeShape.of(GetTableItemResult.class), args, Utilities.withVersion(options));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy