@Stability(value=Stable) @Internal public static final class CustomResourceProviderProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CustomResourceProviderProps
CustomResourceProviderProps
software.amazon.jsii.JsiiObject.InitializationMode
CustomResourceProviderProps.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, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected 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()
CustomResourceProviderProps
The code will be bundled into a zip asset and wired to the provider's AWS Lambda function.
getCodeDirectory
in interface CustomResourceProviderProps
public final CustomResourceProviderRuntime getRuntime()
CustomResourceProviderProps
getRuntime
in interface CustomResourceProviderProps
public final String getDescription()
CustomResourceProviderProps
Default: - No description.
getDescription
in interface CustomResourceProviderProps
public final Map<String,String> getEnvironment()
CustomResourceProviderProps
Default: - No environment variables.
getEnvironment
in interface CustomResourceProviderProps
public final Size getMemorySize()
CustomResourceProviderProps
Increasing the function's memory also increases its CPU allocation.
Default: Size.mebibytes(128)
getMemorySize
in interface CustomResourceProviderProps
public 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:
CustomResourceProvider provider = CustomResourceProvider.getOrCreateProvider(this, "Custom::MyCustomResourceType", CustomResourceProviderProps.builder() .codeDirectory(String.format("%s/my-handler", __dirname)) .runtime(CustomResourceProviderRuntime.NODEJS_12_X) .policyStatements(List.of(Map.of( "Effect", "Allow", "Action", "s3:PutObject*", "Resource", "*"))) .build());
getPolicyStatements
in interface CustomResourceProviderProps
public final Duration getTimeout()
CustomResourceProviderProps
Default: Duration.minutes(15)
getTimeout
in interface CustomResourceProviderProps
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2022. All rights reserved.