interface ResourceAccessPolicyProperty
| Language | Type name | 
|---|---|
  .NET | Amazon.CDK.AWS.Greengrass.CfnFunctionDefinition.ResourceAccessPolicyProperty | 
  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsgreengrass#CfnFunctionDefinition_ResourceAccessPolicyProperty | 
  Java | software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.ResourceAccessPolicyProperty | 
  Python | aws_cdk.aws_greengrass.CfnFunctionDefinition.ResourceAccessPolicyProperty | 
  TypeScript  | aws-cdk-lib » aws_greengrass » CfnFunctionDefinition » ResourceAccessPolicyProperty | 
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.
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_greengrass as greengrass } from 'aws-cdk-lib';
const resourceAccessPolicyProperty: greengrass.CfnFunctionDefinition.ResourceAccessPolicyProperty = {
  resourceId: 'resourceId',
  // the properties below are optional
  permission: 'permission',
};
Properties
| Name | Type | Description | 
|---|---|---|
| resource | string | The ID of the resource. | 
| permission? | string | The read-only or read-write access that the Lambda function has to the resource. | 
resourceId
Type:
string
The ID of the resource.
This ID is assigned to the resource when you create the resource definition.
permission?
Type:
string
(optional)
The read-only or read-write access that the Lambda function has to the resource.
Valid values are ro or rw .

 .NET
 Go
 Java
 Python
 TypeScript