

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::CloudExtensions::Profile

Creates a profile. A profile is a named configuration context in which extensions run. The profile name must be unique within your account.

## Syntax
<a name="aws-resource-cloudextensions-profile-syntax"></a>

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

### JSON
<a name="aws-resource-cloudextensions-profile-syntax.json"></a>

```json
{
  "Type" : "AWS::CloudExtensions::Profile",
  "Properties" : {
      "[Description](#cfn-cloudextensions-profile-description)" : {{String}},
      "[ExtensionDefaults](#cfn-cloudextensions-profile-extensiondefaults)" : {{ExtensionDefaults}},
      "[Name](#cfn-cloudextensions-profile-name)" : {{String}},
      "[Tags](#cfn-cloudextensions-profile-tags)" : {{[ Tag, ... ]}}
    }
}
```

### YAML
<a name="aws-resource-cloudextensions-profile-syntax.yaml"></a>

```yaml
Type: AWS::CloudExtensions::Profile
Properties:
  [Description](#cfn-cloudextensions-profile-description): {{String}}
  [ExtensionDefaults](#cfn-cloudextensions-profile-extensiondefaults): {{
    ExtensionDefaults}}
  [Name](#cfn-cloudextensions-profile-name): {{String}}
  [Tags](#cfn-cloudextensions-profile-tags): {{
    - Tag}}
```

## Properties
<a name="aws-resource-cloudextensions-profile-properties"></a>

`Description`  <a name="cfn-cloudextensions-profile-description"></a>
A description of the purpose or target environment of the profile. The description can be up to 256 characters long, and can't start with a space or contain control characters.  
*Required*: No  
*Type*: String  
*Pattern*: `^[^ \p{Cc}][^\p{Cc}]*$`  
*Minimum*: `1`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ExtensionDefaults`  <a name="cfn-cloudextensions-profile-extensiondefaults"></a>
The default settings for the profile entries in a profile.  
*Required*: No  
*Type*: [ExtensionDefaults](aws-properties-cloudextensions-profile-extensiondefaults.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-cloudextensions-profile-name"></a>
The name of the profile.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-z][a-z0-9]+([_-][a-z0-9]+)*$`  
*Minimum*: `2`  
*Maximum*: `32`  
*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-cloudextensions-profile-tags"></a>
The tags to assign to the profile.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-cloudextensions-profile-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-cloudextensions-profile-return-values"></a>

### Ref
<a name="aws-resource-cloudextensions-profile-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 profile, which is the primary identifier of the resource.

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-cloudextensions-profile-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-cloudextensions-profile-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The Amazon Resource Name (ARN) of the profile.

`EntryCount`  <a name="EntryCount-fn::getatt"></a>
The number of entries in the profile.

`ExtensionDefaults.InterfaceDefaults.Http.Authentication.ExtensionKey.AccessKeyId`  <a name="ExtensionDefaults.InterfaceDefaults.Http.Authentication.ExtensionKey.AccessKeyId-fn::getatt"></a>
The SigV4 access key ID, which the service generates. The ID is `CXEK` followed by 16 uppercase letters or digits. The service sets this value and ignores any value that you supply in a request. The access key ID stays the same when you update the profile.

`Id`  <a name="Id-fn::getatt"></a>
The ID of the profile, which the service generates.