We recommend new projects start with resources from the AWS provider.
aws-native.lakeformation.getPrincipalPermissions
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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.
Using getPrincipalPermissions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPrincipalPermissions(args: GetPrincipalPermissionsArgs, opts?: InvokeOptions): Promise<GetPrincipalPermissionsResult>
function getPrincipalPermissionsOutput(args: GetPrincipalPermissionsOutputArgs, opts?: InvokeOptions): Output<GetPrincipalPermissionsResult>
def get_principal_permissions(principal_identifier: Optional[str] = None,
resource_identifier: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrincipalPermissionsResult
def get_principal_permissions_output(principal_identifier: Optional[pulumi.Input[str]] = None,
resource_identifier: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrincipalPermissionsResult]
func LookupPrincipalPermissions(ctx *Context, args *LookupPrincipalPermissionsArgs, opts ...InvokeOption) (*LookupPrincipalPermissionsResult, error)
func LookupPrincipalPermissionsOutput(ctx *Context, args *LookupPrincipalPermissionsOutputArgs, opts ...InvokeOption) LookupPrincipalPermissionsResultOutput
> Note: This function is named LookupPrincipalPermissions
in the Go SDK.
public static class GetPrincipalPermissions
{
public static Task<GetPrincipalPermissionsResult> InvokeAsync(GetPrincipalPermissionsArgs args, InvokeOptions? opts = null)
public static Output<GetPrincipalPermissionsResult> Invoke(GetPrincipalPermissionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPrincipalPermissionsResult> getPrincipalPermissions(GetPrincipalPermissionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:lakeformation:getPrincipalPermissions
arguments:
# arguments dictionary
The following arguments are supported:
- Principal
Identifier string - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- Resource
Identifier string - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- Principal
Identifier string - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- Resource
Identifier string - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- principal
Identifier String - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- resource
Identifier String - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- principal
Identifier string - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- resource
Identifier string - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- principal_
identifier str - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- resource_
identifier str - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- principal
Identifier String - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- resource
Identifier String - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
getPrincipalPermissions Result
The following output properties are available:
- Principal
Identifier string - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- Resource
Identifier string - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- Principal
Identifier string - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- Resource
Identifier string - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- principal
Identifier String - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- resource
Identifier String - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- principal
Identifier string - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- resource
Identifier string - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- principal_
identifier str - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- resource_
identifier str - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
- principal
Identifier String - Json encoding of the input principal. For example:
{"DataLakePrincipalIdentifier":"arn:aws:iam::123456789012:role/ExampleRole"}
- resource
Identifier String - Json encoding of the input resource. For example:
{"Catalog":null,"Database":null,"Table":null,"TableWithColumns":null,"DataLocation":null,"DataCellsFilter":{"TableCatalogId":"123456789012","DatabaseName":"ExampleDatabase","TableName":"ExampleTable","Name":"ExampleFilter"},"LFTag":null,"LFTagPolicy":null}
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.