Class CfnResourceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lakeformation.CfnResourceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourceMixinProps>
- Enclosing interface:
CfnResourceMixinProps
@Stability(Stable)
public static final class CfnResourceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourceMixinProps>
A builder for
CfnResourceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.hybridAccessEnabled(Boolean hybridAccessEnabled) Sets the value ofCfnResourceMixinProps.getHybridAccessEnabled()hybridAccessEnabled(IResolvable hybridAccessEnabled) Sets the value ofCfnResourceMixinProps.getHybridAccessEnabled()resourceArn(String resourceArn) Sets the value ofCfnResourceMixinProps.getResourceArn()Sets the value ofCfnResourceMixinProps.getRoleArn()useServiceLinkedRole(Boolean useServiceLinkedRole) Sets the value ofCfnResourceMixinProps.getUseServiceLinkedRole()useServiceLinkedRole(IResolvable useServiceLinkedRole) Sets the value ofCfnResourceMixinProps.getUseServiceLinkedRole()withFederation(Boolean withFederation) Sets the value ofCfnResourceMixinProps.getWithFederation()withFederation(IResolvable withFederation) Sets the value ofCfnResourceMixinProps.getWithFederation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hybridAccessEnabled
@Stability(Stable) public CfnResourceMixinProps.Builder hybridAccessEnabled(Boolean hybridAccessEnabled) Sets the value ofCfnResourceMixinProps.getHybridAccessEnabled()- Parameters:
hybridAccessEnabled- Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.- Returns:
this
-
hybridAccessEnabled
@Stability(Stable) public CfnResourceMixinProps.Builder hybridAccessEnabled(IResolvable hybridAccessEnabled) Sets the value ofCfnResourceMixinProps.getHybridAccessEnabled()- Parameters:
hybridAccessEnabled- Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.- Returns:
this
-
resourceArn
Sets the value ofCfnResourceMixinProps.getResourceArn()- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the resource.- Returns:
this
-
roleArn
Sets the value ofCfnResourceMixinProps.getRoleArn()- Parameters:
roleArn- The IAM role that registered a resource.- Returns:
this
-
useServiceLinkedRole
@Stability(Stable) public CfnResourceMixinProps.Builder useServiceLinkedRole(Boolean useServiceLinkedRole) Sets the value ofCfnResourceMixinProps.getUseServiceLinkedRole()- Parameters:
useServiceLinkedRole- Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .- Returns:
this
-
useServiceLinkedRole
@Stability(Stable) public CfnResourceMixinProps.Builder useServiceLinkedRole(IResolvable useServiceLinkedRole) Sets the value ofCfnResourceMixinProps.getUseServiceLinkedRole()- Parameters:
useServiceLinkedRole- Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .- Returns:
this
-
withFederation
Sets the value ofCfnResourceMixinProps.getWithFederation()- Parameters:
withFederation- Allows Lake Formation to assume a role to access tables in a federated database.- Returns:
this
-
withFederation
Sets the value ofCfnResourceMixinProps.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<CfnResourceMixinProps>- Returns:
- a new instance of
CfnResourceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-