@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:29:26.969Z") @Stability(value=Experimental) public abstract class MappingTemplate extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
MappingTemplate() |
protected |
MappingTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
MappingTemplate(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static MappingTemplate |
dynamoDbDeleteItem(String keyName,
String idArg)
(experimental) Mapping template to delete a single item from a DynamoDB table.
|
static MappingTemplate |
dynamoDbGetItem(String keyName,
String idArg)
(experimental) Mapping template to get a single item from a DynamoDB table.
|
static MappingTemplate |
dynamoDbPutItem(PrimaryKey key,
AttributeValues values)
(experimental) Mapping template to save a single item to a DynamoDB table.
|
static MappingTemplate |
dynamoDbQuery(KeyCondition cond)
(experimental) Mapping template to query a set of items from a DynamoDB table.
|
static MappingTemplate |
dynamoDbQuery(KeyCondition cond,
String indexName)
(experimental) Mapping template to query a set of items from a DynamoDB table.
|
static MappingTemplate |
dynamoDbResultItem()
(experimental) Mapping template for a single result item from DynamoDB.
|
static MappingTemplate |
dynamoDbResultList()
(experimental) Mapping template for a result list from DynamoDB.
|
static MappingTemplate |
dynamoDbScanTable()
(experimental) Mapping template to scan a DynamoDB table to fetch all entries.
|
static MappingTemplate |
fromFile(String fileName)
(experimental) Create a mapping template from the given file.
|
static MappingTemplate |
fromString(String template)
(experimental) Create a mapping template from the given string.
|
static MappingTemplate |
lambdaRequest()
(experimental) Mapping template to invoke a Lambda function.
|
static MappingTemplate |
lambdaRequest(String payload)
(experimental) Mapping template to invoke a Lambda function.
|
static MappingTemplate |
lambdaResult()
(experimental) Mapping template to return the Lambda result to the caller.
|
abstract String |
renderTemplate()
(experimental) this is called to render the mapping template to a VTL string.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected MappingTemplate(software.amazon.jsii.JsiiObjectRef objRef)
protected MappingTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) protected MappingTemplate()
@Stability(value=Experimental) @NotNull public static MappingTemplate dynamoDbDeleteItem(@NotNull String keyName, @NotNull String idArg)
keyName - the name of the hash key field. This parameter is required.idArg - the name of the Mutation argument. This parameter is required.@Stability(value=Experimental) @NotNull public static MappingTemplate dynamoDbGetItem(@NotNull String keyName, @NotNull String idArg)
keyName - the name of the hash key field. This parameter is required.idArg - the name of the Query argument. This parameter is required.@Stability(value=Experimental) @NotNull public static MappingTemplate dynamoDbPutItem(@NotNull PrimaryKey key, @NotNull AttributeValues values)
key - the assigment of Mutation values to the primary key. This parameter is required.values - the assignment of Mutation values to the table attributes. This parameter is required.@Stability(value=Experimental) @NotNull public static MappingTemplate dynamoDbQuery(@NotNull KeyCondition cond, @Nullable String indexName)
cond - the key condition for the query. This parameter is required.indexName - @Stability(value=Experimental) @NotNull public static MappingTemplate dynamoDbQuery(@NotNull KeyCondition cond)
cond - the key condition for the query. This parameter is required.@Stability(value=Experimental) @NotNull public static MappingTemplate dynamoDbResultItem()
@Stability(value=Experimental) @NotNull public static MappingTemplate dynamoDbResultList()
@Stability(value=Experimental) @NotNull public static MappingTemplate dynamoDbScanTable()
@Stability(value=Experimental) @NotNull public static MappingTemplate fromFile(@NotNull String fileName)
fileName - This parameter is required.@Stability(value=Experimental) @NotNull public static MappingTemplate fromString(@NotNull String template)
template - This parameter is required.@Stability(value=Experimental) @NotNull public static MappingTemplate lambdaRequest(@Nullable String payload)
payload - the VTL template snippet of the payload to send to the lambda.@Stability(value=Experimental) @NotNull public static MappingTemplate lambdaRequest()
@Stability(value=Experimental) @NotNull public static MappingTemplate lambdaResult()
@Stability(value=Experimental) @NotNull public abstract String renderTemplate()
Copyright © 2021. All rights reserved.