AWSLambdaAddPermissionRequest Class Reference

Inherits from AWSRequest : AWSModel : AWSMTLModel
Declared in AWSLambdaModel.h
AWSLambdaModel.m

  action

The action that the principal can use on the function. For example, lambda:InvokeFunction or lambda:GetFunction.

@property (nonatomic, strong) NSString *action

Declared In

AWSLambdaModel.h

  eventSourceToken

For Alexa Smart Home functions, a token that must be supplied by the invoker.

@property (nonatomic, strong) NSString *eventSourceToken

Declared In

AWSLambdaModel.h

  functionName

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

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 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.

@property (nonatomic, strong) NSString *functionName

Declared In

AWSLambdaModel.h

  principal

The AWS service or account that invokes the function. If you specify a service, use SourceArn or SourceAccount to limit who can invoke the function through that service.

@property (nonatomic, strong) NSString *principal

Declared In

AWSLambdaModel.h

  qualifier

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

@property (nonatomic, strong) NSString *qualifier

Declared In

AWSLambdaModel.h

  revisionId

Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.

@property (nonatomic, strong) NSString *revisionId

Declared In

AWSLambdaModel.h

  sourceAccount

For AWS services, the ID of the account that owns the resource. Use this instead of SourceArn to grant permission to resources that are owned by another account (for example, all of an account's Amazon S3 buckets). Or use it together with SourceArn to ensure that the resource is owned by the specified account. For example, an Amazon S3 bucket could be deleted by its owner and recreated by another account.

@property (nonatomic, strong) NSString *sourceAccount

Declared In

AWSLambdaModel.h

  sourceArn

For AWS services, the ARN of the AWS resource that invokes the function. For example, an Amazon S3 bucket or Amazon SNS topic.

@property (nonatomic, strong) NSString *sourceArn

Declared In

AWSLambdaModel.h

  statementId

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

@property (nonatomic, strong) NSString *statementId

Declared In

AWSLambdaModel.h