Class CfnFunctionDefinitionVersion.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.
Inheritance
System.Object
CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty
Namespace: Amazon.CDK.AWS.Greengrass
Assembly: Amazon.CDK.AWS.Greengrass.dll
Syntax (csharp)
public class ResourceAccessPolicyProperty : Object, CfnFunctionDefinitionVersion.IResourceAccessPolicyProperty
Syntax (vb)
Public Class ResourceAccessPolicyProperty
Inherits Object
Implements CfnFunctionDefinitionVersion.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
Constructors
ResourceAccessPolicyProperty() |
Properties
Permission | The read-only or read-write access that the Lambda function has to the resource. |
ResourceId | The ID of the resource. |
Constructors
ResourceAccessPolicyProperty()
public ResourceAccessPolicyProperty()
Properties
Permission
The read-only or read-write access that the Lambda function has to the resource.
public string Permission { get; set; }
Property Value
System.String
Remarks
ResourceId
The ID of the resource.
public string ResourceId { get; set; }
Property Value
System.String
Remarks
This ID is assigned to the resource when you create the resource definition.