GetOrganizationDataRetentionStorage
Returns the organization's retention storage configuration for a model provider. The caller must be the organization's management account or a delegated administrator. Returns ResourceNotFoundException when no configuration exists.
Request Syntax
GET /v1/data_retention/organization-storage/modelProvider HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- modelProvider
-
The model provider whose retention storage configuration is addressed by this request.
Valid Values:
anthropic | openaiRequired: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"kmsKeyStatus": "string",
"modelProvider": "string",
"s3BucketStatus": "string",
"scope": "string",
"storageConfiguration": {
"kmsKeyArn": "string",
"s3BucketArn": "string",
"s3BucketOwner": "string"
},
"storageDestination": "string",
"updatedAt": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- kmsKeyStatus
-
Validation state of the KMS key. Present only when storageDestination is customer_managed.
Type: String
Valid Values:
pending | active | access_denied - modelProvider
-
Model provider this configuration applies to.
Type: String
Valid Values:
anthropic | openai - s3BucketStatus
-
Validation state of the bucket. Present only when storageDestination is customer_managed.
Type: String
Valid Values:
pending | active | access_denied - scope
-
Scope addressed by the operation that returned this record.
Type: String
Valid Values:
account | organization | project - storageConfiguration
-
The stored destination and key. Present only when storageDestination is customer_managed.
Type: DataRetentionStorageConfiguration object
- storageDestination
-
Where this record delivers retained data.
Type: String
Valid Values:
customer_managed | amazon_managed - updatedAt
-
Time the stored record last changed.
Type: Timestamp
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
The request is denied because of missing access permissions.
HTTP Status Code: 403
- InternalServerException
-
An internal server error occurred. Retry your request.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
HTTP Status Code: 404
- ThrottlingException
-
The number of requests exceeds the limit. Resubmit your request later.
HTTP Status Code: 429
- ValidationException
-
Input validation failed. Check your request parameters and retry the request.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: