com.pulumi.azure.storage.TableEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.storage;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.storage.TableEntityArgs;
import com.pulumi.azure.storage.inputs.TableEntityState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Map;
import javax.annotation.Nullable;
/**
* Manages an Entity within a Table in an Azure Storage Account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("azureexample")
* .location("West Europe")
* .build());
*
* var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
* .name("azureexamplestorage1")
* .resourceGroupName(example.name())
* .location(example.location())
* .accountTier("Standard")
* .accountReplicationType("LRS")
* .build());
*
* var exampleTable = new Table("exampleTable", TableArgs.builder()
* .name("myexampletable")
* .storageAccountName(exampleAccount.name())
* .build());
*
* var exampleTableEntity = new TableEntity("exampleTableEntity", TableEntityArgs.builder()
* .storageTableId(exampleTable.id())
* .partitionKey("examplepartition")
* .rowKey("examplerow")
* .entity(Map.of("example", "example"))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* Entities within a Table in an Azure Storage Account can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:storage/tableEntity:TableEntity entity1 https://example.table.core.windows.net/table1(PartitionKey='samplepartition',RowKey='samplerow')
* ```
*
*/
@ResourceType(type="azure:storage/tableEntity:TableEntity")
public class TableEntity extends com.pulumi.resources.CustomResource {
/**
* A map of key/value pairs that describe the entity to be inserted/merged in to the storage table.
*
*/
@Export(name="entity", refs={Map.class,String.class}, tree="[0,1,1]")
private Output