TableEntityArgs

data class TableEntityArgs(val entity: Output<Map<String, String>>? = null, val partitionKey: Output<String>? = null, val rowKey: Output<String>? = null, val storageAccountName: Output<String>? = null, val tableName: Output<String>? = null) : ConvertibleToJava<TableEntityArgs>

Manages an Entity within a Table in an Azure Storage Account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.Table;
import com.pulumi.azure.storage.TableArgs;
import com.pulumi.azure.storage.TableEntity;
import com.pulumi.azure.storage.TableEntityArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleTable = new Table("exampleTable", TableArgs.builder()
.storageAccountName(exampleAccount.name())
.build());
var exampleTableEntity = new TableEntity("exampleTableEntity", TableEntityArgs.builder()
.storageAccountName(exampleAccount.name())
.tableName(exampleTable.name())
.partitionKey("examplepartition")
.rowKey("examplerow")
.entity(Map.of("example", "example"))
.build());
}
}

Import

Entities within a Table in an Azure Storage Account can be imported using the resource id, e.g.

$ pulumi import azure:storage/tableEntity:TableEntity entity1 https://example.table.core.windows.net/table1(PartitionKey='samplepartition',RowKey='samplerow')

Constructors

Link copied to clipboard
fun TableEntityArgs(entity: Output<Map<String, String>>? = null, partitionKey: Output<String>? = null, rowKey: Output<String>? = null, storageAccountName: Output<String>? = null, tableName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TableEntityArgs

Properties

Link copied to clipboard
val entity: Output<Map<String, String>>? = null

A map of key/value pairs that describe the entity to be inserted/merged in to the storage table.

Link copied to clipboard
val partitionKey: Output<String>? = null

The key for the partition where the entity will be inserted/merged. Changing this forces a new resource.

Link copied to clipboard
val rowKey: Output<String>? = null

The key for the row where the entity will be inserted/merged. Changing this forces a new resource.

Link copied to clipboard
val storageAccountName: Output<String>? = null

Specifies the storage account in which to create the storage table entity. Changing this forces a new resource to be created.

Link copied to clipboard
val tableName: Output<String>? = null

The name of the storage table in which to create the storage table entity. Changing this forces a new resource to be created.