CfnResourceProps

class aws_cdk.aws_lakeformation.CfnResourceProps(*, resource_arn, use_service_linked_role, 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 .

  • 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.

Link:

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.
import aws_cdk.aws_lakeformation as lakeformation

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

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

Attributes

resource_arn

The Amazon Resource Name (ARN) of the resource.

Link:

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.

Link:

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 .

Link:

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.

Link:

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