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 Details

    • create

      @Stability(Stable) public static CfnResource.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnResource.Builder.
    • resourceArn

      @Stability(Stable) public CfnResource.Builder resourceArn(String 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

      @Stability(Stable) public CfnResource.Builder useServiceLinkedRole(Boolean 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

      @Stability(Stable) public CfnResource.Builder roleArn(String roleArn)
      The IAM role that registered a resource.

      Parameters:
      roleArn - The IAM role that registered a resource. This parameter is required.
      Returns:
      this
    • withFederation

      @Stability(Stable) public CfnResource.Builder withFederation(Boolean 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

      @Stability(Stable) public CfnResource.Builder withFederation(IResolvable 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

      @Stability(Stable) public CfnResource build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnResource>
      Returns:
      a newly built instance of CfnResource.