interface ResourceAccessPolicyProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.Greengrass.CfnFunctionDefinitionPropsMixin.ResourceAccessPolicyProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsgreengrass#CfnFunctionDefinitionPropsMixin_ResourceAccessPolicyProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.greengrass.CfnFunctionDefinitionPropsMixin.ResourceAccessPolicyProperty |
Python | aws_cdk.cfn_property_mixins.aws_greengrass.CfnFunctionDefinitionPropsMixin.ResourceAccessPolicyProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_greengrass » CfnFunctionDefinitionPropsMixin » 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 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/cfn-property-mixins';
const resourceAccessPolicyProperty: greengrass.CfnFunctionDefinitionPropsMixin.ResourceAccessPolicyProperty = {
permission: 'permission',
resourceId: 'resourceId',
};
Properties
| Name | Type | Description |
|---|---|---|
| permission? | string | The read-only or read-write access that the Lambda function has to the resource. |
| resource | string | The ID of the resource. |
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 .
resourceId?
Type:
string
(optional)
The ID of the resource.
This ID is assigned to the resource when you create the resource definition.

.NET
Go
Java
Python
TypeScript