CmdID

CmdID / aws / aws lakeformation

aws lakeformation list-resources

Lists the resources registered to be managed by the Data Catalog. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To lists the resources managed by the Lake Formation

The following list-resources example lists the resources matching the condition that is managed by the Lake Formation.

aws lakeformation list-resources --cli-input-json file://input.jsonIdentify

Contents of input.json:

{
    "FilterConditionList": [{
        "Field": "ROLE_ARN",
        "ComparisonOperator": "CONTAINS",
        "StringValueList": [
            "123456789111"
        ]
    }],
    "MaxResults": 10
}
Its output
{
    "ResourceInfoList": [{
            "ResourceArn": "arn:aws:s3:::amzn-s3-demo-bucket1",
            "RoleArn": "arn:aws:iam::123456789111:role/LF-GlueServiceRole",
            "LastModified": "2022-07-21T02:12:46.669000+00:00"
        },
        {
            "ResourceArn": "arn:aws:s3:::amzn-s3-demo-bucket2",
            "RoleArn": "arn:aws:iam::123456789111:role/EMRLFS3Role",
            "LastModified": "2022-07-29T16:22:03.211000+00:00"
        }
    ]
}

For more information, see Managing Lake Formation permissions in the AWS Lake Formation Developer Guide.

Options

3 in the AWS CLI reference
--filter-condition-listAny applicable row-level and/or column-level filtering conditions for the resources.
--max-resultsThe maximum number of resource results.
--next-tokenA continuation token, if this is not the first call to retrieve these resources.