AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
If you are using the versioning feature, you can get the resource policy associated
with the specific Lambda function version or alias by specifying the version or alias
name using the Qualifier
parameter. For more information about versioning,
see AWS
Lambda Function Versioning and Aliases.
For information about adding permissions, see AddPermission.
You need permission for the lambda:GetPolicy action.
Namespace: Amazon.Lambda.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class GetPolicyRequest : AmazonLambdaRequest IRequestEvents
The GetPolicyRequest type exposes the following members
Name | Description | |
---|---|---|
GetPolicyRequest() |
Name | Type | Description | |
---|---|---|---|
FunctionName | System.String |
Gets and sets the property FunctionName.
Function name whose resource policy you want to retrieve.
You can specify the function name (for example, |
|
Qualifier | System.String |
Gets and sets the property Qualifier.
You can specify this optional query parameter to specify a function version or an alias name in which case this API will return all permissions associated with the specific qualified ARN. If you don't provide this parameter, the API will return permissions that apply to the unqualified function ARN. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8