CfnResourceProps

class aws_cdk.aws_lakeformation.CfnResourceProps(*, resource_arn, use_service_linked_role, hybrid_access_enabled=None, role_arn=None, with_federation=None)

Bases: object

Properties for defining a CfnResource.

Parameters:
  • resource_arn (str) – The Amazon Resource Name (ARN) of the resource.

  • use_service_linked_role (Union[bool, IResolvable]) – Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .

  • hybrid_access_enabled (Union[bool, IResolvable, None]) – 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.

  • role_arn (Optional[str]) – The IAM role that registered a resource.

  • with_federation (Union[bool, IResolvable, None]) – Allows Lake Formation to assume a role to access tables in a federated database.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lakeformation as lakeformation

cfn_resource_props = lakeformation.CfnResourceProps(
    resource_arn="resourceArn",
    use_service_linked_role=False,

    # the properties below are optional
    hybrid_access_enabled=False,
    role_arn="roleArn",
    with_federation=False
)

Attributes

hybrid_access_enabled

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-hybridaccessenabled

resource_arn

The Amazon Resource Name (ARN) of the resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-resourcearn

role_arn

The IAM role that registered a resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-rolearn

use_service_linked_role

Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-useservicelinkedrole

with_federation

Allows Lake Formation to assume a role to access tables in a federated database.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lakeformation-resource.html#cfn-lakeformation-resource-withfederation