@Stability(value=Experimental) public static final class ProviderProps.Builder extends Object implements software.amazon.jsii.Builder<ProviderProps>
ProviderProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ProviderProps |
build()
Builds the configured instance.
|
ProviderProps.Builder |
isCompleteHandler(IFunction isCompleteHandler)
Sets the value of
ProviderProps.getIsCompleteHandler() |
ProviderProps.Builder |
logRetention(RetentionDays logRetention)
Sets the value of
ProviderProps.getLogRetention() |
ProviderProps.Builder |
onEventHandler(IFunction onEventHandler)
Sets the value of
ProviderProps.getOnEventHandler() |
ProviderProps.Builder |
queryInterval(Duration queryInterval)
Sets the value of
ProviderProps.getQueryInterval() |
ProviderProps.Builder |
totalTimeout(Duration totalTimeout)
Sets the value of
ProviderProps.getTotalTimeout() |
@Stability(value=Experimental) public ProviderProps.Builder onEventHandler(IFunction onEventHandler)
ProviderProps.getOnEventHandler()onEventHandler - The AWS Lambda function to invoke for all resource lifecycle operations (CREATE/UPDATE/DELETE). This parameter is required.
This function is responsible to begin the requested resource operation
(CREATE/UPDATE/DELETE) and return any additional properties to add to the
event, which will later be passed to isComplete. The PhysicalResourceId
property must be included in the response.this@Stability(value=Experimental) public ProviderProps.Builder isCompleteHandler(IFunction isCompleteHandler)
ProviderProps.getIsCompleteHandler()isCompleteHandler - The AWS Lambda function to invoke in order to determine if the operation is complete.
This function will be called immediately after onEvent and then
periodically based on the configured query interval as long as it returns
false. If the function still returns false and the alloted timeout has
passed, the operation will fail.this@Stability(value=Experimental) public ProviderProps.Builder logRetention(RetentionDays logRetention)
ProviderProps.getLogRetention()logRetention - The number of days framework log events are kept in CloudWatch Logs.
When
updating this property, unsetting it doesn't remove the log retention policy.
To remove the retention policy, set the value to INFINITE.this@Stability(value=Experimental) public ProviderProps.Builder queryInterval(Duration queryInterval)
ProviderProps.getQueryInterval()queryInterval - Time between calls to the `isComplete` handler which determines if the resource has been stabilized.
The first isComplete will be called immediately after handler and then
every queryInterval seconds, and until timeout has been reached or until
isComplete returns true.this@Stability(value=Experimental) public ProviderProps.Builder totalTimeout(Duration totalTimeout)
ProviderProps.getTotalTimeout()totalTimeout - Total timeout for the entire operation.
The maximum timeout is 2 hours (yes, it can exceed the AWS Lambda 15 minutes)this@Stability(value=Experimental) public ProviderProps build()
build in interface software.amazon.jsii.Builder<ProviderProps>ProviderPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.