@Stability(value=Stable) @Internal public static final class Permission.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Permission
Permissionsoftware.amazon.jsii.JsiiObject.InitializationModePermission.Builder, Permission.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(Permission.Builder builder)
Constructor that initializes the object based on literal property values passed by the
Permission.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getAction()
The Lambda actions that you want to allow in this statement.
|
String |
getEventSourceToken()
A unique token that must be supplied by the principal invoking the function.
|
FunctionUrlAuthType |
getFunctionUrlAuthType()
The authType for the function URL that you are granting permissions for.
|
String |
getOrganizationId()
The organization you want to grant permissions to.
|
IPrincipal |
getPrincipal()
The entity for which you are granting permission to invoke the Lambda function.
|
software.constructs.Construct |
getScope()
The scope to which the permission constructs be attached.
|
String |
getSourceAccount()
The AWS account ID (without hyphens) of the source owner.
|
String |
getSourceArn()
The ARN of a resource that is invoking your function.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Permission.Builder builder)
Permission.Builder.public final IPrincipal getPrincipal()
PermissionThis entity can be any of the following:
s3.amazonaws.com or sns.amazonaws.comThe principal can be an AccountPrincipal, an ArnPrincipal, a ServicePrincipal, or an OrganizationPrincipal.
getPrincipal in interface Permissionpublic final String getAction()
Permission
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'
getAction in interface Permissionpublic final String getEventSourceToken()
PermissionDefault: - The caller would not need to present a token.
getEventSourceToken in interface Permissionpublic final FunctionUrlAuthType getFunctionUrlAuthType()
PermissionDefault: - No functionUrlAuthType
getFunctionUrlAuthType in interface Permissionpublic final String getOrganizationId()
Permission
Use this ONLY if you
need to grant permissions to a subset of the organization. If you want to
grant permissions to the entire organization, sending the organization principal
through the principal property will suffice.
You can use this property to ensure that all source principals are owned by a specific organization.
Default: - No organizationId
getOrganizationId in interface Permissionpublic final software.constructs.Construct getScope()
PermissionThe 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
getScope in interface Permissionpublic final String getSourceAccount()
PermissionFor 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.
getSourceAccount in interface Permissionpublic final String getSourceArn()
PermissionWhen 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.
getSourceArn in interface Permission@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.