Access Key, gRPC: TemporaryAccessKeyService.CreateEphemeral
Creates an ephemeral access key for the specified subject.
gRPC request
rpc CreateEphemeral (CreateEphemeralAccessKeyRequest) returns (CreateEphemeralAccessKeyResponse)
CreateEphemeralAccessKeyRequest
{
"subject_id": "string",
"session_name": "string",
"policy": "string",
"duration": "google.protobuf.Duration"
}
|
Field |
Description |
|
subject_id |
string The subject identifier for whom the ephemeral access key will be created. The maximum string length in characters is 50. |
|
session_name |
string Required field. Use the session name to uniquely identify a session when the same SA is impersonated by different principals or for different reasons The string length in characters must be 1-64. |
|
policy |
string AWS-compatible policy in JSON format that you want to use as an inline session policy. The maximum string length in characters is 2048. |
|
duration |
Duration, which specifies the duration of the ephemeral access key, |
CreateEphemeralAccessKeyResponse
{
"access_key_id": "string",
"secret": "string",
"session_token": "string",
"expires_at": "google.protobuf.Timestamp"
}
|
Field |
Description |
|
access_key_id |
string ID of the access key. |
|
secret |
string Secret access key. |
|
session_token |
string Session token. |
|
expires_at |
Expiration time. |