CredentialBrokerControl / Client / create_credential_provider_pool
create_credential_provider_pool¶
- CredentialBrokerControl.Client.create_credential_provider_pool(**kwargs)¶
Creates a CredentialProviderPool. The customer provides the pool name; the service generates the pool id and ARN.
Creation is asynchronous. The operation returns the pool with a transitional
status, and the pool reachesREADYorFAILEDon its own; pollGetCredentialProviderPoolto observe the transition.The encryption configuration you set here governs every credential provider in the pool: a provider encrypts the credentials it caches under the pool’s configuration unless it overrides that with a customer managed key of its own. A provider that inherits follows the pool, so setting or changing the pool’s key later moves those providers onto the new key, while a provider that set its own key is unaffected.
Required permissions: this operation needs additional permissions depending on how you configure the pool. If you associate an IAM Identity Center instance, you also need
sso:CreateApplication,sso:PutApplicationAuthenticationMethod,sso:PutApplicationGrant, andsso:PutApplicationAssignmentConfiguration. If you encrypt with a customer managed KMS key, you also needkms:CreateGrantandkms:DescribeKeyon that key.See also: AWS API Documentation
Request Syntax
response = client.create_credential_provider_pool( name='string', clientToken='string', encryptionConfiguration={ 'customerManaged': { 'kmsKeyIdentifier': 'string' }, 'serviceManaged': {} }, identityCenterConfiguration={ 'idcInstanceArn': 'string' }, tags={ 'string': 'string' } )
- Parameters:
name (string) –
[REQUIRED]
The name for the credential provider pool. Must be unique among the pools that currently exist in your account. You can change it later with UpdateCredentialProviderPool.
clientToken (string) –
SDK auto-populates; enables safe retries.
This field is autopopulated if not provided.
encryptionConfiguration (dict) –
How cached tokens are encrypted at rest for the providers in this pool. Omit to encrypt with a service-owned key. Each provider in the pool uses this configuration unless it overrides it with a customer managed key of its own.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
customerManaged,serviceManaged.customerManaged (dict) –
Encrypt with a customer managed KMS key that you own.
kmsKeyIdentifier (string) – [REQUIRED]
Identifier of the customer-managed KMS key used to encrypt cached tokens. Accepts a key ARN (
...:key/<id>), an alias ARN (...:alias/<name>), or a bare alias name (alias/<name>). Any alias is dereferenced to its underlying key ARN viakms:DescribeKeyat create/update time, and only the resolved key ARN is persisted and returned, a KMS alias is a mutable pointer, so pinning the key ARN keeps the configuration stable. A bare alias name resolves in the caller’s own account and Region; to reference a key in a different account (cross-account), supply a full key ARN or alias ARN so the account is explicit.
serviceManaged (dict) –
Encrypt with a service-owned, AWS-managed key. Carries no parameters.
identityCenterConfiguration (dict) –
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.
idcInstanceArn (string) – [REQUIRED]
Amazon Resource Name of the IAM Identity Center instance to associate with a pool. The instance must already exist and be in the same Region as the pool.
tags (dict) –
Tags attached to a resource, as key-value pairs. Keys are unique within a resource and are case-sensitive. Use tags to categorize resources and to control access with tag-based IAM policies.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'credentialProviderPoolArn': 'string', 'credentialProviderPoolId': 'string', 'name': 'string', 'status': 'CREATING'|'UPDATING'|'DELETING'|'READY'|'FAILED', 'encryptionConfiguration': { 'customerManaged': { 'kmsKeyIdentifier': 'string' }, 'serviceManaged': {} }, 'identityCenterConfiguration': { 'idcInstanceArn': 'string' }, 'identityCenterApplicationArn': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
credentialProviderPoolArn (string) –
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.
credentialProviderPoolId (string) –
Service-generated identifier of a credential provider pool. Opaque and stable for the life of the pool.
name (string) –
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.
status (string) –
Lifecycle status of a resource. Create, update, and delete are asynchronous: the operation returns immediately with a transitional status, and the resource reaches
READYorFAILEDon its own. Poll with the matchingGetoperation to observe the transition. New values may be added over time, so treat an unrecognized value as “still settling” rather than an error.encryptionConfiguration (dict) –
How cached tokens are encrypted at rest for the providers in this pool. Omit to encrypt with a service-owned key. Each provider in the pool uses this configuration unless it overrides it with a customer managed key of its own.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
customerManaged,serviceManaged. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
customerManaged (dict) –
Encrypt with a customer managed KMS key that you own.
kmsKeyIdentifier (string) –
Identifier of the customer-managed KMS key used to encrypt cached tokens. Accepts a key ARN (
...:key/<id>), an alias ARN (...:alias/<name>), or a bare alias name (alias/<name>). Any alias is dereferenced to its underlying key ARN viakms:DescribeKeyat create/update time, and only the resolved key ARN is persisted and returned, a KMS alias is a mutable pointer, so pinning the key ARN keeps the configuration stable. A bare alias name resolves in the caller’s own account and Region; to reference a key in a different account (cross-account), supply a full key ARN or alias ARN so the account is explicit.
serviceManaged (dict) –
Encrypt with a service-owned, AWS-managed key. Carries no parameters.
identityCenterConfiguration (dict) –
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.
idcInstanceArn (string) –
Amazon Resource Name of the IAM Identity Center instance to associate with a pool. The instance must already exist and be in the same Region as the pool.
identityCenterApplicationArn (string) –
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.
createdAt (datetime) –
When the pool was created.
updatedAt (datetime) –
When the pool was last modified. Equal to
createdAtuntil the first successful update.
Exceptions
CredentialBrokerControl.Client.exceptions.ServiceQuotaExceededExceptionCredentialBrokerControl.Client.exceptions.ThrottlingExceptionCredentialBrokerControl.Client.exceptions.InternalServerExceptionCredentialBrokerControl.Client.exceptions.AccessDeniedExceptionCredentialBrokerControl.Client.exceptions.ValidationException