get_temporary_glue_partition_credentials
async
¶
get_temporary_glue_partition_credentials(
table_arn: ResourceArnString,
partition: PartitionValueList,
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = None,
permissions: Optional[PermissionList] = None,
duration_seconds: Optional[CredentialTimeoutDurationSecondInteger] = None,
audit_context: Optional[AuditContext] = None,
supported_permission_types: Optional[PermissionTypeList] = None,
) -> GetTemporaryGluePartitionCredentialsResponse
This API is identical to GetTemporaryTableCredentials except that this is used when the target Data Catalog resource is of type Partition. Lake Formation restricts the permission of the vended credentials with the same scope down policy which restricts access to a single Amazon S3 prefix.
Parameters:
-
table_arn(ResourceArnString) –The ARN of the partitions' table.
-
partition(PartitionValueList) –A list of partition values identifying a single partition.
-
permissions(Optional[PermissionList], default:None) –Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).
-
duration_seconds(Optional[CredentialTimeoutDurationSecondInteger], default:None) –The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.
-
audit_context(Optional[AuditContext], default:None) –A structure representing context to access a resource (column names, query ID, etc).
-
supported_permission_types(Optional[PermissionTypeList], default:None) –A list of supported permission types for the partition. Valid values are
COLUMN_PERMISSIONandCELL_FILTER_PERMISSION.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
EntityNotFoundException–A specified entity does not exist.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
PermissionTypeMismatchException–The engine does not support filtering data based on the enforced permissions. For example, if you call the
GetTemporaryGlueTableCredentialsoperation withSupportedPermissionTypeequal toColumnPermission, but cell-level permissions exist on the table, this exception is thrown. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lakeformation/_services/async_lake_formation.py
2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 | |