

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::SupportApp::AccountAlias
<a name="aws-resource-supportapp-accountalias"></a>

You can use the `AWS::SupportApp::AccountAlias` resource to specify your Amazon Web Services account when you configure the Amazon Web Services Support App in Slack. Your alias name appears on the Amazon Web Services Support App page in the Support Center Console and in messages from the Amazon Web Services Support App. You can use this alias to identify the account you've configured with the Amazon Web Services Support App.

For more information, see [Amazon Web Services Support App in Slack](https://docs.amazonaws.cn/awssupport/latest/user/aws-support-app-for-slack.html) in the *Amazon Web Services Support User Guide*.

## Syntax
<a name="aws-resource-supportapp-accountalias-syntax"></a>

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

### JSON
<a name="aws-resource-supportapp-accountalias-syntax.json"></a>

```
{
  "Type" : "AWS::SupportApp::AccountAlias",
  "Properties" : {
      "[AccountAlias](#cfn-supportapp-accountalias-accountalias)" : {{String}}
    }
}
```

### YAML
<a name="aws-resource-supportapp-accountalias-syntax.yaml"></a>

```
Type: AWS::SupportApp::AccountAlias
Properties:
  [AccountAlias](#cfn-supportapp-accountalias-accountalias): {{String}}
```

## Properties
<a name="aws-resource-supportapp-accountalias-properties"></a>

`AccountAlias`  <a name="cfn-supportapp-accountalias-accountalias"></a>
An alias or short name for an Amazon Web Services account.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[\w\- ]+$`  
*Minimum*: `1`  
*Maximum*: `30`  
*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-supportapp-accountalias-return-values"></a>

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

#### 
<a name="aws-resource-supportapp-accountalias-return-values-fn--getatt-fn--getatt"></a>

`AccountAliasResourceId`  <a name="AccountAliasResourceId-fn::getatt"></a>
The `AccountAlias` resource type has an attribute `AccountAliasResourceId`. You can use this attribute to identify the resource.  
The `AccountAliasResourceId` will be `AccountAlias_for_accountId`. In this example, `AccountAlias_for_` is the prefix and `accountId` is your Amazon Web Services account number, such as `AccountAlias_for_123456789012`.