Class CfnResource.Builder
java.lang.Object
software.amazon.awscdk.services.lakeformation.CfnResource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResource>
- Enclosing class:
CfnResource
@Stability(Stable)
public static final class CfnResource.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResource>
A fluent builder for
CfnResource
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnResource.Builder
resourceArn
(String resourceArn) The Amazon Resource Name (ARN) of the resource.The IAM role that registered a resource.useServiceLinkedRole
(Boolean useServiceLinkedRole) Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .useServiceLinkedRole
(IResolvable useServiceLinkedRole) Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .withFederation
(Boolean withFederation) Allows Lake Formation to assume a role to access tables in a federated database.withFederation
(IResolvable withFederation) Allows Lake Formation to assume a role to access tables in a federated database.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnResource.Builder
.
-
resourceArn
The Amazon Resource Name (ARN) of the resource.- Parameters:
resourceArn
- The Amazon Resource Name (ARN) of the resource. This parameter is required.- Returns:
this
-
useServiceLinkedRole
Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .- 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 CfnResource.Builder useServiceLinkedRole(IResolvable useServiceLinkedRole) Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .- Parameters:
useServiceLinkedRole
- Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog . This parameter is required.- Returns:
this
-
roleArn
The IAM role that registered a resource.- Parameters:
roleArn
- The IAM role that registered a resource. This parameter is required.- Returns:
this
-
withFederation
Allows Lake Formation to assume a role to access tables in a federated database.- Parameters:
withFederation
- Allows Lake Formation to assume a role to access tables in a federated database. This parameter is required.- Returns:
this
-
withFederation
Allows Lake Formation to assume a role to access tables in a federated database.- Parameters:
withFederation
- Allows Lake Formation to assume a role to access tables in a federated database. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnResource>
- Returns:
- a newly built instance of
CfnResource
.
-