Interface CfnFunctionDefinition.IResourceAccessPolicyProperty
A list of the resources in the group that the function can access, with the corresponding read-only or read-write permissions. The maximum is 10 resources.
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public interface IResourceAccessPolicyProperty
Syntax (vb)
Public Interface IResourceAccessPolicyProperty
Remarks
This property applies only to Lambda functions that run in a Greengrass container.
In an AWS CloudFormation template, ResourceAccessPolicy
is a property of the Environment
property type.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Greengrass;
var resourceAccessPolicyProperty = new ResourceAccessPolicyProperty {
ResourceId = "resourceId",
// the properties below are optional
Permission = "permission"
};
Synopsis
Properties
Permission | The read-only or read-write access that the Lambda function has to the resource. |
ResourceId | The ID of the resource. |
Properties
Permission
The read-only or read-write access that the Lambda function has to the resource.
virtual string Permission { get; }
Property Value
System.String
Remarks
ResourceId
The ID of the resource.
string ResourceId { get; }
Property Value
System.String
Remarks
This ID is assigned to the resource when you create the resource definition.