Interface SecondaryIndexProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
GlobalSecondaryIndexProps, LocalSecondaryIndexProps
All Known Implementing Classes:
GlobalSecondaryIndexProps.Jsii$Proxy, LocalSecondaryIndexProps.Jsii$Proxy, SecondaryIndexProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.288Z") @Stability(Stable) public interface SecondaryIndexProps extends software.amazon.jsii.JsiiSerializable
Properties for a secondary index.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.dynamodb.*;
 SecondaryIndexProps secondaryIndexProps = SecondaryIndexProps.builder()
         .indexName("indexName")
         // the properties below are optional
         .nonKeyAttributes(List.of("nonKeyAttributes"))
         .projectionType(ProjectionType.KEYS_ONLY)
         .build();
 
  • Method Details

    • getIndexName

      @Stability(Stable) @NotNull String getIndexName()
      The name of the secondary index.
    • getNonKeyAttributes

      @Stability(Stable) @Nullable default List<String> getNonKeyAttributes()
      The non-key attributes that are projected into the secondary index.

      Default: - No additional attributes

    • getProjectionType

      @Stability(Stable) @Nullable default ProjectionType getProjectionType()
      The set of attributes that are projected into the secondary index.

      Default: ALL

    • builder

      @Stability(Stable) static SecondaryIndexProps.Builder builder()
      Returns:
      a SecondaryIndexProps.Builder of SecondaryIndexProps