Package software.amazon.awscdk
Class CustomResourceProviderBaseProps.Builder
java.lang.Object
software.amazon.awscdk.CustomResourceProviderBaseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomResourceProviderBaseProps>
- Enclosing interface:
CustomResourceProviderBaseProps
@Stability(Stable)
public static final class CustomResourceProviderBaseProps.Builder
extends Object
implements software.amazon.jsii.Builder<CustomResourceProviderBaseProps>
A builder for
CustomResourceProviderBaseProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codeDirectory
(String codeDirectory) Sets the value ofCustomResourceProviderBaseProps.getCodeDirectory()
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()
runtimeName
(String runtimeName) Sets the value ofCustomResourceProviderBaseProps.getRuntimeName()
Sets the value ofCustomResourceProviderOptions.getTimeout()
useCfnResponseWrapper
(Boolean useCfnResponseWrapper) Sets the value ofCustomResourceProviderOptions.getUseCfnResponseWrapper()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeDirectory
@Stability(Stable) public CustomResourceProviderBaseProps.Builder codeDirectory(String codeDirectory) Sets the value ofCustomResourceProviderBaseProps.getCodeDirectory()
- Parameters:
codeDirectory
- A local file system directory with the provider's code. This parameter is required. The code will be bundled into a zip asset and wired to the provider's AWS Lambda function.- Returns:
this
-
runtimeName
Sets the value ofCustomResourceProviderBaseProps.getRuntimeName()
- Parameters:
runtimeName
- The AWS Lambda runtime and version name to use for the provider. This parameter is required.- Returns:
this
-
description
Sets the value ofCustomResourceProviderOptions.getDescription()
- Parameters:
description
- A description of the function.- Returns:
this
-
environment
@Stability(Stable) public CustomResourceProviderBaseProps.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 CustomResourceProviderBaseProps.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 CustomResourceProviderBaseProps.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<CustomResourceProviderBaseProps>
- Returns:
- a new instance of
CustomResourceProviderBaseProps
- Throws:
NullPointerException
- if any required attribute was not provided
-