@Stability(value=Experimental) public static final class AwsCustomResourceProps.Builder extends Object implements software.amazon.jsii.Builder<AwsCustomResourceProps>
AwsCustomResourceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public AwsCustomResourceProps.Builder policy(AwsCustomResourcePolicy policy)
AwsCustomResourceProps.getPolicy()policy - The policy that will be added to the execution role of the Lambda function implementing this custom resource provider. This parameter is required.
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.
this@Stability(value=Experimental) public AwsCustomResourceProps.Builder functionName(String functionName)
AwsCustomResourceProps.getFunctionName()functionName - A name for the Lambda function implementing this custom resource.this@Stability(value=Experimental) public AwsCustomResourceProps.Builder installLatestAwsSdk(Boolean installLatestAwsSdk)
AwsCustomResourceProps.getInstallLatestAwsSdk()installLatestAwsSdk - Whether to install the latest AWS SDK v2. Allows to use the latest API calls documented at https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/index.html.
The installation takes around 60 seconds.this@Stability(value=Experimental) public AwsCustomResourceProps.Builder logRetention(RetentionDays logRetention)
AwsCustomResourceProps.getLogRetention()logRetention - The number of days log events of the Lambda function implementing this custom resource are kept in CloudWatch Logs.this@Stability(value=Experimental) public AwsCustomResourceProps.Builder onCreate(AwsSdkCall onCreate)
AwsCustomResourceProps.getOnCreate()onCreate - The AWS SDK call to make when the resource is created.this@Stability(value=Experimental) public AwsCustomResourceProps.Builder onDelete(AwsSdkCall onDelete)
AwsCustomResourceProps.getOnDelete()onDelete - The AWS SDK call to make when the resource is deleted.this@Stability(value=Experimental) public AwsCustomResourceProps.Builder onUpdate(AwsSdkCall onUpdate)
AwsCustomResourceProps.getOnUpdate()onUpdate - The AWS SDK call to make when the resource is updated.this@Stability(value=Experimental) public AwsCustomResourceProps.Builder resourceType(String resourceType)
AwsCustomResourceProps.getResourceType()resourceType - Cloudformation Resource type.this@Stability(value=Experimental) public AwsCustomResourceProps.Builder role(IRole role)
AwsCustomResourceProps.getRole()role - The execution role for the Lambda function implementing this custom resource provider.
This role will apply to all AwsCustomResource
instances in the stack. The role must be assumable by the
lambda.amazonaws.com service principal.this@Stability(value=Experimental) public AwsCustomResourceProps.Builder timeout(Duration timeout)
AwsCustomResourceProps.getTimeout()timeout - The timeout for the Lambda function implementing this custom resource.this@Stability(value=Experimental) public AwsCustomResourceProps build()
build in interface software.amazon.jsii.Builder<AwsCustomResourceProps>AwsCustomResourcePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.