public static final class Permission.Builder extends Object
Permission| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
build()
Builds the configured instance.
|
Permission.Builder |
withAction(String value)
Sets the value of Action
|
Permission.Builder |
withEventSourceToken(String value)
Sets the value of EventSourceToken
|
Permission.Builder |
withPrincipal(software.amazon.awscdk.services.iam.IPrincipal value)
Sets the value of Principal
|
Permission.Builder |
withSourceAccount(String value)
Sets the value of SourceAccount
|
Permission.Builder |
withSourceArn(String value)
Sets the value of SourceArn
|
public Permission.Builder withPrincipal(software.amazon.awscdk.services.iam.IPrincipal value)
value - The entity for which you are granting permission to invoke the Lambda function.thispublic Permission.Builder withAction(@Nullable String value)
value - The Lambda actions that you want to allow in this statement.thispublic Permission.Builder withEventSourceToken(@Nullable String value)
value - A unique token that must be supplied by the principal invoking the function.thispublic Permission.Builder withSourceAccount(@Nullable String value)
value - The AWS account ID (without hyphens) of the source owner.thispublic Permission.Builder withSourceArn(@Nullable String value)
value - The ARN of a resource that is invoking your function.thispublic Permission build()
PermissionNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.