Class CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinition.ResourceAccessPolicyProperty>
- Enclosing interface:
CfnFunctionDefinition.ResourceAccessPolicyProperty
@Stability(Stable)
public static final class CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionDefinition.ResourceAccessPolicyProperty>
A builder for
CfnFunctionDefinition.ResourceAccessPolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.permission
(String permission) Sets the value ofCfnFunctionDefinition.ResourceAccessPolicyProperty.getPermission()
resourceId
(String resourceId) Sets the value ofCfnFunctionDefinition.ResourceAccessPolicyProperty.getResourceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceId
@Stability(Stable) public CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder resourceId(String resourceId) Sets the value ofCfnFunctionDefinition.ResourceAccessPolicyProperty.getResourceId()
- 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 CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder permission(String permission) Sets the value ofCfnFunctionDefinition.ResourceAccessPolicyProperty.getPermission()
- 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<CfnFunctionDefinition.ResourceAccessPolicyProperty>
- Returns:
- a new instance of
CfnFunctionDefinition.ResourceAccessPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-