@Stability(value=Experimental) public static final class FunctionAttributes.Builder extends Object implements software.amazon.jsii.Builder<FunctionAttributes>
FunctionAttributes| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
FunctionAttributes |
build()
Builds the configured instance.
|
FunctionAttributes.Builder |
functionArn(String functionArn)
Sets the value of
FunctionAttributes.getFunctionArn() |
FunctionAttributes.Builder |
role(IRole role)
Sets the value of
FunctionAttributes.getRole() |
FunctionAttributes.Builder |
sameEnvironment(Boolean sameEnvironment)
Sets the value of
FunctionAttributes.getSameEnvironment() |
FunctionAttributes.Builder |
securityGroup(ISecurityGroup securityGroup)
Sets the value of
FunctionAttributes.getSecurityGroup() |
@Stability(value=Experimental) public FunctionAttributes.Builder functionArn(String functionArn)
FunctionAttributes.getFunctionArn()functionArn - The ARN of the Lambda function. This parameter is required.
Format: arn:this@Stability(value=Experimental) public FunctionAttributes.Builder role(IRole role)
FunctionAttributes.getRole()role - The IAM execution role associated with this function.
If the role is not specified, any role-related operations will no-op.this@Stability(value=Experimental) public FunctionAttributes.Builder sameEnvironment(Boolean sameEnvironment)
FunctionAttributes.getSameEnvironment()sameEnvironment - Setting this property informs the CDK that the imported function is in the same environment as the stack.
This affects certain behaviours such as, whether this function's permission can be modified.
When not configured, the CDK attempts to auto-determine this. For environment agnostic stacks, i.e., stacks
where the account is not specified with the env property, this is determined to be false.
Set this to property ONLY IF the imported function is in the same account as the stack it's imported in.
this@Stability(value=Experimental) public FunctionAttributes.Builder securityGroup(ISecurityGroup securityGroup)
FunctionAttributes.getSecurityGroup()securityGroup - The security group of this Lambda, if in a VPC.
This needs to be given in order to support allowing connections
to this Lambda.this@Stability(value=Experimental) public FunctionAttributes build()
build in interface software.amazon.jsii.Builder<FunctionAttributes>FunctionAttributesNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.