

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::ProfileEntry

Creates a profile entry that binds an extension to a profile. The extension must exist, and the profile can't already have an entry for that extension.

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

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

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

```json
{
  "Type" : "AWS::CloudExtensions::ProfileEntry",
  "Properties" : {
      "[Approve](#cfn-cloudextensions-profileentry-approve)" : {{[ String, ... ]}},
      "[Description](#cfn-cloudextensions-profileentry-description)" : {{String}},
      "[ExecutionRole](#cfn-cloudextensions-profileentry-executionrole)" : {{String}},
      "[ExtensionId](#cfn-cloudextensions-profileentry-extensionid)" : {{String}},
      "[Interfaces](#cfn-cloudextensions-profileentry-interfaces)" : {{[ Interface, ... ]}},
      "[Name](#cfn-cloudextensions-profileentry-name)" : {{String}},
      "[ProfileId](#cfn-cloudextensions-profileentry-profileid)" : {{String}},
      "[Settings](#cfn-cloudextensions-profileentry-settings)" : {{Json}},
      "[Tags](#cfn-cloudextensions-profileentry-tags)" : {{[ Tag, ... ]}},
      "[VersionPolicy](#cfn-cloudextensions-profileentry-versionpolicy)" : {{VersionPolicy}}
    }
}
```

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

```yaml
Type: AWS::CloudExtensions::ProfileEntry
Properties:
  [Approve](#cfn-cloudextensions-profileentry-approve): {{
    - String}}
  [Description](#cfn-cloudextensions-profileentry-description): {{String}}
  [ExecutionRole](#cfn-cloudextensions-profileentry-executionrole): {{String}}
  [ExtensionId](#cfn-cloudextensions-profileentry-extensionid): {{String}}
  [Interfaces](#cfn-cloudextensions-profileentry-interfaces): {{
    - Interface}}
  [Name](#cfn-cloudextensions-profileentry-name): {{String}}
  [ProfileId](#cfn-cloudextensions-profileentry-profileid): {{String}}
  [Settings](#cfn-cloudextensions-profileentry-settings): {{Json}}
  [Tags](#cfn-cloudextensions-profileentry-tags): {{
    - Tag}}
  [VersionPolicy](#cfn-cloudextensions-profileentry-versionpolicy): {{
    VersionPolicy}}
```

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

`Approve`  <a name="cfn-cloudextensions-profileentry-approve"></a>
A list of capability paths to approve. Each path must correspond to a capability instance that the extension declares. A capability path is a capability ID, optionally followed by dot-separated child IDs or list indexes. You can specify up to 100 paths.  
*Required*: No  
*Type*: Array of String  
*Minimum*: `3`  
*Maximum*: `128 | 100`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Description`  <a name="cfn-cloudextensions-profileentry-description"></a>
A description of the purpose of the entry. The description can be up to 256 characters long.  
*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)

`ExecutionRole`  <a name="cfn-cloudextensions-profileentry-executionrole"></a>
The ARN of the IAM role that the extension assumes when it calls Amazon services. The principal of the Cloud Extensions orchestrator must be able to assume the role.  
*Required*: No  
*Type*: String  
*Pattern*: `^arn:[a-z0-9-]+:iam:[a-z0-9-]*:[0-9]{0,12}:role/[a-zA-Z0-9/_+=,.@-]+$`  
*Minimum*: `20`  
*Maximum*: `1011`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ExtensionId`  <a name="cfn-cloudextensions-profileentry-extensionid"></a>
The ID of the extension that this entry references, such as `aws:secretsmanager`.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-z0-9]{3,16}:[a-z][a-z0-9]+([_-][a-z0-9]+)*$`  
*Minimum*: `6`  
*Maximum*: `49`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Interfaces`  <a name="cfn-cloudextensions-profileentry-interfaces"></a>
The options for each interface, keyed by the ID of an interface that the extension declares. You can specify options for up to 10 interfaces.  
*Required*: No  
*Type*: Array of [Interface](aws-properties-cloudextensions-profileentry-interface.md)  
*Maximum*: `10`  
*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-profileentry-name"></a>
The name of the profile entry, which is unique within the profile. The default is the name part of the extension ID.  
*Required*: No  
*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)

`ProfileId`  <a name="cfn-cloudextensions-profileentry-profileid"></a>
The ID of the profile that this entry belongs to.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-z0-9]{10,63}$`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Settings`  <a name="cfn-cloudextensions-profileentry-settings"></a>
The setting values to use for this extension, as free-form JSON. The keys are the setting IDs of the extension. The values are validated against the setting definitions of the extension. A setting that you omit or set to null takes its default value, if it has one. A null value inside an array isn't valid.  
*Required*: No  
*Type*: Json  
*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-profileentry-tags"></a>
The tags to assign to the profile entry.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-cloudextensions-profileentry-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)

`VersionPolicy`  <a name="cfn-cloudextensions-profileentry-versionpolicy"></a>
The policy that controls which extension version this entry tracks, and how the entry adopts new releases.  
*Required*: No  
*Type*: [VersionPolicy](aws-properties-cloudextensions-profileentry-versionpolicy.md)  
*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-profileentry-return-values"></a>

### Ref
<a name="aws-resource-cloudextensions-profileentry-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 entry, 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-profileentry-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-profileentry-return-values-fn--getatt-fn--getatt"></a>

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

`ExtensionDisplayName`  <a name="ExtensionDisplayName-fn::getatt"></a>
The display name of the extension that this entry references.

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

`LatestVersion`  <a name="LatestVersion-fn::getatt"></a>
The latest released version of the extension, whether or not the version policy of the entry selects it.

`ProfileName`  <a name="ProfileName-fn::getatt"></a>
The name of the profile that this entry belongs to.

`ResolvedVersion`  <a name="ResolvedVersion-fn::getatt"></a>
The extension version that the version policy of the entry selects. The Cloud Extensions orchestrator runs this version.