AWS::Greengrass::FunctionDefinition ResourceAccessPolicy - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::Greengrass::FunctionDefinition ResourceAccessPolicy

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.

Note

This property applies only to Lambda functions that run in a Greengrass container.

In an Amazon CloudFormation template, ResourceAccessPolicy is a property of the Environment property type.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Permission" : String, "ResourceId" : String }

YAML

Permission: String ResourceId: String

Properties

Permission

The read-only or read-write access that the Lambda function has to the resource. Valid values are ro or rw.

Required: No

Type: String

Update requires: Replacement

ResourceId

The ID of the resource. This ID is assigned to the resource when you create the resource definition.

Required: Yes

Type: String

Update requires: Replacement

See also