// Returns a list of the principal permissions on the resource, filtered by the
// permissions of the caller. For example, if you are granted an ALTER permission,
// you are able to see only the principal permissions for ALTER. This operation
// returns only those permissions that have been explicitly granted. For
// information about permissions, see Security and Access Control to Metadata and
// Data
// (https://docs-aws.amazon.com/lake-formation/latest/dg/security-data-access.html).
Returns a list of the principal permissions on the resource, filtered by the
permissions of the caller. For example, if you are granted an ALTER permission,
you are able to see only the principal permissions for ALTER. This operation
returns only those permissions that have been explicitly granted. For
information about permissions, see Security and Access Control to Metadata and
Data
.
// Returns a list of the principal permissions on the resource filtered by the // permissions of the caller . For example if you are granted an ALTER permission // you are able to see only the principal permissions for ALTER . This operation // returns only those permissions that have been explicitly granted . For // information about permissions see Security and Access Control to Metadata and // Data // ( https : // docs - aws . amazon . com / lake - formation / latest / dg / security - data - access . html ) .
func (c *Client) ListPermissions(ctx context.Context, params *ListPermissionsInput, optFns ...func(*Options)) (*ListPermissionsOutput, error) {
	if params == nil {
		params = &ListPermissionsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListPermissions", params, optFns, addOperationListPermissionsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListPermissionsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListPermissions ( ctx context . Context , params * ListPermissionsInput , optFns ... func ( * Options ) ) ( * ListPermissionsOutput , error ) { if params == nil { params = & ListPermissionsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListPermissionsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListPermissionsOutput ) out . ResultMetadata = metadata return out , nil }
Returns a list of the principal permissions on the resource, filtered by the
permissions of the caller.
Returns a list of the principal permissions on the resource filtered by the permissions of the caller .