Class FunctionAttributes.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.FunctionAttributes.Jsii$Proxy
All Implemented Interfaces:
FunctionAttributes, software.amazon.jsii.JsiiSerializable
Enclosing interface:
FunctionAttributes

@Stability(Stable) @Internal public static final class FunctionAttributes.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements FunctionAttributes
An implementation for FunctionAttributes
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.FunctionAttributes

    FunctionAttributes.Builder, FunctionAttributes.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the FunctionAttributes.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    The architecture of this Lambda Function (this is an optional attribute and defaults to X86_64).
    final String
    The ARN of the Lambda function.
    final IRole
    The IAM execution role associated with this function.
    final Boolean
    Setting this property informs the CDK that the imported function is in the same environment as the stack.
    The security group of this Lambda, if in a VPC.
    final String
    (deprecated) Id of the security group of this Lambda, if in a VPC.
    final Boolean
    Setting this property informs the CDK that the imported function ALREADY HAS the necessary permissions for what you are trying to do.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(FunctionAttributes.Builder builder)
      Constructor that initializes the object based on literal property values passed by the FunctionAttributes.Builder.
  • Method Details

    • getFunctionArn

      public final String getFunctionArn()
      Description copied from interface: FunctionAttributes
      The ARN of the Lambda function.

      Format: arn::lambda::invalid input: '<'account-id>:function:invalid input: '<'function-name>

      Specified by:
      getFunctionArn in interface FunctionAttributes
    • getArchitecture

      public final Architecture getArchitecture()
      Description copied from interface: FunctionAttributes
      The architecture of this Lambda Function (this is an optional attribute and defaults to X86_64).

      Default: - Architecture.X86_64

      Specified by:
      getArchitecture in interface FunctionAttributes
    • getRole

      public final IRole getRole()
      Description copied from interface: FunctionAttributes
      The IAM execution role associated with this function.

      If the role is not specified, any role-related operations will no-op.

      Specified by:
      getRole in interface FunctionAttributes
    • getSameEnvironment

      public final Boolean getSameEnvironment()
      Description copied from interface: FunctionAttributes
      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.

      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`.

      Specified by:
      getSameEnvironment in interface FunctionAttributes
    • getSecurityGroup

      public final ISecurityGroup getSecurityGroup()
      Description copied from interface: FunctionAttributes
      The security group of this Lambda, if in a VPC.

      This needs to be given in order to support allowing connections to this Lambda.

      Specified by:
      getSecurityGroup in interface FunctionAttributes
    • getSecurityGroupId

      public final String getSecurityGroupId()
      Description copied from interface: FunctionAttributes
      (deprecated) Id of the security group of this Lambda, if in a VPC.

      This needs to be given in order to support allowing connections to this Lambda.

      Specified by:
      getSecurityGroupId in interface FunctionAttributes
    • getSkipPermissions

      public final Boolean getSkipPermissions()
      Description copied from interface: FunctionAttributes
      Setting this property informs the CDK that the imported function ALREADY HAS the necessary permissions for what you are trying to do.

      When not configured, the CDK attempts to auto-determine whether or not additional permissions are necessary on the function when grant APIs are used. If the CDK tried to add permissions on an imported lambda, it will fail.

      Set this property ONLY IF you are committing to manage the imported function's permissions outside of CDK. You are acknowledging that your CDK code alone will have insufficient permissions to access the imported function.

      Default: false

      Specified by:
      getSkipPermissions in interface FunctionAttributes
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object