@Stability(value=Stable) @Internal public static final class AwsCustomResourceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AwsCustomResourceProps
AwsCustomResourcePropssoftware.amazon.jsii.JsiiObject.InitializationModeAwsCustomResourceProps.Builder, AwsCustomResourceProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(AwsCustomResourceProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
AwsCustomResourceProps.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 |
getFunctionName()
A name for the singleton Lambda function implementing this custom resource.
|
Boolean |
getInstallLatestAwsSdk()
Whether to install the latest AWS SDK v2.
|
RetentionDays |
getLogRetention()
The number of days log events of the singleton Lambda function implementing this custom resource are kept in CloudWatch Logs.
|
AwsSdkCall |
getOnCreate()
The AWS SDK call to make when the resource is created.
|
AwsSdkCall |
getOnDelete()
The AWS SDK call to make when the resource is deleted.
|
AwsSdkCall |
getOnUpdate()
The AWS SDK call to make when the resource is updated.
|
AwsCustomResourcePolicy |
getPolicy()
The policy that will be added to the execution role of the Lambda function implementing this custom resource provider.
|
String |
getResourceType()
Cloudformation Resource type.
|
IRole |
getRole()
The execution role for the singleton Lambda function implementing this custom resource provider.
|
Duration |
getTimeout()
The timeout for the singleton Lambda function implementing this custom resource.
|
IVpc |
getVpc()
The vpc to provision the lambda function in.
|
SubnetSelection |
getVpcSubnets()
Which subnets from the VPC to place the lambda function in.
|
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(AwsCustomResourceProps.Builder builder)
AwsCustomResourceProps.Builder.public final String getFunctionName()
AwsCustomResourcePropsThe function name will remain the same after the first AwsCustomResource is created in a stack.
Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
getFunctionName in interface AwsCustomResourcePropspublic final Boolean getInstallLatestAwsSdk()
AwsCustomResourcePropsThe installation takes around 60 seconds.
Default: true
getInstallLatestAwsSdk in interface AwsCustomResourcePropspublic final RetentionDays getLogRetention()
AwsCustomResourcePropsDefault: logs.RetentionDays.INFINITE
getLogRetention in interface AwsCustomResourcePropspublic final AwsSdkCall getOnCreate()
AwsCustomResourcePropsDefault: - the call when the resource is updated
getOnCreate in interface AwsCustomResourcePropspublic final AwsSdkCall getOnDelete()
AwsCustomResourcePropsDefault: - no call
getOnDelete in interface AwsCustomResourcePropspublic final AwsSdkCall getOnUpdate()
AwsCustomResourcePropsDefault: - no call
getOnUpdate in interface AwsCustomResourcePropspublic final AwsCustomResourcePolicy getPolicy()
AwsCustomResourceProps
The custom resource also implements iam.IGrantable, making it possible
to use the grantXxx() methods.
As this custom resource uses a singleton Lambda function, it's important to note the that function's role will eventually accumulate the permissions/grants from all resources.
Note that a policy must be specified if role is not provided, as
by default a new role is created which requires policy changes to access
resources.
Default: - no policy added
getPolicy in interface AwsCustomResourcePropspublic final String getResourceType()
AwsCustomResourcePropsDefault: - Custom::AWS
getResourceType in interface AwsCustomResourcePropspublic final IRole getRole()
AwsCustomResourceProps
This role will apply to all AwsCustomResource
instances in the stack. The role must be assumable by the
lambda.amazonaws.com service principal.
Default: - a new role is created
getRole in interface AwsCustomResourcePropspublic final Duration getTimeout()
AwsCustomResourcePropsDefault: Duration.minutes(2)
getTimeout in interface AwsCustomResourcePropspublic final IVpc getVpc()
AwsCustomResourcePropsDefault: - the function is not provisioned inside a vpc.
getVpc in interface AwsCustomResourcePropspublic final SubnetSelection getVpcSubnets()
AwsCustomResourcePropsOnly used if 'vpc' is supplied. Note: internet access for Lambdas requires a NAT gateway, so picking Public subnets is not allowed.
Default: - the Vpc default strategy if not specified
getVpcSubnets in interface AwsCustomResourceProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.