Package software.amazon.awscdk
Class CustomResourceProviderOptions.Builder
java.lang.Object
software.amazon.awscdk.CustomResourceProviderOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomResourceProviderOptions>
- Enclosing interface:
CustomResourceProviderOptions
@Stability(Stable)
public static final class CustomResourceProviderOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CustomResourceProviderOptions>
A builder for
CustomResourceProviderOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCustomResourceProviderOptions.getDescription()
environment
(Map<String, String> environment) Sets the value ofCustomResourceProviderOptions.getEnvironment()
memorySize
(Size memorySize) Sets the value ofCustomResourceProviderOptions.getMemorySize()
policyStatements
(List<? extends Object> policyStatements) Sets the value ofCustomResourceProviderOptions.getPolicyStatements()
Sets the value ofCustomResourceProviderOptions.getTimeout()
useCfnResponseWrapper
(Boolean useCfnResponseWrapper) Sets the value ofCustomResourceProviderOptions.getUseCfnResponseWrapper()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCustomResourceProviderOptions.getDescription()
- Parameters:
description
- A description of the function.- Returns:
this
-
environment
@Stability(Stable) public CustomResourceProviderOptions.Builder environment(Map<String, String> environment) Sets the value ofCustomResourceProviderOptions.getEnvironment()
- Parameters:
environment
- Key-value pairs that are passed to Lambda as Environment.- Returns:
this
-
memorySize
Sets the value ofCustomResourceProviderOptions.getMemorySize()
- Parameters:
memorySize
- The amount of memory that your function has access to. Increasing the function's memory also increases its CPU allocation.- Returns:
this
-
policyStatements
@Stability(Stable) public CustomResourceProviderOptions.Builder policyStatements(List<? extends Object> policyStatements) Sets the value ofCustomResourceProviderOptions.getPolicyStatements()
- Parameters:
policyStatements
- A set of IAM policy statements to include in the inline policy of the provider's lambda function. Please note: these are direct IAM JSON policy blobs, notiam.PolicyStatement
objects like you will see in the rest of the CDK.- Returns:
this
-
timeout
Sets the value ofCustomResourceProviderOptions.getTimeout()
- Parameters:
timeout
- AWS Lambda timeout for the provider.- Returns:
this
-
useCfnResponseWrapper
@Stability(Stable) public CustomResourceProviderOptions.Builder useCfnResponseWrapper(Boolean useCfnResponseWrapper) Sets the value ofCustomResourceProviderOptions.getUseCfnResponseWrapper()
- Parameters:
useCfnResponseWrapper
- Whether or not the cloudformation response wrapper (nodejs-entrypoint.ts
) is used. If set totrue
,nodejs-entrypoint.js
is bundled in the same asset as the custom resource and set as the entrypoint. If set tofalse
, the custom resource provided is the entrypoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomResourceProviderOptions>
- Returns:
- a new instance of
CustomResourceProviderOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-