

# NetworkScopePrincipal

Describes a principal associated with a network scope.

## Contents
<a name="API_NetworkScopePrincipal_Contents"></a>

 ** NetworkScopeId **   <a name="networkmanager-Type-NetworkScopePrincipal-NetworkScopeId"></a>
The ID of the network scope.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 50.  
Pattern: `[\s\S]*`   
Required: Yes

 ** Principal **   <a name="networkmanager-Type-NetworkScopePrincipal-Principal"></a>
The principal.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 68.  
Pattern: `[\s\S]*`   
Required: Yes

 ** PrincipalRegions **   <a name="networkmanager-Type-NetworkScopePrincipal-PrincipalRegions"></a>
The AWS Regions of the network scope. A principal always has all of the Regions of the network scope. If the account isn't covered in a Region for a reason that you must fix, `StateReason` says so.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 50 items.  
Length Constraints: Minimum length of 1. Maximum length of 63.  
Pattern: `[\s\S]*`   
Required: Yes

 ** State **   <a name="networkmanager-Type-NetworkScopePrincipal-State"></a>
The state of the principal. The possible values are the following:  
+  `ASSOCIATING`: The principal is being associated with the network scope.
+  `ASSOCIATED`: The principal is associated with the network scope.
+  `FAILED`: The principal isn't covered in any Region of the network scope. If you must fix the cause, `StateReason` describes it. The association is retried, and the principal becomes `ASSOCIATED` when it's covered in at least one Region.
+  `DISASSOCIATING`: The principal is being disassociated from the network scope.
+  `DISASSOCIATED`: The principal is disassociated from the network scope. The network scope then removes the principal, so `ListNetworkScopePrincipals` no longer returns it.
+  `INACTIVE`: The principal no longer qualifies for the network scope, because the account left the organization or the network scope's owner lost its standing in the organization. The network scope keeps the principal but doesn't cover it, and `StateReason` describes the cause. The principal returns to `ASSOCIATING` when the cause is resolved. This state applies only to network scopes with the `ORGANIZATIONS` access mode.
Type: String  
Valid Values: `ASSOCIATING | ASSOCIATED | FAILED | DISASSOCIATING | DISASSOCIATED | INACTIVE`   
Required: Yes

 ** StateReason **   <a name="networkmanager-Type-NetworkScopePrincipal-StateReason"></a>
The reason for the current state of the principal. A reason is always returned for a principal in the `INACTIVE` state. For a principal in the `FAILED` state, or in the `ASSOCIATED` state when it covers only some of the Regions of the network scope, a reason is returned when the cause is one that you must fix. A reason is also returned for a principal in the `DISASSOCIATING` state when you must complete a prerequisite to finish removing it.  
Type: [NetworkScopePrincipalStateReason](API_NetworkScopePrincipalStateReason.md) object  
Required: No

## See Also
<a name="API_NetworkScopePrincipal_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/networkmanager-2019-07-05/NetworkScopePrincipal) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/networkmanager-2019-07-05/NetworkScopePrincipal) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/networkmanager-2019-07-05/NetworkScopePrincipal) 