package awsgreengrass // A list of the [resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourceinstance.html) 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`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-environment.html) property type. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import "github.com/aws/aws-cdk-go/awscdk" // // resourceAccessPolicyProperty := &ResourceAccessPolicyProperty{ // ResourceId: jsii.String("resourceId"), // // // the properties below are optional // Permission: jsii.String("permission"), // } // // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-resourceaccesspolicy.html // type CfnFunctionDefinitionVersion_ResourceAccessPolicyProperty struct { // The ID of the resource. // // This ID is assigned to the resource when you create the resource definition. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-resourceaccesspolicy.html#cfn-greengrass-functiondefinitionversion-resourceaccesspolicy-resourceid // ResourceId *string `field:"required" json:"resourceId" yaml:"resourceId"` // The read-only or read-write access that the Lambda function has to the resource. // // Valid values are `ro` or `rw` . // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinitionversion-resourceaccesspolicy.html#cfn-greengrass-functiondefinitionversion-resourceaccesspolicy-permission // Permission *string `field:"optional" json:"permission" yaml:"permission"` }