@Stability(value=Stable) public static final class AwsCustomResourceProps.Builder extends Object implements software.amazon.jsii.Builder<AwsCustomResourceProps>
AwsCustomResourceProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public AwsCustomResourceProps.Builder functionName(String functionName)
AwsCustomResourceProps.getFunctionName()functionName - A name for the singleton Lambda function implementing this custom resource.
The function name will remain the same after the first AwsCustomResource is created in a stack.this@Stability(value=Stable) 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=Stable) public AwsCustomResourceProps.Builder logRetention(RetentionDays logRetention)
AwsCustomResourceProps.getLogRetention()logRetention - The number of days log events of the singleton Lambda function implementing this custom resource are kept in CloudWatch Logs.this@Stability(value=Stable) public AwsCustomResourceProps.Builder onCreate(AwsSdkCall onCreate)
AwsCustomResourceProps.getOnCreate()onCreate - The AWS SDK call to make when the resource is created.this@Stability(value=Stable) public AwsCustomResourceProps.Builder onDelete(AwsSdkCall onDelete)
AwsCustomResourceProps.getOnDelete()onDelete - The AWS SDK call to make when the resource is deleted.this@Stability(value=Stable) public AwsCustomResourceProps.Builder onUpdate(AwsSdkCall onUpdate)
AwsCustomResourceProps.getOnUpdate()onUpdate - The AWS SDK call to make when the resource is updated.this@Stability(value=Stable) 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.
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.
this@Stability(value=Stable) public AwsCustomResourceProps.Builder resourceType(String resourceType)
AwsCustomResourceProps.getResourceType()resourceType - Cloudformation Resource type.this@Stability(value=Stable) public AwsCustomResourceProps.Builder role(IRole role)
AwsCustomResourceProps.getRole()role - The execution role for the singleton 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=Stable) public AwsCustomResourceProps.Builder timeout(Duration timeout)
AwsCustomResourceProps.getTimeout()timeout - The timeout for the singleton Lambda function implementing this custom resource.this@Stability(value=Stable) public AwsCustomResourceProps.Builder vpc(IVpc vpc)
AwsCustomResourceProps.getVpc()vpc - The vpc to provision the lambda function in.this@Stability(value=Stable) public AwsCustomResourceProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
AwsCustomResourceProps.getVpcSubnets()vpcSubnets - Which subnets from the VPC to place the lambda function in.
Only used if 'vpc' is supplied. Note: internet access for Lambdas
requires a NAT gateway, so picking Public subnets is not allowed.this@Stability(value=Stable) public AwsCustomResourceProps build()
build in interface software.amazon.jsii.Builder<AwsCustomResourceProps>AwsCustomResourcePropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.