Class PartitionKey
Specifies the assignment to the partition key.
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PartitionKey : PrimaryKey
Syntax (vb)
Public Class PartitionKey
Inherits PrimaryKey
Remarks
It can be enhanced with the assignment of the sort key.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
Assign assign;
var partitionKey = new PartitionKey(assign);
Synopsis
Constructors
PartitionKey(Assign) | |
PartitionKey(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
PartitionKey(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Sort(String) | Allows assigning a value to the sort key. |
Constructors
PartitionKey(Assign)
PartitionKey(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected PartitionKey(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
PartitionKey(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected PartitionKey(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Sort(String)
Allows assigning a value to the sort key.
public virtual SortKeyStep Sort(string key)
Parameters
- key System.String
Returns