@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.517Z") @Stability(value=Experimental) public interface FunctionAttributes extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
FunctionAttributes.Builder
A builder for
FunctionAttributes |
static class |
FunctionAttributes.Jsii$Proxy
An implementation for
FunctionAttributes |
| Modifier and Type | Method and Description |
|---|---|
static FunctionAttributes.Builder |
builder() |
String |
getFunctionArn()
(experimental) The ARN of the Lambda function.
|
default IRole |
getRole()
(experimental) The IAM execution role associated with this function.
|
default Boolean |
getSameEnvironment()
(experimental) Setting this property informs the CDK that the imported function is in the same environment as the stack.
|
default ISecurityGroup |
getSecurityGroup()
(experimental) The security group of this Lambda, if in a VPC.
|
@Stability(value=Experimental) @NotNull String getFunctionArn()
Format: arn:
@Stability(value=Experimental) @Nullable default IRole getRole()
If the role is not specified, any role-related operations will no-op.
@Stability(value=Experimental) @Nullable default Boolean getSameEnvironment()
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.
Default: - depends: true, if the Stack is configured with an explicit `env` (account and region) and the account is the same as this function. For environment-agnostic stacks this will default to `false`.
@Stability(value=Experimental) @Nullable default ISecurityGroup getSecurityGroup()
This needs to be given in order to support allowing connections to this Lambda.
@Stability(value=Experimental) static FunctionAttributes.Builder builder()
FunctionAttributes.Builder of FunctionAttributesCopyright © 2021. All rights reserved.