get_temporary_glue_partition_credentials
¶
get_temporary_glue_partition_credentials(
table_arn: ResourceArnString,
partition: PartitionValueList,
*,
config_overrides: Optional[LakeFormationClientConfig] = 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/lake_formation.py
2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 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 | |