@Stability(value=Stable)
public static interface CfnFunctionDefinition.ResourceAccessPolicyProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder
A builder for
CfnFunctionDefinition.ResourceAccessPolicyProperty |
static class |
CfnFunctionDefinition.ResourceAccessPolicyProperty.Jsii$Proxy
An implementation for
CfnFunctionDefinition.ResourceAccessPolicyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder |
builder() |
default String |
getPermission()
The read-only or read-write access that the Lambda function has to the resource.
|
String |
getResourceId()
The ID of the resource.
|
@Stability(value=Stable) @NotNull String getResourceId()
This ID is assigned to the resource when you create the resource definition.
@Stability(value=Stable) @Nullable default String getPermission()
Valid values are ro or rw .
@Stability(value=Stable) static CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder builder()
Copyright © 2022. All rights reserved.