Interface AWSLambdaDestination
- All Superinterfaces:
ExtensionDestination
- All Known Subinterfaces:
ExtensionAWSLambdaDestination
We recommend creating an Identify and Access Management (IAM) user with an accessKey and accessSecret pair, specifically for each Extension that only has the lambda:InvokeFunction permission on this function.
Example to create an instance using the builder pattern
AWSLambdaDestination aWSLambdaDestination = AWSLambdaDestination.builder()
.arn("{arn}")
.accessKey("{accessKey}")
.accessSecret("{accessSecret}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AWSLambdaDestination -
Method Summary
Modifier and TypeMethodDescriptionstatic AWSLambdaDestinationBuilderbuilder()builder factory method for AWSLambdaDestinationstatic AWSLambdaDestinationBuilderbuilder(AWSLambdaDestination template) create builder for AWSLambdaDestination instancecopyDeep()static AWSLambdaDestinationdeepCopy(AWSLambdaDestination template) factory method to create a deep copy of AWSLambdaDestination@NotNull StringPartially hidden on retrieval for security reasons.@NotNull StringPartially hidden on retrieval for security reasons.@NotNull StringgetArn()Amazon Resource Name (ARN) of the Lambda function in the formatarn:aws:lambda:<region>:<accountid>:function:<functionName>.static AWSLambdaDestinationof()factory methodstatic AWSLambdaDestinationof(AWSLambdaDestination template) factory method to create a shallow copy AWSLambdaDestinationvoidsetAccessKey(String accessKey) Partially hidden on retrieval for security reasons.voidsetAccessSecret(String accessSecret) Partially hidden on retrieval for security reasons.voidAmazon Resource Name (ARN) of the Lambda function in the formatarn:aws:lambda:<region>:<accountid>:function:<functionName>.static com.fasterxml.jackson.core.type.TypeReference<AWSLambdaDestination>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAWSLambdaDestination(Function<AWSLambdaDestination, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.extension.ExtensionDestination
getType, withExtensionDestination
-
Field Details
-
AWS_LAMBDA
discriminator value for AWSLambdaDestination- See Also:
-
-
Method Details
-
getArn
Amazon Resource Name (ARN) of the Lambda function in the format
arn:aws:lambda:<region>:<accountid>:function:<functionName>. Use the formatarn:aws:lambda:<region>:<accountid>:function:<functionName>:<functionAlias/version>to point to a specific version of the function.- Returns:
- arn
-
getAccessKey
Partially hidden on retrieval for security reasons.
- Returns:
- accessKey
-
getAccessSecret
Partially hidden on retrieval for security reasons.
- Returns:
- accessSecret
-
setArn
Amazon Resource Name (ARN) of the Lambda function in the format
arn:aws:lambda:<region>:<accountid>:function:<functionName>. Use the formatarn:aws:lambda:<region>:<accountid>:function:<functionName>:<functionAlias/version>to point to a specific version of the function.- Parameters:
arn- value to be set
-
setAccessKey
Partially hidden on retrieval for security reasons.
- Parameters:
accessKey- value to be set
-
setAccessSecret
Partially hidden on retrieval for security reasons.
- Parameters:
accessSecret- value to be set
-
of
factory method- Returns:
- instance of AWSLambdaDestination
-
of
factory method to create a shallow copy AWSLambdaDestination- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AWSLambdaDestination copyDeep()- Specified by:
copyDeepin interfaceExtensionDestination
-
deepCopy
factory method to create a deep copy of AWSLambdaDestination- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AWSLambdaDestination- Returns:
- builder
-
builder
create builder for AWSLambdaDestination instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAWSLambdaDestination
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-