Interface AWSLambdaDestination
- All Superinterfaces:
ExtensionDestination
- All Known Subinterfaces:
ExtensionAWSLambdaDestination
- All Known Implementing Classes:
AWSLambdaDestinationImpl
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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AWSLambdaDestination -
Method Summary
Modifier and TypeMethodDescriptionstatic AWSLambdaDestinationBuilder
builder()
builder factory method for AWSLambdaDestinationstatic AWSLambdaDestinationBuilder
builder
(AWSLambdaDestination template) create builder for AWSLambdaDestination instancestatic AWSLambdaDestination
deepCopy
(AWSLambdaDestination template) factory method to create a deep copy of AWSLambdaDestination@NotNull String
Partially hidden on retrieval for security reasons.@NotNull String
Partially hidden on retrieval for security reasons.@NotNull String
getArn()
Amazon Resource Name (ARN) of the Lambda function in the formatarn:aws:lambda:<region>:<accountid>:function:<functionName>
.static AWSLambdaDestination
of()
factory methodstatic AWSLambdaDestination
of
(AWSLambdaDestination template) factory method to create a shallow copy AWSLambdaDestinationvoid
setAccessKey
(String accessKey) Partially hidden on retrieval for security reasons.void
setAccessSecret
(String accessSecret) Partially hidden on retrieval for security reasons.void
Amazon 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> T
withAWSLambdaDestination
(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
-
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
-