

# NetworkScopePrincipalStateReason

Contains a code and a message that describe why a network scope principal is in its current state, for example why the account isn't covered in a Region of the network scope.

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

 ** Code **   <a name="networkmanager-Type-NetworkScopePrincipalStateReason-Code"></a>
A stable code that identifies why the resource is in its current state. Branch on this value rather than on `Message`.  
Type: String  
Valid Values: `ORGANIZATION_ACCESS_LOST | SCOPE_OWNER_NOT_ORGANIZATION_MEMBER | NETWORK_MANAGER_SERVICE_ACCESS_NOT_ENABLED | SCOPE_OWNER_NOT_NETWORK_MANAGER_DELEGATED_ADMINISTRATOR | NOT_IN_OWNER_ORGANIZATION | ORGANIZATIONAL_UNIT_DELETED | NETWORK_MANAGER_SERVICE_LINKED_ROLE_NOT_ASSUMABLE | REGION_NOT_ENABLED | NETWORK_SECURITY_ANALYSIS_POLICY_MANAGEMENT_NOT_DELEGATED | NETWORK_SECURITY_ANALYSIS_POLICY_ATTACHMENT_LIMIT_EXCEEDED`   
Required: No

 ** Message **   <a name="networkmanager-Type-NetworkScopePrincipalStateReason-Message"></a>
A human-readable description of the reason, including details such as the action that was denied, the account, or the Region. Don't parse this value to determine state.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 10000000.  
Pattern: `[\s\S]*`   
Required: No

## See Also
<a name="API_NetworkScopePrincipalStateReason_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/NetworkScopePrincipalStateReason) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/networkmanager-2019-07-05/NetworkScopePrincipalStateReason) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/networkmanager-2019-07-05/NetworkScopePrincipalStateReason) 