# AWS::Organizations::Account You can use AWS::Organizations::Account to manage accounts in organization. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON <pre> { "Type" : "AWS::Organizations::Account", "Properties" : { "<a href="#accountname" title="AccountName">AccountName</a>" : <i>String</i>, "<a href="#email" title="Email">Email</a>" : <i>String</i>, "<a href="#rolename" title="RoleName">RoleName</a>" : <i>String</i>, "<a href="#parentids" title="ParentIds">ParentIds</a>" : <i>[ String, ... ]</i>, "<a href="#tags" title="Tags">Tags</a>" : <i>[ <a href="tag.md">Tag</a>, ... ]</i>, } } </pre> ### YAML <pre> Type: AWS::Organizations::Account Properties: <a href="#accountname" title="AccountName">AccountName</a>: <i>String</i> <a href="#email" title="Email">Email</a>: <i>String</i> <a href="#rolename" title="RoleName">RoleName</a>: <i>String</i> <a href="#parentids" title="ParentIds">ParentIds</a>: <i> - String</i> <a href="#tags" title="Tags">Tags</a>: <i> - <a href="tag.md">Tag</a></i> </pre> ## Properties #### AccountName The friendly name of the member account. _Required_: Yes _Type_: String _Minimum Length_: <code>1</code> _Maximum Length_: <code>50</code> _Pattern_: <code>[\u0020-\u007E]+</code> _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Email The email address of the owner to assign to the new member account. _Required_: Yes _Type_: String _Minimum Length_: <code>6</code> _Maximum Length_: <code>64</code> _Pattern_: <code>[^\s@]+@[^\s@]+\.[^\s@]+</code> _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### RoleName The name of an IAM role that AWS Organizations automatically preconfigures in the new member account. Default name is OrganizationAccountAccessRole if not specified. _Required_: No _Type_: String _Minimum Length_: <code>1</code> _Maximum Length_: <code>64</code> _Pattern_: <code>[\w+=,.@-]{1,64}</code> _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### ParentIds List of parent nodes for the member account. Currently only one parent at a time is supported. Default is root. _Required_: No _Type_: List of String _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) #### Tags A list of tags that you want to attach to the newly created account. For each tag in the list, you must specify both a tag key and a value. _Required_: No _Type_: List of <a href="tag.md">Tag</a> _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt) ## Return Values ### Ref When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the AccountId. ### Fn::GetAtt 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.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html). #### AccountId If the account was created successfully, the unique identifier (ID) of the new account. #### Status The status of the account in the organization. #### JoinedTimestamp The date the account became a part of the organization. #### JoinedMethod The method by which the account joined the organization. #### Arn The Amazon Resource Name (ARN) of the account.