

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CredentialBroker::CredentialProviderPool

Specifies an Amazon IAM CredentialBroker credential provider pool. A pool groups credential providers and holds the settings they share: how their cached tokens are encrypted at rest, and an optional association with an IAM Identity Center instance. Minimally, you must specify the following property:
+ `Name` – Specify a name for the credential provider pool. The name must be unique among the pools that currently exist in your account.

Optionally, specify `EncryptionConfiguration` to choose how cached tokens are encrypted, or `IdentityCenterConfiguration` to associate the pool with an IAM Identity Center instance.

See the **Properties** section below for descriptions of both the required and optional properties.

## Syntax
<a name="aws-resource-credentialbroker-credentialproviderpool-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-credentialbroker-credentialproviderpool-syntax.json"></a>

```json
{
  "Type" : "AWS::CredentialBroker::CredentialProviderPool",
  "Properties" : {
      "[EncryptionConfiguration](#cfn-credentialbroker-credentialproviderpool-encryptionconfiguration)" : {{EncryptionConfiguration}},
      "[IdentityCenterConfiguration](#cfn-credentialbroker-credentialproviderpool-identitycenterconfiguration)" : {{IdentityCenterConfiguration}},
      "[Name](#cfn-credentialbroker-credentialproviderpool-name)" : {{String}},
      "[Tags](#cfn-credentialbroker-credentialproviderpool-tags)" : {{[ Tag, ... ]}}
    }
}
```

### YAML
<a name="aws-resource-credentialbroker-credentialproviderpool-syntax.yaml"></a>

```yaml
Type: AWS::CredentialBroker::CredentialProviderPool
Properties:
  [EncryptionConfiguration](#cfn-credentialbroker-credentialproviderpool-encryptionconfiguration): {{
    EncryptionConfiguration}}
  [IdentityCenterConfiguration](#cfn-credentialbroker-credentialproviderpool-identitycenterconfiguration): {{
    IdentityCenterConfiguration}}
  [Name](#cfn-credentialbroker-credentialproviderpool-name): {{String}}
  [Tags](#cfn-credentialbroker-credentialproviderpool-tags): {{
    - Tag}}
```

## Properties
<a name="aws-resource-credentialbroker-credentialproviderpool-properties"></a>

`EncryptionConfiguration`  <a name="cfn-credentialbroker-credentialproviderpool-encryptionconfiguration"></a>
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.  
If you remove this property from your template in a stack update, the pool keeps its current key. To switch a pool from a customer managed key back to a service-owned key, set `ServiceManaged`.  
*Required*: No  
*Type*: [EncryptionConfiguration](aws-properties-credentialbroker-credentialproviderpool-encryptionconfiguration.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`IdentityCenterConfiguration`  <a name="cfn-credentialbroker-credentialproviderpool-identitycenterconfiguration"></a>
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.  
You can add or remove this property in a stack update without replacing the pool. Removing it deletes the pool's Identity Center application, so providers in the pool can no longer issue credentials for the caller's Identity Center identity. To use a different Identity Center instance, remove this property in one update and add the new instance in a later update.  
*Required*: No  
*Type*: [IdentityCenterConfiguration](aws-properties-credentialbroker-credentialproviderpool-identitycenterconfiguration.md)  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Name`  <a name="cfn-credentialbroker-credentialproviderpool-name"></a>
The name for the credential provider pool. Must be unique among the pools that currently exist in your account. To rename the pool, change this value in your template; the pool is updated in place.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9_.-]{1,128}$`  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Tags`  <a name="cfn-credentialbroker-credentialproviderpool-tags"></a>
Metadata that you can assign to the credential provider pool as key-value pairs. You can specify up to 50 tags. For more information, see the following resources:  
+  [Tag naming limits and requirements](https://docs.amazonaws.cn/tag-editor/latest/userguide/tagging.html#tag-conventions) 
+  [Tagging best practices](https://docs.amazonaws.cn/tag-editor/latest/userguide/tagging.html#tag-best-practices) 
*Required*: No  
*Type*: Array of [Tag](aws-properties-credentialbroker-credentialproviderpool-tag.md)  
*Maximum*: `50`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-credentialbroker-credentialproviderpool-return-values"></a>

### Ref
<a name="aws-resource-credentialbroker-credentialproviderpool-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the Amazon Resource Name (ARN) of the pool, which is the resource's primary identifier.

For more information about using the `Ref` function, see [`Ref`](https://docs.amazonaws.cn/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-credentialbroker-credentialproviderpool-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [`Fn::GetAtt`](https://docs.amazonaws.cn/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-credentialbroker-credentialproviderpool-return-values-fn--getatt-fn--getatt"></a>

`CreatedAt`  <a name="CreatedAt-fn::getatt"></a>
The ISO 8601 timestamp of when the credential provider pool was created.

`CredentialProviderPoolArn`  <a name="CredentialProviderPoolArn-fn::getatt"></a>
The Amazon Resource Name (ARN) of the pool. This is the primary identifier and the value returned by `Ref`.

`CredentialProviderPoolIdentifier`  <a name="CredentialProviderPoolIdentifier-fn::getatt"></a>
The service-generated identifier of the pool. This is an additional identifier accepted by operations that accept a pool identifier; it is not the value returned by `Ref`.

`IdentityCenterApplicationArn`  <a name="IdentityCenterApplicationArn-fn::getatt"></a>
The Amazon Resource Name (ARN) of the IAM Identity Center application the service created on behalf of this pool when `IdentityCenterConfiguration` was supplied. Empty when the pool is not bound to IAM Identity Center.

`Status`  <a name="Status-fn::getatt"></a>
The lifecycle status of the pool. Create, update, and delete operations are asynchronous. Possible values are `CREATING`, `UPDATING`, `DELETING`, `READY`, and `FAILED`.

`UpdatedAt`  <a name="UpdatedAt-fn::getatt"></a>
The ISO 8601 timestamp of when the credential provider pool was last updated.

## Examples
<a name="aws-resource-credentialbroker-credentialproviderpool--examples"></a>

The following example creates a credential provider pool using service-managed encryption.

### Create a credential provider pool
<a name="aws-resource-credentialbroker-credentialproviderpool--examples--Create_a_credential_provider_pool"></a>

#### YAML
<a name="aws-resource-credentialbroker-credentialproviderpool--examples--Create_a_credential_provider_pool--yaml"></a>

```yaml
Resources:
  CredentialProviderPool:
    Type: AWS::CredentialBroker::CredentialProviderPool
    Properties:
      Name: example-pool
      EncryptionConfiguration:
        ServiceManaged: {}
```