

# NetworkScope

Describes a network scope.

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

 ** AccessMode **   <a name="networkmanager-Type-NetworkScope-AccessMode"></a>
How the network scope admits principals. Each principal must be the ID of an AWS account that has the AWS Network Manager service-linked role. With `ACCOUNTS`, the account can be any AWS account. With `ORGANIZATIONS`, the account that owns the network scope must be the management account or a delegated administrator for AWS Network Manager in its organization, and each principal must be an active member account of that organization. A delegated administrator can't add the management account. You choose the access mode when you create the network scope, and you can't change it.  
Type: String  
Valid Values: `ACCOUNTS | ORGANIZATIONS`   
Required: Yes

 ** CreatedAt **   <a name="networkmanager-Type-NetworkScope-CreatedAt"></a>
The date and time that the network scope was created.  
Type: Timestamp  
Required: Yes

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

 ** NetworkScopeArn **   <a name="networkmanager-Type-NetworkScope-NetworkScopeArn"></a>
The Amazon Resource Name (ARN) of the network scope.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 500.  
Pattern: `[\s\S]*`   
Required: Yes

 ** NetworkScopeId **   <a name="networkmanager-Type-NetworkScope-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

 ** NetworkScopeRegions **   <a name="networkmanager-Type-NetworkScope-NetworkScopeRegions"></a>
The AWS Regions that the network scope covers.  
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-NetworkScope-State"></a>
The state of the network scope. The possible values are the following:  
+  `PENDING`: The network scope is being created.
+  `AVAILABLE`: The network scope is ready to use.
+  `UPDATING`: A change to the Regions of the network scope is being applied.
+  `DELETING`: The network scope is being deleted.
+  `DELETED`: The network scope is deleted. `GetNetworkScope` and `ListNetworkScopes` return it for 2 hours.
+  `FAILED`: A prerequisite that you must complete blocked the creation or the deletion of the network scope. The network scope isn't in use, `StateReason` describes what to complete, and deleting the network scope is the only way to leave this state. A change that's blocked by a prerequisite that you must complete leaves the network scope `AVAILABLE` with a `StateReason`. If a change fails for another reason, the network scope stays `UPDATING` while the change is retried.
Type: String  
Valid Values: `PENDING | AVAILABLE | UPDATING | DELETING | DELETED | FAILED`   
Required: Yes

 ** StateReason **   <a name="networkmanager-Type-NetworkScope-StateReason"></a>
The reason for the current state of the network scope. A `FAILED` network scope always has a reason. An `AVAILABLE` network scope has a reason when there's a prerequisite that you must complete. For an `AVAILABLE` network scope, the reason clears after you resolve the cause and the network scope is next checked. A `FAILED` network scope keeps its reason until you delete it.  
Type: [NetworkScopeStateReason](API_NetworkScopeStateReason.md) object  
Required: No

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