Package com.pulumi.aws.dynamodb.inputs
Class TableGlobalSecondaryIndexArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.dynamodb.inputs.TableGlobalSecondaryIndexArgs.Builder
-
- Enclosing class:
- TableGlobalSecondaryIndexArgs
public static final class TableGlobalSecondaryIndexArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(TableGlobalSecondaryIndexArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(TableGlobalSecondaryIndexArgs defaults)
-
-
Method Detail
-
hashKey
@Deprecated public TableGlobalSecondaryIndexArgs.Builder hashKey(@Nullable com.pulumi.core.Output<java.lang.String> hashKey)
Deprecated.hash_key is deprecated. Use keySchema instead.- Parameters:
hashKey- Name of the hash key in the index; must be defined as an attribute in the resource. Mutually exclusive with `keySchema`. Use `keySchema` instead.- Returns:
- builder
-
hashKey
@Deprecated public TableGlobalSecondaryIndexArgs.Builder hashKey(java.lang.String hashKey)
Deprecated.hash_key is deprecated. Use keySchema instead.- Parameters:
hashKey- Name of the hash key in the index; must be defined as an attribute in the resource. Mutually exclusive with `keySchema`. Use `keySchema` instead.- Returns:
- builder
-
keySchemas
public TableGlobalSecondaryIndexArgs.Builder keySchemas(@Nullable com.pulumi.core.Output<java.util.List<TableGlobalSecondaryIndexKeySchemaArgs>> keySchemas)
- Parameters:
keySchemas- Configuration block(s) for the key schema. Mutually exclusive with `hashKey` and `rangeKey`. Required if `hashKey` is not specified. Supports multi-attribute keys for the [Multi-Attribute Keys design pattern](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.DesignPattern.MultiAttributeKeys.html). See below.- Returns:
- builder
-
keySchemas
public TableGlobalSecondaryIndexArgs.Builder keySchemas(java.util.List<TableGlobalSecondaryIndexKeySchemaArgs> keySchemas)
- Parameters:
keySchemas- Configuration block(s) for the key schema. Mutually exclusive with `hashKey` and `rangeKey`. Required if `hashKey` is not specified. Supports multi-attribute keys for the [Multi-Attribute Keys design pattern](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.DesignPattern.MultiAttributeKeys.html). See below.- Returns:
- builder
-
keySchemas
public TableGlobalSecondaryIndexArgs.Builder keySchemas(TableGlobalSecondaryIndexKeySchemaArgs... keySchemas)
- Parameters:
keySchemas- Configuration block(s) for the key schema. Mutually exclusive with `hashKey` and `rangeKey`. Required if `hashKey` is not specified. Supports multi-attribute keys for the [Multi-Attribute Keys design pattern](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.DesignPattern.MultiAttributeKeys.html). See below.- Returns:
- builder
-
name
public TableGlobalSecondaryIndexArgs.Builder name(com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Name of the index.- Returns:
- builder
-
name
public TableGlobalSecondaryIndexArgs.Builder name(java.lang.String name)
- Parameters:
name- Name of the index.- Returns:
- builder
-
nonKeyAttributes
public TableGlobalSecondaryIndexArgs.Builder nonKeyAttributes(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> nonKeyAttributes)
- Parameters:
nonKeyAttributes- Only required with `INCLUDE` as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table.- Returns:
- builder
-
nonKeyAttributes
public TableGlobalSecondaryIndexArgs.Builder nonKeyAttributes(java.util.List<java.lang.String> nonKeyAttributes)
- Parameters:
nonKeyAttributes- Only required with `INCLUDE` as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table.- Returns:
- builder
-
nonKeyAttributes
public TableGlobalSecondaryIndexArgs.Builder nonKeyAttributes(java.lang.String... nonKeyAttributes)
- Parameters:
nonKeyAttributes- Only required with `INCLUDE` as a projection type; a list of attributes to project into the index. These do not need to be defined as attributes on the table.- Returns:
- builder
-
onDemandThroughput
public TableGlobalSecondaryIndexArgs.Builder onDemandThroughput(@Nullable com.pulumi.core.Output<TableGlobalSecondaryIndexOnDemandThroughputArgs> onDemandThroughput)
- Parameters:
onDemandThroughput- Sets the maximum number of read and write units for the specified on-demand index. See below.- Returns:
- builder
-
onDemandThroughput
public TableGlobalSecondaryIndexArgs.Builder onDemandThroughput(TableGlobalSecondaryIndexOnDemandThroughputArgs onDemandThroughput)
- Parameters:
onDemandThroughput- Sets the maximum number of read and write units for the specified on-demand index. See below.- Returns:
- builder
-
projectionType
public TableGlobalSecondaryIndexArgs.Builder projectionType(com.pulumi.core.Output<java.lang.String> projectionType)
- Parameters:
projectionType- One of `ALL`, `INCLUDE` or `KEYS_ONLY` where `ALL` projects every attribute into the index, `KEYS_ONLY` projects into the index only the table and index hashKey and sortKey attributes, `INCLUDE` projects into the index all of the attributes that are defined in `nonKeyAttributes` in addition to the attributes that `KEYS_ONLY` project.- Returns:
- builder
-
projectionType
public TableGlobalSecondaryIndexArgs.Builder projectionType(java.lang.String projectionType)
- Parameters:
projectionType- One of `ALL`, `INCLUDE` or `KEYS_ONLY` where `ALL` projects every attribute into the index, `KEYS_ONLY` projects into the index only the table and index hashKey and sortKey attributes, `INCLUDE` projects into the index all of the attributes that are defined in `nonKeyAttributes` in addition to the attributes that `KEYS_ONLY` project.- Returns:
- builder
-
rangeKey
@Deprecated public TableGlobalSecondaryIndexArgs.Builder rangeKey(@Nullable com.pulumi.core.Output<java.lang.String> rangeKey)
Deprecated.range_key is deprecated. Use keySchema instead.- Parameters:
rangeKey- Name of the range key; must be defined as an attribute in the resource. Mutually exclusive with `keySchema`. Use `keySchema` instead.- Returns:
- builder
-
rangeKey
@Deprecated public TableGlobalSecondaryIndexArgs.Builder rangeKey(java.lang.String rangeKey)
Deprecated.range_key is deprecated. Use keySchema instead.- Parameters:
rangeKey- Name of the range key; must be defined as an attribute in the resource. Mutually exclusive with `keySchema`. Use `keySchema` instead.- Returns:
- builder
-
readCapacity
public TableGlobalSecondaryIndexArgs.Builder readCapacity(@Nullable com.pulumi.core.Output<java.lang.Integer> readCapacity)
- Parameters:
readCapacity- Number of read units for this index. Must be set if billingMode is set to PROVISIONED.- Returns:
- builder
-
readCapacity
public TableGlobalSecondaryIndexArgs.Builder readCapacity(java.lang.Integer readCapacity)
- Parameters:
readCapacity- Number of read units for this index. Must be set if billingMode is set to PROVISIONED.- Returns:
- builder
-
warmThroughput
public TableGlobalSecondaryIndexArgs.Builder warmThroughput(@Nullable com.pulumi.core.Output<TableGlobalSecondaryIndexWarmThroughputArgs> warmThroughput)
- Parameters:
warmThroughput- Sets the number of warm read and write units for this index. See below.- Returns:
- builder
-
warmThroughput
public TableGlobalSecondaryIndexArgs.Builder warmThroughput(TableGlobalSecondaryIndexWarmThroughputArgs warmThroughput)
- Parameters:
warmThroughput- Sets the number of warm read and write units for this index. See below.- Returns:
- builder
-
writeCapacity
public TableGlobalSecondaryIndexArgs.Builder writeCapacity(@Nullable com.pulumi.core.Output<java.lang.Integer> writeCapacity)
- Parameters:
writeCapacity- Number of write units for this index. Must be set if billingMode is set to PROVISIONED.- Returns:
- builder
-
writeCapacity
public TableGlobalSecondaryIndexArgs.Builder writeCapacity(java.lang.Integer writeCapacity)
- Parameters:
writeCapacity- Number of write units for this index. Must be set if billingMode is set to PROVISIONED.- Returns:
- builder
-
build
public TableGlobalSecondaryIndexArgs build()
-
-