Skip to content

Add permission

async_boto.validation.lambda_.add_permission

AddPermissionRequest

Bases: BaseModel

Request model for the AddPermission operation.

Grants a principal permission to use a function.

ATTRIBUTE DESCRIPTION
FunctionName

The name or ARN of the Lambda function, version, or alias.

TYPE: str

Qualifier

Specify a version or alias to add permissions to a published version of the function.

TYPE: Optional[str]

Action

The action that the principal can use on the function.

TYPE: str

EventSourceToken

For Alexa Smart Home functions, a token that the invoker must supply.

TYPE: Optional[str]

FunctionUrlAuthType

The type of authentication that your function URL uses.

TYPE: Optional[Literal['NONE', 'AWS_IAM']]

Principal

The AWS service, AWS account, IAM user, or IAM role that invokes the function.

TYPE: str

PrincipalOrgID

The identifier for your organization in AWS Organizations.

TYPE: Optional[str]

RevisionId

Update the policy only if the revision ID matches the ID that's specified.

TYPE: Optional[str]

SourceAccount

For AWS service, the ID of the AWS account that owns the resource.

TYPE: Optional[str]

SourceArn

For AWS services, the ARN of the AWS resource that invokes the function.

TYPE: Optional[str]

StatementId

A statement identifier that differentiates the statement from others in the same policy.

TYPE: str

FunctionName instance-attribute

FunctionName

Qualifier class-attribute instance-attribute

Qualifier = None

Action instance-attribute

Action

EventSourceToken class-attribute instance-attribute

EventSourceToken = None

FunctionUrlAuthType class-attribute instance-attribute

FunctionUrlAuthType = None

Principal instance-attribute

Principal

PrincipalOrgID class-attribute instance-attribute

PrincipalOrgID = None

RevisionId class-attribute instance-attribute

RevisionId = None

SourceAccount class-attribute instance-attribute

SourceAccount = None

SourceArn class-attribute instance-attribute

SourceArn = None

StatementId instance-attribute

StatementId

AddPermissionResponse

Bases: BaseModel

Response model for the AddPermission operation.

ATTRIBUTE DESCRIPTION
Statement

The permission statement that's added to the function policy.

TYPE: str

Statement instance-attribute

Statement