TableEntity

class TableEntity : KotlinCustomResource

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')

Properties

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

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

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

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

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

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

Link copied to clipboard

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>

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

Link copied to clipboard
val urn: Output<String>