ListCredentialProviders
Lists the CredentialProviders in a pool, optionally filtered by name substring and provider type. Each entry is a summary that omits the provider's type-specific configuration; call GetCredentialProvider for a single provider's full detail.
Results are returned in no particular order, and the order may change between calls. Do not rely on it.
Request Syntax
POST /ListCredentialProviders HTTP/1.1
Content-type: application/json
{
"credentialProviderPoolIdentifier": "string",
"maxResults": number,
"nameContains": "string",
"nextToken": "string",
"providerTypes": [ "string" ]
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- credentialProviderPoolIdentifier
-
Parent pool identifier. Accepts an ARN or service-generated ID.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 256.
Pattern:
(arn:aws(?:-cn|-us-gov)?:credentialbroker:[a-z0-9-]+:[0-9]{12}:credentialproviderpool/[a-z0-9]{1,64}|[a-z0-9]{1,64})Required: Yes
- maxResults
-
The maximum number of providers to return in one page. The service might return fewer than the number you request even when more results are available, so check
nextTokenon every response rather than inferring from the number of items returned.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 20.
Required: No
- nameContains
-
Return only providers whose name contains this substring. Matching is case-sensitive. Omit to return providers of any name.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Required: No
- nextToken
-
Continues a previous
ListCredentialProviderscall. Set it to thenextTokenthe previous response returned, passed back unchanged. Valid only when you received anextToken; there is no dedicated error for a token that is invalid or no longer current, so one is rejected asValidationException.Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Required: No
- providerTypes
-
Provider types to include. When omitted, all provider types are returned.
Type: Array of strings
Array Members: Minimum number of 1 item. Maximum number of 10 items.
Valid Values:
OAUTH | API_KEYRequired: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"items": [
{
"createdAt": number,
"credentialProviderArn": "string",
"credentialProviderId": "string",
"credentialProviderPoolId": "string",
"name": "string",
"providerType": "string",
"status": "string",
"statusReason": "string",
"updatedAt": number
}
],
"nextToken": "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.
- items
-
A page of credential providers, each a summary that omits the provider's type-specific configuration. Empty when the pool contains no providers, or none that match the requested filters.
Type: Array of CredentialProviderSummary objects
- nextToken
-
Present when more results are available than this response contains; absent on the last page. Call
ListCredentialProvidersagain with this value to get the next page, and repeat until a response comes back without anextToken.Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
The caller is not authorized to perform the request, or a resource the request depends on refused access.
reasondistinguishes a denial by this service from a denial reported by a dependency the caller configured, such as a customer-owned secret, KMS key, or external identity provider, which usually points at a permission or configuration fix outside this API.HTTP Status Code: 403
- InternalServerException
-
The request failed because of an unexpected error in the service. Whether the request took effect is undefined, so for a create or update, read the resource back before retrying. Retryable: the same request may succeed later.
- retryAfterSeconds
-
The number of seconds to wait before retrying. If this field is absent, retry with exponential backoff.
HTTP Status Code: 500
- ResourceNotFoundException
-
The requested resource does not exist, or the caller is not permitted to know that it exists. A resource that was deleted, or that is still being created, can also be reported this way.
- resourceId
-
The identifier of the resource that could not be found, echoed from the request.
- resourceType
-
The type of the resource named by
resourceId, when present.
HTTP Status Code: 404
- ThrottlingException
-
The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring
retryAfterSecondswhen it is present.- retryAfterSeconds
-
The number of seconds to wait before retrying. If this field is absent, retry with exponential backoff.
HTTP Status Code: 429
- ValidationException
-
The request is not valid. The request was rejected before any change was made, so it is safe to correct the input and retry. Use
reasonto branch in code andmessagefor the human-readable detail of which field or combination of fields was at fault.HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: