Class CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty>
- Enclosing interface:
CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty
@Stability(Stable)
public static final class CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.permission
(String permission) resourceId
(String resourceId)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceId
@Stability(Stable) public CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty.Builder resourceId(String resourceId) - Parameters:
resourceId
- The ID of the resource. This parameter is required. This ID is assigned to the resource when you create the resource definition.- Returns:
this
-
permission
@Stability(Stable) public CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty.Builder permission(String permission) - Parameters:
permission
- The read-only or read-write access that the Lambda function has to the resource. Valid values arero
orrw
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty>
- Returns:
- a new instance of
CfnFunctionDefinitionVersion.ResourceAccessPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-