@Stability(value=Stable) @Internal public static final class CfnPermissionProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnPermissionProps
CfnPermissionPropssoftware.amazon.jsii.JsiiObject.InitializationModeCfnPermissionProps.Builder, CfnPermissionProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnPermissionProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnPermissionProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getAction()
The action that the principal can use on the function.
|
String |
getEventSourceToken()
For Alexa Smart Home functions, a token that must be supplied by the invoker.
|
String |
getFunctionName()
The name of the Lambda function, version, or alias.
|
String |
getFunctionUrlAuthType()
The type of authentication that your function URL uses.
|
String |
getPrincipal()
The AWS service or account that invokes the function.
|
String |
getPrincipalOrgId()
The identifier for your organization in AWS Organizations .
|
String |
getSourceAccount()
For Amazon S3, the ID of the account that owns the resource.
|
String |
getSourceArn()
For AWS services, the ARN of the AWS resource that invokes the 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(CfnPermissionProps.Builder builder)
CfnPermissionProps.Builder.public final String getAction()
CfnPermissionProps
For example, lambda:InvokeFunction or lambda:GetFunction .
getAction in interface CfnPermissionPropspublic final String getFunctionName()
CfnPermissionProps
Name formats - Function name - my-function (name-only), my-function:v1 (with alias).
arn:aws:lambda:us-west-2:123456789012:function:my-function .123456789012:function:my-function .You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
getFunctionName in interface CfnPermissionPropspublic final String getPrincipal()
CfnPermissionProps
If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.
getPrincipal in interface CfnPermissionPropspublic final String getEventSourceToken()
CfnPermissionPropsgetEventSourceToken in interface CfnPermissionPropspublic final String getFunctionUrlAuthType()
CfnPermissionProps
Set to AWS_IAM if you want to restrict access to authenticated IAM users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Security and auth model for Lambda function URLs .
getFunctionUrlAuthType in interface CfnPermissionPropspublic final String getPrincipalOrgId()
CfnPermissionPropsUse this to grant permissions to all the AWS accounts under this organization.
getPrincipalOrgId in interface CfnPermissionPropspublic final String getSourceAccount()
CfnPermissionProps
Use this together with SourceArn to ensure that the resource is owned by the specified account. It is possible for an Amazon S3 bucket to be deleted by its owner and recreated by another account.
getSourceAccount in interface CfnPermissionPropspublic final String getSourceArn()
CfnPermissionPropsFor example, an Amazon S3 bucket or Amazon SNS topic.
Note that Lambda configures the comparison using the StringLike operator.
getSourceArn in interface CfnPermissionProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.