@Stability(value=Stable) @Internal public static final class CustomResourceProviderProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CustomResourceProviderProps
CustomResourceProviderPropssoftware.amazon.jsii.JsiiObject.InitializationModeCustomResourceProviderProps.Builder, CustomResourceProviderProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CustomResourceProviderProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CustomResourceProviderProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getCodeDirectory()
A local file system directory with the provider's code.
|
String |
getDescription()
A description of the function.
|
Map<String,String> |
getEnvironment()
Key-value pairs that are passed to Lambda as Environment.
|
Size |
getMemorySize()
The amount of memory that your function has access to.
|
List<Object> |
getPolicyStatements()
A set of IAM policy statements to include in the inline policy of the provider's lambda function.
|
CustomResourceProviderRuntime |
getRuntime()
The AWS Lambda runtime and version to use for the provider.
|
Duration |
getTimeout()
AWS Lambda timeout for the provider.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CustomResourceProviderProps.Builder builder)
CustomResourceProviderProps.Builder.public final String getCodeDirectory()
CustomResourceProviderPropsThe code will be bundled into a zip asset and wired to the provider's AWS Lambda function.
getCodeDirectory in interface CustomResourceProviderPropspublic final CustomResourceProviderRuntime getRuntime()
CustomResourceProviderPropsgetRuntime in interface CustomResourceProviderPropspublic final String getDescription()
CustomResourceProviderPropsDefault: - No description.
getDescription in interface CustomResourceProviderPropspublic final Map<String,String> getEnvironment()
CustomResourceProviderPropsDefault: - No environment variables.
getEnvironment in interface CustomResourceProviderPropspublic final Size getMemorySize()
CustomResourceProviderPropsIncreasing the function's memory also increases its CPU allocation.
Default: Size.mebibytes(128)
getMemorySize in interface CustomResourceProviderPropspublic final List<Object> getPolicyStatements()
CustomResourceProviderProps
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:
// Example automatically generated from non-compiling source. May contain errors.
CustomResourceProvider provider = CustomResourceProvider.getOrCreateProvider(this, "Custom::MyCustomResourceType", CustomResourceProviderProps.builder()
.codeDirectory(String.format("%s/my-handler", __dirname))
.runtime(CustomResourceProviderRuntime.NODEJS_14_X)
.policyStatements(List.of(Map.of(
"Effect", "Allow",
"Action", "s3:PutObject*",
"Resource", "*")))
.build());
getPolicyStatements in interface CustomResourceProviderPropspublic final Duration getTimeout()
CustomResourceProviderPropsDefault: Duration.minutes(15)
getTimeout in interface CustomResourceProviderProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.