Interface CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnFunctionDefinitionVersion
@Stability(Stable)
public static interface CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.greengrass.*; ResourceAccessPolicyProperty resourceAccessPolicyProperty = ResourceAccessPolicyProperty.builder() .resourceId("resourceId") // the properties below are optional .permission("permission") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnFunctionDefinitionVersion.ResourceAccessPolicyProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceId
The ID of the resource.This ID is assigned to the resource when you create the resource definition.
- See Also:
-
getPermission
The read-only or read-write access that the Lambda function has to the resource.Valid values are
ro
orrw
.- See Also:
-
builder
@Stability(Stable) static CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty.Builder builder()
-