[ aws . networkmanager ]

create-network-scope

Description

Creates a network scope for AWS Ops Agent for networking. A network scope defines the AWS accounts and Regions that AWS Ops Agent for networking analyzes.

The network scope starts in the PENDING state and moves to AVAILABLE when it’s ready, or to FAILED if a prerequisite is missing. To associate accounts with it, call AssociateNetworkScopePrincipal .

See also: AWS API Documentation

Synopsis

  create-network-scope
--name <value>
--access-mode <value>
--network-scope-regions <value>
[--tags <value>]
[--client-token <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]

Options

--name (string) [required]

The name of the network scope. The name can be up to 128 characters long and can contain letters, numbers, and spaces, as well as the following characters: . _ : / + = @ -

Constraints:

  • min: 1
  • max: 128
  • pattern: [\s\S]*

--access-mode (string) [required]

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.

Possible values:

  • ACCOUNTS
  • ORGANIZATIONS

--network-scope-regions (list) [required]

The AWS Regions that the network scope covers. Each Region must be one where AWS Ops Agent for networking is available and can appear only once.

Constraints:

  • min: 1
  • max: 50

(string)

Constraints:

  • min: 1
  • max: 63
  • pattern: [\s\S]*

Syntax:

"string" "string" ...

--tags (list)

The tags to apply to the resource during creation.

(structure)

Describes a tag.

Key -> (string)

The tag key.

Constraints: Maximum length of 128 characters.

Constraints:

  • min: 0
  • max: 10000000
  • pattern: [\s\S]*

Value -> (string)

The tag value.

Constraints: Maximum length of 256 characters.

Constraints:

  • min: 0
  • max: 10000000
  • pattern: [\s\S]*

Shorthand Syntax:

Key=string,Value=string ...

JSON Syntax:

[
  {
    "Key": "string",
    "Value": "string"
  }
  ...
]

--client-token (string)

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry within 8 hours with the same client token and the same parameters, the operation returns the network scope that the first request created. If that network scope no longer exists, the operation returns ConflictException , and you need a new client token. If you reuse a client token with different parameters, the operation returns ValidationException . If you don’t specify a client token, the AWS SDK generates one.

Constraints:

  • min: 0
  • max: 256
  • pattern: [\s\S]*

--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

Global Options

--debug (boolean)

Turn on debug logging.

--endpoint-url (string)

Override command’s default URL with the given URL.

--no-verify-ssl (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

--no-paginate (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

--output (string)

The formatting style for command output.

  • json
  • text
  • table
  • yaml
  • yaml-stream
  • off

--query (string)

A JMESPath query to use in filtering the response data.

--profile (string)

Use a specific profile from your credential file.

--region (string)

The region to use. Overrides config/env settings.

--version (string)

Display the version of this tool.

--color (string)

Turn on/off color output.

  • on
  • off
  • auto

--no-sign-request (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

--ca-bundle (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

--cli-read-timeout (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

--cli-connect-timeout (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

--cli-binary-format (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.

  • base64
  • raw-in-base64-out

--no-cli-pager (boolean)

Disable cli pager for output.

--cli-auto-prompt (boolean)

Automatically prompt for CLI input parameters.

--no-cli-auto-prompt (boolean)

Disable automatically prompt for CLI input parameters.

--cli-error-format (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

  • legacy
  • json
  • yaml
  • text
  • table
  • enhanced

--help (boolean)

Display help for the command/subcommand.

Output

NetworkScope -> (structure)

Information about the network scope.

NetworkScopeId -> (string) [required]

The ID of the network scope.

Constraints:

  • min: 1
  • max: 50
  • pattern: [\s\S]*

NetworkScopeArn -> (string) [required]

The Amazon Resource Name (ARN) of the network scope.

Constraints:

  • min: 0
  • max: 500
  • pattern: [\s\S]*

Name -> (string) [required]

The name of the network scope.

Constraints:

  • min: 1
  • max: 128
  • pattern: [\s\S]*

AccessMode -> (string) [required]

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.

Possible values:

  • ACCOUNTS
  • ORGANIZATIONS

NetworkScopeRegions -> (list) [required]

The AWS Regions that the network scope covers.

Constraints:

  • min: 1
  • max: 50

(string)

Constraints:

  • min: 1
  • max: 63
  • pattern: [\s\S]*

State -> (string) [required]

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.

Possible values:

  • PENDING
  • AVAILABLE
  • UPDATING
  • DELETING
  • DELETED
  • FAILED

StateReason -> (structure)

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.

Code -> (string)

A stable code that identifies why the resource is in its current state. Branch on this value rather than on Message .

Possible values:

  • SCOPE_OWNER_NOT_ORGANIZATION_MEMBER
  • NETWORK_MANAGER_SERVICE_ACCESS_NOT_ENABLED
  • SCOPE_OWNER_NOT_NETWORK_MANAGER_DELEGATED_ADMINISTRATOR
  • NETWORK_SECURITY_ANALYSIS_SERVICE_ACCESS_NOT_ENABLED
  • NETWORK_SECURITY_ANALYSIS_POLICY_TYPE_NOT_ENABLED
  • NETWORK_SECURITY_ANALYSIS_POLICY_MANAGEMENT_NOT_DELEGATED
  • PRINCIPALS_NOT_FULLY_COVERED

Message -> (string)

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.

Constraints:

  • min: 0
  • max: 10000000
  • pattern: [\s\S]*

CreatedAt -> (timestamp) [required]

The date and time that the network scope was created.