Class Permission.Jsii$Proxy
- All Implemented Interfaces:
Permission,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- Permission
Permission-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.lambda.Permission
Permission.Builder, Permission.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(Permission.Builder builder) Constructor that initializes the object based on literal property values passed by thePermission.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringThe Lambda actions that you want to allow in this statement.final StringA unique token that must be supplied by the principal invoking the function.final FunctionUrlAuthTypeThe authType for the function URL that you are granting permissions for.final IPrincipalThe entity for which you are granting permission to invoke the Lambda function.final ConstructgetScope()The scope to which the permission constructs be attached.final StringThe AWS account ID (without hyphens) of the source owner.final StringThe ARN of a resource that is invoking your function.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
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
Constructor that initializes the object based on literal property values passed by thePermission.Builder.
-
-
Method Details
-
getPrincipal
Description copied from interface:PermissionThe entity for which you are granting permission to invoke the Lambda function.This entity can be any valid AWS service principal, such as s3.amazonaws.com or sns.amazonaws.com, or, if you are granting cross-account permission, an AWS account ID. For example, you might want to allow a custom application in another AWS account to push events to Lambda by invoking your function.
The principal can be either an AccountPrincipal or a ServicePrincipal.
- Specified by:
getPrincipalin interfacePermission
-
getAction
Description copied from interface:PermissionThe Lambda actions that you want to allow in this statement.For example, you can specify lambda:CreateFunction to specify a certain action, or use a wildcard (
lambda:*) to grant permission to all Lambda actions. For a list of actions, see Actions and Condition Context Keys for AWS Lambda in the IAM User Guide.Default: 'lambda:InvokeFunction'
- Specified by:
getActionin interfacePermission
-
getEventSourceToken
Description copied from interface:PermissionA unique token that must be supplied by the principal invoking the function.Default: The caller would not need to present a token.
- Specified by:
getEventSourceTokenin interfacePermission
-
getFunctionUrlAuthType
Description copied from interface:PermissionThe authType for the function URL that you are granting permissions for.Default: - No functionUrlAuthType
- Specified by:
getFunctionUrlAuthTypein interfacePermission
-
getScope
Description copied from interface:PermissionThe scope to which the permission constructs be attached.The default is the Lambda function construct itself, but this would need to be different in cases such as cross-stack references where the Permissions would need to sit closer to the consumer of this permission (i.e., the caller).
Default: - The instance of lambda.IFunction
- Specified by:
getScopein interfacePermission
-
getSourceAccount
Description copied from interface:PermissionThe AWS account ID (without hyphens) of the source owner.For example, if you specify an S3 bucket in the SourceArn property, this value is the bucket owner's account ID. You can use this property to ensure that all source principals are owned by a specific account.
- Specified by:
getSourceAccountin interfacePermission
-
getSourceArn
Description copied from interface:PermissionThe ARN of a resource that is invoking your function.When granting Amazon Simple Storage Service (Amazon S3) permission to invoke your function, specify this property with the bucket ARN as its value. This ensures that events generated only from the specified bucket, not just any bucket from any AWS account that creates a mapping to your function, can invoke the function.
- Specified by:
getSourceArnin interfacePermission
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-