---
title: "POST /GetTemporaryGluePartitionCredentials"
method: POST
path: "/GetTemporaryGluePartitionCredentials"
---

# POST /GetTemporaryGluePartitionCredentials

`POST /GetTemporaryGluePartitionCredentials`

This API is identical to <code>GetTemporaryTableCredentials</code> 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.

## Request body

- object
  - `TableArn` string, required — The ARN of the partitions' table.
  - `Partition` object, required — Contains a list of values defining partitions.
    - `Values` ValueString[] — The list of partition values.
  - `Permissions` Permission[] — Filters the request based on the user having been granted a list of specified permissions on the requested resource(s).
  - `DurationSeconds` integer — The time period, between 900 and 21,600 seconds, for the timeout of the temporary credentials.
  - `AuditContext` object — A structure used to include auditing information on the privileged API.
    - `AdditionalAuditContext` string — The filter engine can populate the 'AdditionalAuditContext' information with the request ID for you to track. This information will be displayed in CloudTrail log in your account.
  - `SupportedPermissionTypes` PermissionType[], required — A list of supported permission types for the partition. Valid values are <code>COLUMN_PERMISSION</code> and <code>CELL_FILTER_PERMISSION</code>.

## Response `200`

Success

- GetTemporaryGluePartitionCredentialsResponse
  - `AccessKeyId` string — The access key ID for the temporary credentials.
  - `SecretAccessKey` string — The secret key for the temporary credentials.
  - `SessionToken` string — The session token for the temporary credentials.
  - `Expiration` string, date-time — The date and time when the temporary credentials expire.

## Other responses

- `480` — InvalidInputException
- `481` — InternalServiceException
- `482` — OperationTimeoutException
- `483` — EntityNotFoundException
- `484` — AccessDeniedException
- `485` — PermissionTypeMismatchException

---

[API](https://skmtc.net/aws/apis/lakeformation.md) · [All operations](https://skmtc.net/aws/apis/lakeformation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/lakeformation/versions/a7cd69eb107d/schema)
