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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSecondaryIndexPropsstatic final classAn implementation forSecondaryIndexProps -
Method Summary
Modifier and TypeMethodDescriptionstatic SecondaryIndexProps.Builderbuilder()The name of the secondary index.The non-key attributes that are projected into the secondary index.default ProjectionTypeThe set of attributes that are projected into the secondary index.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIndexName
The name of the secondary index. -
getNonKeyAttributes
The non-key attributes that are projected into the secondary index.Default: - No additional attributes
-
getProjectionType
The set of attributes that are projected into the secondary index.Default: ALL
-
builder
- Returns:
- a
SecondaryIndexProps.BuilderofSecondaryIndexProps
-