@Stability(value=Experimental) @Internal public static final class AwsCustomResourceProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AwsCustomResourceProps
AwsCustomResourceProps
software.amazon.jsii.JsiiObject.InitializationMode
AwsCustomResourceProps.Builder, AwsCustomResourceProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(AwsCustomResourcePolicy policy,
String functionName,
Boolean installLatestAwsSdk,
RetentionDays logRetention,
AwsSdkCall onCreate,
AwsSdkCall onDelete,
AwsSdkCall onUpdate,
String resourceType,
IRole role,
Duration timeout)
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()
(experimental) A name for the Lambda function implementing this custom resource.
|
Boolean |
getInstallLatestAwsSdk()
(experimental) Whether to install the latest AWS SDK v2.
|
RetentionDays |
getLogRetention()
(experimental) The number of days log events of the Lambda function implementing this custom resource are kept in CloudWatch Logs.
|
AwsSdkCall |
getOnCreate()
(experimental) The AWS SDK call to make when the resource is created.
|
AwsSdkCall |
getOnDelete()
(experimental) The AWS SDK call to make when the resource is deleted.
|
AwsSdkCall |
getOnUpdate()
(experimental) The AWS SDK call to make when the resource is updated.
|
AwsCustomResourcePolicy |
getPolicy()
(experimental) The policy that will be added to the execution role of the Lambda function implementing this custom resource provider.
|
String |
getResourceType()
(experimental) Cloudformation Resource type.
|
IRole |
getRole()
(experimental) The execution role for the Lambda function implementing this custom resource provider.
|
Duration |
getTimeout()
(experimental) The timeout for the Lambda function implementing this custom resource.
|
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(AwsCustomResourcePolicy policy, String functionName, Boolean installLatestAwsSdk, RetentionDays logRetention, AwsSdkCall onCreate, AwsSdkCall onDelete, AwsSdkCall onUpdate, String resourceType, IRole role, Duration timeout)
AwsCustomResourceProps.Builder
.public 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.
getPolicy
in interface AwsCustomResourceProps
Policy.fromSdkCalls
public final String getFunctionName()
AwsCustomResourceProps
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 AwsCustomResourceProps
public final Boolean getInstallLatestAwsSdk()
AwsCustomResourceProps
The installation takes around 60 seconds.
Default: true
getInstallLatestAwsSdk
in interface AwsCustomResourceProps
public final RetentionDays getLogRetention()
AwsCustomResourceProps
Default: logs.RetentionDays.INFINITE
getLogRetention
in interface AwsCustomResourceProps
public final AwsSdkCall getOnCreate()
AwsCustomResourceProps
Default: - the call when the resource is updated
getOnCreate
in interface AwsCustomResourceProps
public final AwsSdkCall getOnDelete()
AwsCustomResourceProps
Default: - no call
getOnDelete
in interface AwsCustomResourceProps
public final AwsSdkCall getOnUpdate()
AwsCustomResourceProps
Default: - no call
getOnUpdate
in interface AwsCustomResourceProps
public final String getResourceType()
AwsCustomResourceProps
Default: - Custom::AWS
getResourceType
in interface AwsCustomResourceProps
public 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 AwsCustomResourceProps
public final Duration getTimeout()
AwsCustomResourceProps
Default: Duration.minutes(2)
getTimeout
in interface AwsCustomResourceProps
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.