Class PartitionKey

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.appsync.PrimaryKey
software.amazon.awscdk.services.appsync.PartitionKey
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:49.561Z") @Stability(Experimental) public class PartitionKey extends PrimaryKey
(experimental) Specifies the assignment to the partition key.

It can be enhanced with the assignment of the sort key.

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.appsync.*;
 Assign assign;
 PartitionKey partitionKey = new PartitionKey(assign);
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    PartitionKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    PartitionKey(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    sort(String key)
    (experimental) Allows assigning a value to the sort key.

    Methods inherited from class software.amazon.awscdk.services.appsync.PrimaryKey

    getPkey, partition, renderTemplate

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • PartitionKey

      protected PartitionKey(software.amazon.jsii.JsiiObjectRef objRef)
    • PartitionKey

      protected PartitionKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • PartitionKey

      @Stability(Experimental) public PartitionKey(@NotNull Assign pkey)
      Parameters:
      pkey - This parameter is required.
  • Method Details

    • sort

      @Stability(Experimental) @NotNull public SortKeyStep sort(@NotNull String key)
      (experimental) Allows assigning a value to the sort key.

      Parameters:
      key - This parameter is required.