Package software.amazon.awscdk
Interface CustomResourceProviderProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CustomResourceProviderProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-11-02T10:21:13.135Z")
@Stability(Stable)
public interface CustomResourceProviderProps
extends software.amazon.jsii.JsiiSerializable
Initialization properties for
CustomResourceProvider
.
Example:
CustomResourceProvider provider = CustomResourceProvider.getOrCreateProvider(this, "Custom::MyCustomResourceType", CustomResourceProviderProps.builder() .codeDirectory(String.format("%s/my-handler", __dirname)) .runtime(CustomResourceProviderRuntime.NODEJS_18_X) .build()); provider.addToRolePolicy(Map.of( "Effect", "Allow", "Action", "s3:GetObject", "Resource", "*"));
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCustomResourceProviderProps
static final class
An implementation forCustomResourceProviderProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
A local file system directory with the provider's code.default String
A description of the function.Key-value pairs that are passed to Lambda as Environment.default Size
The amount of memory that your function has access to.A set of IAM policy statements to include in the inline policy of the provider's lambda function.The AWS Lambda runtime and version to use for the provider.default Duration
AWS Lambda timeout for the provider.default Boolean
Whether or not the cloudformation response wrapper (nodejs-entrypoint.ts
) is used.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCodeDirectory
A local file system directory with the provider's code.The code will be bundled into a zip asset and wired to the provider's AWS Lambda function.
-
getRuntime
The AWS Lambda runtime and version to use for the provider. -
getDescription
A description of the function.Default: - No description.
-
getEnvironment
Key-value pairs that are passed to Lambda as Environment.Default: - No environment variables.
-
getMemorySize
The amount of memory that your function has access to.Increasing the function's memory also increases its CPU allocation.
Default: Size.mebibytes(128)
-
getPolicyStatements
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, not
iam.PolicyStatement
objects like you will see in the rest of the CDK.Default: - no additional inline policy
Example:
CustomResourceProvider provider = CustomResourceProvider.getOrCreateProvider(this, "Custom::MyCustomResourceType", CustomResourceProviderProps.builder() .codeDirectory(String.format("%s/my-handler", __dirname)) .runtime(CustomResourceProviderRuntime.NODEJS_18_X) .policyStatements(List.of(Map.of( "Effect", "Allow", "Action", "s3:PutObject*", "Resource", "*"))) .build());
-
getTimeout
AWS Lambda timeout for the provider.Default: Duration.minutes(15)
-
getUseCfnResponseWrapper
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.Default: - `true` if `inlineCode: false` and `false` otherwise.
-
builder
-