

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

# AWS::CloudWatch::DomainAccessGrantForOrganization OrganizationAccessGrantPrincipal

The principal the grant is issued to. Supply PrincipalId, or PrincipalAttributes for an attribute-based grant.

## Syntax
<a name="aws-properties-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-syntax"></a>

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

### JSON
<a name="aws-properties-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-syntax.json"></a>

```json
{
  "[PrincipalAttributes](#cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principalattributes)" : {{[ PrincipalAttribute, ... ]}},
  "[PrincipalId](#cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principalid)" : {{String}},
  "[PrincipalType](#cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principaltype)" : {{String}}
}
```

### YAML
<a name="aws-properties-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-syntax.yaml"></a>

```yaml
  [PrincipalAttributes](#cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principalattributes): {{
    - PrincipalAttribute}}
  [PrincipalId](#cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principalid): {{String}}
  [PrincipalType](#cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principaltype): {{String}}
```

## Properties
<a name="aws-properties-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-properties"></a>

`PrincipalAttributes`  <a name="cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principalattributes"></a>
Attribute key-value pairs that select the principals the grant applies to.  
*Required*: No  
*Type*: Array of [PrincipalAttribute](aws-properties-cloudwatch-domainaccessgrantfororganization-principalattribute.md)  
*Maximum*: `10`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`PrincipalId`  <a name="cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principalid"></a>
The identifier of the principal, such as an IAM role ARN or an Identity Center user ID.  
*Required*: No  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9][a-zA-Z0-9:/_+=,.@-]*$`  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`PrincipalType`  <a name="cfn-cloudwatch-domainaccessgrantfororganization-organizationaccessgrantprincipal-principaltype"></a>
The type of principal the grant is issued to.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `IDC_USER | IDC_GROUP | IAM_USER | IAM_ROLE | IAM_ROOT`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)