"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPrincipalPermissionsOutput = exports.getPrincipalPermissions = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * The ``AWS::LakeFormation::PrincipalPermissions`` resource represents the permissions that a principal has on a GLUDC resource (such as GLUlong databases or GLUlong tables). When you create a ``PrincipalPermissions`` resource, the permissions are granted via the LFlong``GrantPermissions`` API operation. When you delete a ``PrincipalPermissions`` resource, the permissions on principal-resource pair are revoked via the LFlong``RevokePermissions`` API operation.
 */
function getPrincipalPermissions(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("aws-native:lakeformation:getPrincipalPermissions", {
        "principalIdentifier": args.principalIdentifier,
        "resourceIdentifier": args.resourceIdentifier,
    }, opts);
}
exports.getPrincipalPermissions = getPrincipalPermissions;
/**
 * The ``AWS::LakeFormation::PrincipalPermissions`` resource represents the permissions that a principal has on a GLUDC resource (such as GLUlong databases or GLUlong tables). When you create a ``PrincipalPermissions`` resource, the permissions are granted via the LFlong``GrantPermissions`` API operation. When you delete a ``PrincipalPermissions`` resource, the permissions on principal-resource pair are revoked via the LFlong``RevokePermissions`` API operation.
 */
function getPrincipalPermissionsOutput(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("aws-native:lakeformation:getPrincipalPermissions", {
        "principalIdentifier": args.principalIdentifier,
        "resourceIdentifier": args.resourceIdentifier,
    }, opts);
}
exports.getPrincipalPermissionsOutput = getPrincipalPermissionsOutput;
//# sourceMappingURL=getPrincipalPermissions.js.map