Class TableGlobalSecondaryIndexArgs.Builder

    • 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
      • 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
      • 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
      • 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