View a markdown version of this page

UpdateCredentialProviderPool - AWS IAM CredentialBroker Control Plane

UpdateCredentialProviderPool

Updates a CredentialProviderPool. Partial update, only provided fields are modified; omitted fields are left unchanged.

The update is applied asynchronously and the operation is idempotent. The operation returns the pool with a transitional status; poll GetCredentialProviderPool to observe the transition.

Required permissions: in addition to permission for this operation, the service performs these actions on your behalf, each only when the request calls for it: sso:CreateApplication, sso:PutApplicationAuthenticationMethod, sso:PutApplicationGrant, and sso:PutApplicationAssignmentConfiguration when the request associates an IAM Identity Center instance; sso:DeleteApplication when it disassociates one; and kms:CreateGrant, kms:DescribeKey, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo, kms:Encrypt, and kms:Decrypt when it sets or changes a customer managed KMS key, which re-encrypts the pool's stored credentials under that key.

Request Syntax

POST /UpdateCredentialProviderPool HTTP/1.1 Content-type: application/json { "credentialProviderPoolIdentifier": "string", "encryptionConfiguration": { ... }, "identityCenterUpdate": { ... }, "name": "string" }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

credentialProviderPoolIdentifier

Identifies a credential provider pool. Accepts either the pool's ARN or its service-generated ID; both refer to the same pool.

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

encryptionConfiguration

Changes how cached tokens are encrypted at rest for the providers in this pool. Use it to move between a customer managed key and a service-owned key, or to point at a different customer managed key. Omit to leave the current configuration unchanged. Providers that override the pool with a key of their own are unaffected.

Type: EncryptionConfiguration object

Note: This object is a Union. Only one member of this object can be specified or returned.

Required: No

identityCenterUpdate

Identity Center update action. Omit to preserve existing binding.

Type: IdentityCenterUpdate object

Note: This object is a Union. Only one member of this object can be specified or returned.

Required: No

name

Rename the pool. If provided, MUST be unique within the account; omitting leaves the name unchanged.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: [a-zA-Z0-9_.-]{1,128}

Required: No

Response Syntax

HTTP/1.1 202 Content-type: application/json { "createdAt": number, "credentialProviderPoolArn": "string", "credentialProviderPoolId": "string", "encryptionConfiguration": { ... }, "identityCenterApplicationArn": "string", "identityCenterConfiguration": { "idcInstanceArn": "string" }, "name": "string", "status": "string", "updatedAt": number }

Response Elements

If the action is successful, the service sends back an HTTP 202 response.

The following data is returned in JSON format by the service.

createdAt

When the pool was created.

Type: Timestamp

credentialProviderPoolArn

Amazon Resource Name of a credential provider pool. Service-generated and stable for the life of the pool. Use it in IAM policies and anywhere an operation accepts a pool identifier.

Type: String

Pattern: arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):credentialbroker:[a-z0-9-]{1,64}:[0-9]{12}:credentialproviderpool/[a-z0-9]{1,64}

credentialProviderPoolId

Service-generated identifier of a credential provider pool. Opaque and stable for the life of the pool. Accepted anywhere an operation takes a pool identifier, in place of the pool's ARN.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [a-z0-9]{1,64}

encryptionConfiguration

How cached tokens are encrypted at rest. Set exactly one member: a customer-managed configuration must name a KMS key, and a service-managed configuration takes no parameters.

Type: EncryptionConfiguration object

Note: This object is a Union. Only one member of this object can be specified or returned.

identityCenterApplicationArn

Amazon Resource Name of the IAM Identity Center application created for a pool. Service-generated and read-only. It is created when an Identity Center instance is associated with the pool and deleted when the association is removed. Because the application belongs to the pool, every credential provider in that pool reports the same value.

Type: String

Pattern: arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):sso::[0-9]{12}:application/ssoins-[0-9a-f]{16}/apl-[0-9a-f]{16}

identityCenterConfiguration

Links a credential provider pool to an IAM Identity Center instance, so that providers in the pool can issue credentials for the identity in the caller's Identity Center session. A pool can be associated with at most one instance. Associating an instance creates an Identity Center application that the pool owns; every provider in the pool reports that same application.

Type: IdentityCenterConfiguration object

name

The name of a credential provider pool. Must be unique among the pools that currently exist in your account, and can be changed after creation with UpdateCredentialProviderPool. A deleted pool's name becomes available for reuse.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Pattern: [a-zA-Z0-9_.-]{1,128}

status

Lifecycle status of a resource. Create, update, and delete are asynchronous: the operation returns immediately with a transitional status, and the resource reaches READY or FAILED on its own. Poll with the matching Get operation to observe the transition. New values may be added over time, so treat an unrecognized value as "still settling" rather than an error.

Type: String

Valid Values: CREATING | UPDATING | DELETING | READY | FAILED

updatedAt

When the pool was last modified. Equal to createdAt until the first successful update.

Type: Timestamp

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. reason distinguishes 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

ConflictException

The request conflicts with the current state of the resource. Nothing was changed. Depending on reason, the request may succeed if retried once the resource reaches a settled state, or it may require different input (for example a name that is not already taken).

resourceId

The identifier of the resource the request conflicted with, when the service attributes the conflict to a single resource.

resourceType

The type of the resource named by resourceId, when present.

HTTP Status Code: 409

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

ServiceQuotaExceededException

The request would exceed a service quota, so it was rejected and nothing was created or changed. Delete resources that are no longer needed, or request a quota increase in Service Quotas using serviceCode and quotaCode, then retry.

quotaCode

The Service Quotas requirement that identifies the originating quota.

resourceId

The identifier of the resource whose quota was exceeded, when the quota applies to a specific resource rather than the account.

resourceType

The type of the resource named by resourceId, when present.

serviceCode

The Service Quotas requirement that identifies the originating service.

HTTP Status Code: 402

ThrottlingException

The request was denied because the caller exceeded a request rate limit. Nothing was changed. Retry with exponential backoff, honoring retryAfterSeconds when 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 reason to branch in code and message for 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: