CredentialBrokerControl / Client / update_credential_provider_pool

update_credential_provider_pool

CredentialBrokerControl.Client.update_credential_provider_pool(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.update_credential_provider_pool(
    credentialProviderPoolIdentifier='string',
    name='string',
    encryptionConfiguration={
        'customerManaged': {
            'kmsKeyIdentifier': 'string'
        },
        'serviceManaged': {}

    },
    identityCenterUpdate={
        'associate': {
            'idcInstanceArn': 'string'
        },
        'disassociate': {}

    }
)
Parameters:
  • credentialProviderPoolIdentifier (string) –

    [REQUIRED]

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

  • name (string) – Rename the pool. If provided, MUST be unique within the account; omitting leaves the name unchanged.

  • encryptionConfiguration (dict) –

    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.

    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 via kms:DescribeKey at 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.

  • identityCenterUpdate (dict) –

    Identity Center update action. Omit to preserve existing binding.

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: associate, disassociate.

    • associate (dict) –

      Associate Identity Center with the pool using the provided configuration.

      • 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.

    • disassociate (dict) –

      Disassociate Identity Center from the pool. The existing application is deleted.

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. Accepted anywhere an operation takes a pool identifier, in place of the pool’s ARN.

    • 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 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.

    • encryptionConfiguration (dict) –

      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.

      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 set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is 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 via kms:DescribeKey at 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 createdAt until the first successful update.

Exceptions