Class CfnResourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.lakeformation.CfnResourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceProps>
- Enclosing interface:
- CfnResourceProps
@Stability(Stable)
public static final class CfnResourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceProps>
A builder for
CfnResourceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.resourceArn(String resourceArn) Sets the value ofCfnResourceProps.getResourceArn()Sets the value ofCfnResourceProps.getRoleArn()useServiceLinkedRole(Boolean useServiceLinkedRole) Sets the value ofCfnResourceProps.getUseServiceLinkedRole()useServiceLinkedRole(IResolvable useServiceLinkedRole) Sets the value ofCfnResourceProps.getUseServiceLinkedRole()withFederation(Boolean withFederation) Sets the value ofCfnResourceProps.getWithFederation()withFederation(IResolvable withFederation) Sets the value ofCfnResourceProps.getWithFederation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceArn
Sets the value ofCfnResourceProps.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the resource. This parameter is required.- Returns:
this
-
useServiceLinkedRole
@Stability(Stable) public CfnResourceProps.Builder useServiceLinkedRole(Boolean useServiceLinkedRole) Sets the value ofCfnResourceProps.getUseServiceLinkedRole()- Parameters:
useServiceLinkedRole- Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog . This parameter is required.- Returns:
this
-
useServiceLinkedRole
@Stability(Stable) public CfnResourceProps.Builder useServiceLinkedRole(IResolvable useServiceLinkedRole) Sets the value ofCfnResourceProps.getUseServiceLinkedRole()- Parameters:
useServiceLinkedRole- Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog . This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnResourceProps.getRoleArn()- Parameters:
roleArn- The IAM role that registered a resource.- Returns:
this
-
withFederation
Sets the value ofCfnResourceProps.getWithFederation()- Parameters:
withFederation- Allows Lake Formation to assume a role to access tables in a federated database.- Returns:
this
-
withFederation
Sets the value ofCfnResourceProps.getWithFederation()- Parameters:
withFederation- Allows Lake Formation to assume a role to access tables in a federated database.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourceProps>- Returns:
- a new instance of
CfnResourceProps - Throws:
NullPointerException- if any required attribute was not provided
-