Package software.amazon.awscdk
Class CfnCustomResourceProps.Builder
java.lang.Object
software.amazon.awscdk.CfnCustomResourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomResourceProps>
- Enclosing interface:
CfnCustomResourceProps
@Stability(Stable)
public static final class CfnCustomResourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomResourceProps>
A builder for
CfnCustomResourceProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.serviceTimeout
(Number serviceTimeout) Sets the value ofCfnCustomResourceProps.getServiceTimeout()
serviceToken
(String serviceToken) Sets the value ofCfnCustomResourceProps.getServiceToken()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serviceToken
Sets the value ofCfnCustomResourceProps.getServiceToken()
- Parameters:
serviceToken
- The service token, such as an Amazon SNS topic ARN or Lambda function ARN. This parameter is required. The service token must be from the same Region as the stack.Updates aren't supported.
- Returns:
this
-
serviceTimeout
Sets the value ofCfnCustomResourceProps.getServiceTimeout()
- Parameters:
serviceTimeout
- The maximum time, in seconds, that can elapse before a custom resource operation times out. The value must be an integer from 1 to 3600. The default value is 3600 seconds (1 hour).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCustomResourceProps>
- Returns:
- a new instance of
CfnCustomResourceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-