Show / Hide Table of Contents

Class TableItem

Provides a DynamoDB table item resource

Note: This resource is not meant to be used for managing large amounts of data in your table, it is not designed to scale. You should perform regular backups of all data in the table, see AWS docs for more.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var exampleTable = new Aws.DynamoDB.Table("exampleTable", new Aws.DynamoDB.TableArgs
    {
        Attributes = 
        {
            new Aws.DynamoDB.Inputs.TableAttributeArgs
            {
                Name = "exampleHashKey",
                Type = "S",
            },
        },
        HashKey = "exampleHashKey",
        ReadCapacity = 10,
        WriteCapacity = 10,
    });
    var exampleTableItem = new Aws.DynamoDB.TableItem("exampleTableItem", new Aws.DynamoDB.TableItemArgs
    {
        HashKey = exampleTable.HashKey,
        Item = @"{
""exampleHashKey"": {""S"": ""something""},
""one"": {""N"": ""11111""},
""two"": {""N"": ""22222""},
""three"": {""N"": ""33333""},
""four"": {""N"": ""44444""}
}

",
        TableName = exampleTable.Name,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
TableItem
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.DynamoDB
Assembly: Pulumi.Aws.dll
Syntax
public class TableItem : CustomResource

Constructors

View Source

TableItem(String, TableItemArgs, CustomResourceOptions)

Create a TableItem resource with the given unique name, arguments, and options.

Declaration
public TableItem(string name, TableItemArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

TableItemArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

HashKey

Hash key to use for lookups and identification of the item

Declaration
public Output<string> HashKey { get; }
Property Value
Type Description
Output<System.String>
View Source

Item

JSON representation of a map of attribute name/value pairs, one for each attribute. Only the primary key attributes are required; you can optionally provide other attribute name-value pairs for the item.

Declaration
public Output<string> Item { get; }
Property Value
Type Description
Output<System.String>
View Source

RangeKey

Range key to use for lookups and identification of the item. Required if there is range key defined in the table.

Declaration
public Output<string> RangeKey { get; }
Property Value
Type Description
Output<System.String>
View Source

TableName

The name of the table to contain the item.

Declaration
public Output<string> TableName { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, TableItemState, CustomResourceOptions)

Get an existing TableItem resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static TableItem Get(string name, Input<string> id, TableItemState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

TableItemState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
TableItem
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.