public static final class CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder
extends java.lang.Object
CfnFunctionDefinition.ResourceAccessPolicyProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnFunctionDefinition.ResourceAccessPolicyProperty |
build()
Builds the configured instance.
|
CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder |
permission(java.lang.String permission)
Sets the value of
CfnFunctionDefinition.ResourceAccessPolicyProperty.getPermission() |
CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder |
resourceId(java.lang.String resourceId)
Sets the value of
CfnFunctionDefinition.ResourceAccessPolicyProperty.getResourceId() |
public CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder resourceId(java.lang.String resourceId)
CfnFunctionDefinition.ResourceAccessPolicyProperty.getResourceId()
resourceId
- The ID of the resource. This parameter is required.
This ID is assigned to the resource when you create the resource definition.this
public CfnFunctionDefinition.ResourceAccessPolicyProperty.Builder permission(java.lang.String permission)
CfnFunctionDefinition.ResourceAccessPolicyProperty.getPermission()
permission
- The read-only or read-write access that the Lambda function has to the resource.
Valid values are ro
or rw
.this
public CfnFunctionDefinition.ResourceAccessPolicyProperty build()
CfnFunctionDefinition.ResourceAccessPolicyProperty
java.lang.NullPointerException
- if any required attribute was not provided