software.amazon.awscdk.services.appsync.PartitionKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync Show documentation
Show all versions of appsync Show documentation
The CDK Construct Library for AWS::AppSync
package software.amazon.awscdk.services.appsync;
/**
* (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);
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.72.0 (build 4b8828b)", date = "2023-01-11T14:44:52.284Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.appsync.$Module.class, fqn = "@aws-cdk/aws-appsync.PartitionKey")
public class PartitionKey extends software.amazon.awscdk.services.appsync.PrimaryKey {
protected PartitionKey(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected PartitionKey(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param pkey This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public PartitionKey(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.Assign pkey) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(pkey, "pkey is required") });
}
/**
* (experimental) Allows assigning a value to the sort key.
*
* @param key This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.SortKeyStep sort(final @org.jetbrains.annotations.NotNull java.lang.String key) {
return software.amazon.jsii.Kernel.call(this, "sort", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.SortKeyStep.class), new Object[] { java.util.Objects.requireNonNull(key, "key is required") });
}
}