Documentation ¶
Index ¶
- type GetTableArgs
- type GetTableResult
- type GlobalTable
- type GlobalTableArgs
- type GlobalTableState
- type Table
- func (r *Table) Arn() *pulumi.StringOutput
- func (r *Table) Attributes() *pulumi.ArrayOutput
- func (r *Table) BillingMode() *pulumi.StringOutput
- func (r *Table) GlobalSecondaryIndexes() *pulumi.ArrayOutput
- func (r *Table) HashKey() *pulumi.StringOutput
- func (r *Table) ID() *pulumi.IDOutput
- func (r *Table) LocalSecondaryIndexes() *pulumi.ArrayOutput
- func (r *Table) Name() *pulumi.StringOutput
- func (r *Table) PointInTimeRecovery() *pulumi.Output
- func (r *Table) RangeKey() *pulumi.StringOutput
- func (r *Table) ReadCapacity() *pulumi.IntOutput
- func (r *Table) ServerSideEncryption() *pulumi.Output
- func (r *Table) StreamArn() *pulumi.StringOutput
- func (r *Table) StreamEnabled() *pulumi.BoolOutput
- func (r *Table) StreamLabel() *pulumi.StringOutput
- func (r *Table) StreamViewType() *pulumi.StringOutput
- func (r *Table) Tags() *pulumi.MapOutput
- func (r *Table) Ttl() *pulumi.Output
- func (r *Table) URN() *pulumi.URNOutput
- func (r *Table) WriteCapacity() *pulumi.IntOutput
- type TableArgs
- type TableItem
- type TableItemArgs
- type TableItemState
- type TableState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTableArgs ¶
type GetTableArgs struct { // The name of the DynamoDB table. Name interface{} ServerSideEncryption interface{} Tags interface{} }
A collection of arguments for invoking getTable.
type GetTableResult ¶
type GetTableResult struct { Arn interface{} Attributes interface{} BillingMode interface{} GlobalSecondaryIndexes interface{} HashKey interface{} LocalSecondaryIndexes interface{} PointInTimeRecovery interface{} RangeKey interface{} ReadCapacity interface{} ServerSideEncryption interface{} StreamArn interface{} StreamEnabled interface{} StreamLabel interface{} StreamViewType interface{} Tags interface{} Ttl interface{} WriteCapacity interface{} // id is the provider-assigned unique ID for this managed resource. Id interface{} }
A collection of values returned by getTable.
func LookupTable ¶
func LookupTable(ctx *pulumi.Context, args *GetTableArgs) (*GetTableResult, error)
Provides information about a DynamoDB table.
type GlobalTable ¶
type GlobalTable struct {
// contains filtered or unexported fields
}
Provides a resource to manage a DynamoDB Global Table. These are layered on top of existing DynamoDB Tables.
> Note: There are many restrictions before you can properly create DynamoDB Global Tables in multiple regions. See the [AWS DynamoDB Global Table Requirements](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables_reqs_bestpractices.html) for more information.
func GetGlobalTable ¶
func GetGlobalTable(ctx *pulumi.Context, name string, id pulumi.ID, state *GlobalTableState, opts ...pulumi.ResourceOpt) (*GlobalTable, error)
GetGlobalTable gets an existing GlobalTable resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGlobalTable ¶
func NewGlobalTable(ctx *pulumi.Context, name string, args *GlobalTableArgs, opts ...pulumi.ResourceOpt) (*GlobalTable, error)
NewGlobalTable registers a new resource with the given unique name, arguments, and options.
func (*GlobalTable) Arn ¶
func (r *GlobalTable) Arn() *pulumi.StringOutput
The ARN of the DynamoDB Global Table
func (*GlobalTable) ID ¶
func (r *GlobalTable) ID() *pulumi.IDOutput
ID is this resource's unique identifier assigned by its provider.
func (*GlobalTable) Name ¶
func (r *GlobalTable) Name() *pulumi.StringOutput
The name of the global table. Must match underlying DynamoDB Table names in all regions.
func (*GlobalTable) Replicas ¶
func (r *GlobalTable) Replicas() *pulumi.ArrayOutput
Underlying DynamoDB Table. At least 1 replica must be defined. See below.
func (*GlobalTable) URN ¶
func (r *GlobalTable) URN() *pulumi.URNOutput
URN is this resource's unique name assigned by Pulumi.
type GlobalTableArgs ¶
type GlobalTableArgs struct { // The name of the global table. Must match underlying DynamoDB Table names in all regions. Name interface{} // Underlying DynamoDB Table. At least 1 replica must be defined. See below. Replicas interface{} }
The set of arguments for constructing a GlobalTable resource.
type GlobalTableState ¶
type GlobalTableState struct { // The ARN of the DynamoDB Global Table Arn interface{} // The name of the global table. Must match underlying DynamoDB Table names in all regions. Name interface{} // Underlying DynamoDB Table. At least 1 replica must be defined. See below. Replicas interface{} }
Input properties used for looking up and filtering GlobalTable resources.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Provides a DynamoDB table resource
> **Note:** It is recommended to use `lifecycle` [`ignore_changes`](https://www.terraform.io/docs/configuration/resources.html#ignore_changes) for `read_capacity` and/or `write_capacity` if there's [autoscaling policy](https://www.terraform.io/docs/providers/aws/r/appautoscaling_policy.html) attached to the table.
func GetTable ¶
func GetTable(ctx *pulumi.Context, name string, id pulumi.ID, state *TableState, opts ...pulumi.ResourceOpt) (*Table, error)
GetTable gets an existing Table resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewTable ¶
func NewTable(ctx *pulumi.Context, name string, args *TableArgs, opts ...pulumi.ResourceOpt) (*Table, error)
NewTable registers a new resource with the given unique name, arguments, and options.
func (*Table) Attributes ¶
func (r *Table) Attributes() *pulumi.ArrayOutput
List of nested attribute definitions. Only required for `hash_key` and `range_key` attributes. Each attribute has two properties:
func (*Table) BillingMode ¶ added in v0.16.4
func (r *Table) BillingMode() *pulumi.StringOutput
Controls how you are charged for read and write throughput and how you manage capacity. The valid values are `PROVISIONED` and `PAY_PER_REQUEST`. Defaults to `PROVISIONED`.
func (*Table) GlobalSecondaryIndexes ¶
func (r *Table) GlobalSecondaryIndexes() *pulumi.ArrayOutput
Describe a GSI for the table; subject to the normal limits on the number of GSIs, projected attributes, etc.
func (*Table) HashKey ¶
func (r *Table) HashKey() *pulumi.StringOutput
The name of the hash key in the index; must be defined as an attribute in the resource.
func (*Table) LocalSecondaryIndexes ¶
func (r *Table) LocalSecondaryIndexes() *pulumi.ArrayOutput
Describe an LSI on the table; these can only be allocated *at creation* so you cannot change this definition after you have created the resource.
func (*Table) PointInTimeRecovery ¶
Point-in-time recovery options.
func (*Table) RangeKey ¶
func (r *Table) RangeKey() *pulumi.StringOutput
The name of the range key; must be defined
func (*Table) ReadCapacity ¶
The number of read units for this index. Must be set if billing_mode is set to PROVISIONED.
func (*Table) ServerSideEncryption ¶
Encryption at rest options. AWS DynamoDB tables are automatically encrypted at rest with an AWS owned Customer Master Key if this argument isn't specified.
func (*Table) StreamArn ¶
func (r *Table) StreamArn() *pulumi.StringOutput
The ARN of the Table Stream. Only available when `stream_enabled = true`
func (*Table) StreamEnabled ¶
func (r *Table) StreamEnabled() *pulumi.BoolOutput
Indicates whether Streams are to be enabled (true) or disabled (false).
func (*Table) StreamLabel ¶
func (r *Table) StreamLabel() *pulumi.StringOutput
A timestamp, in ISO 8601 format, for this stream. Note that this timestamp is not a unique identifier for the stream on its own. However, the combination of AWS customer ID, table name and this field is guaranteed to be unique. It can be used for creating CloudWatch Alarms. Only available when `stream_enabled = true`
func (*Table) StreamViewType ¶
func (r *Table) StreamViewType() *pulumi.StringOutput
When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values are `KEYS_ONLY`, `NEW_IMAGE`, `OLD_IMAGE`, `NEW_AND_OLD_IMAGES`.
func (*Table) WriteCapacity ¶
The number of write units for this index. Must be set if billing_mode is set to PROVISIONED.
type TableArgs ¶
type TableArgs struct { // List of nested attribute definitions. Only required for `hash_key` and `range_key` attributes. Each attribute has two properties: Attributes interface{} // Controls how you are charged for read and write throughput and how you manage capacity. The valid values are `PROVISIONED` and `PAY_PER_REQUEST`. Defaults to `PROVISIONED`. BillingMode interface{} // Describe a GSI for the table; // subject to the normal limits on the number of GSIs, projected // attributes, etc. GlobalSecondaryIndexes interface{} // The name of the hash key in the index; must be // defined as an attribute in the resource. HashKey interface{} // Describe an LSI on the table; // these can only be allocated *at creation* so you cannot change this // definition after you have created the resource. LocalSecondaryIndexes interface{} // The name of the index Name interface{} // Point-in-time recovery options. PointInTimeRecovery interface{} // The name of the range key; must be defined RangeKey interface{} // The number of read units for this index. Must be set if billing_mode is set to PROVISIONED. ReadCapacity interface{} // Encryption at rest options. AWS DynamoDB tables are automatically encrypted at rest with an AWS owned Customer Master Key if this argument isn't specified. ServerSideEncryption interface{} // Indicates whether Streams are to be enabled (true) or disabled (false). StreamEnabled interface{} // When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values are `KEYS_ONLY`, `NEW_IMAGE`, `OLD_IMAGE`, `NEW_AND_OLD_IMAGES`. StreamViewType interface{} // A map of tags to populate on the created table. Tags interface{} // Defines ttl, has two properties, and can only be specified once: Ttl interface{} // The number of write units for this index. Must be set if billing_mode is set to PROVISIONED. WriteCapacity interface{} }
The set of arguments for constructing a Table resource.
type TableItem ¶
type TableItem struct {
// contains filtered or unexported fields
}
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](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/BackupRestore.html).
func GetTableItem ¶
func GetTableItem(ctx *pulumi.Context, name string, id pulumi.ID, state *TableItemState, opts ...pulumi.ResourceOpt) (*TableItem, error)
GetTableItem gets an existing TableItem resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewTableItem ¶
func NewTableItem(ctx *pulumi.Context, name string, args *TableItemArgs, opts ...pulumi.ResourceOpt) (*TableItem, error)
NewTableItem registers a new resource with the given unique name, arguments, and options.
func (*TableItem) HashKey ¶
func (r *TableItem) HashKey() *pulumi.StringOutput
Hash key to use for lookups and identification of the item
func (*TableItem) Item ¶
func (r *TableItem) Item() *pulumi.StringOutput
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.
func (*TableItem) RangeKey ¶
func (r *TableItem) RangeKey() *pulumi.StringOutput
Range key to use for lookups and identification of the item. Required if there is range key defined in the table.
func (*TableItem) TableName ¶
func (r *TableItem) TableName() *pulumi.StringOutput
The name of the table to contain the item.
type TableItemArgs ¶
type TableItemArgs struct { // Hash key to use for lookups and identification of the item HashKey interface{} // 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. Item interface{} // Range key to use for lookups and identification of the item. Required if there is range key defined in the table. RangeKey interface{} // The name of the table to contain the item. TableName interface{} }
The set of arguments for constructing a TableItem resource.
type TableItemState ¶
type TableItemState struct { // Hash key to use for lookups and identification of the item HashKey interface{} // 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. Item interface{} // Range key to use for lookups and identification of the item. Required if there is range key defined in the table. RangeKey interface{} // The name of the table to contain the item. TableName interface{} }
Input properties used for looking up and filtering TableItem resources.
type TableState ¶
type TableState struct { // The arn of the table Arn interface{} // List of nested attribute definitions. Only required for `hash_key` and `range_key` attributes. Each attribute has two properties: Attributes interface{} // Controls how you are charged for read and write throughput and how you manage capacity. The valid values are `PROVISIONED` and `PAY_PER_REQUEST`. Defaults to `PROVISIONED`. BillingMode interface{} // Describe a GSI for the table; // subject to the normal limits on the number of GSIs, projected // attributes, etc. GlobalSecondaryIndexes interface{} // The name of the hash key in the index; must be // defined as an attribute in the resource. HashKey interface{} // Describe an LSI on the table; // these can only be allocated *at creation* so you cannot change this // definition after you have created the resource. LocalSecondaryIndexes interface{} // The name of the index Name interface{} // Point-in-time recovery options. PointInTimeRecovery interface{} // The name of the range key; must be defined RangeKey interface{} // The number of read units for this index. Must be set if billing_mode is set to PROVISIONED. ReadCapacity interface{} // Encryption at rest options. AWS DynamoDB tables are automatically encrypted at rest with an AWS owned Customer Master Key if this argument isn't specified. ServerSideEncryption interface{} // The ARN of the Table Stream. Only available when `stream_enabled = true` StreamArn interface{} // Indicates whether Streams are to be enabled (true) or disabled (false). StreamEnabled interface{} // A timestamp, in ISO 8601 format, for this stream. Note that this timestamp is not // a unique identifier for the stream on its own. However, the combination of AWS customer ID, // table name and this field is guaranteed to be unique. // It can be used for creating CloudWatch Alarms. Only available when `stream_enabled = true` StreamLabel interface{} // When an item in the table is modified, StreamViewType determines what information is written to the table's stream. Valid values are `KEYS_ONLY`, `NEW_IMAGE`, `OLD_IMAGE`, `NEW_AND_OLD_IMAGES`. StreamViewType interface{} // A map of tags to populate on the created table. Tags interface{} // Defines ttl, has two properties, and can only be specified once: Ttl interface{} // The number of write units for this index. Must be set if billing_mode is set to PROVISIONED. WriteCapacity interface{} }
Input properties used for looking up and filtering Table resources.