Interconnect / Client / list_environments
list_environments¶
- Interconnect.Client.list_environments(**kwargs)¶
Lists all of the environments that can produce connections that will land in the called AWS region.
See also: AWS API Documentation
Request Syntax
response = client.list_environments( maxResults=123, nextToken='string', provider={ 'cloudServiceProvider': 'string', 'lastMileProvider': 'string' }, location='string' )
- Parameters:
maxResults (integer) – The max number of list results in a single paginated response.
nextToken (string) – A pagination token from a previous paginated response indicating you wish to get the next page of results.
provider (dict) –
Filter results to only include Environment objects that connect to the Provider.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
cloudServiceProvider,lastMileProvider.cloudServiceProvider (string) –
The provider’s name. Specifically, connections to/from this Cloud Service Provider will be considered Multicloud connections.
lastMileProvider (string) –
The provider’s name. Specifically, connections to/from this Last Mile Provider will be considered LastMile connections.
location (string) – Filter results to only include Environment objects that connect to a given location distiguisher.
- Return type:
dict
- Returns:
Response Syntax
{ 'environments': [ { 'provider': { 'cloudServiceProvider': 'string', 'lastMileProvider': 'string' }, 'location': 'string', 'environmentId': 'string', 'state': 'available'|'limited'|'unavailable', 'bandwidths': { 'available': [ 'string', ], 'supported': [ 'string', ] }, 'type': 'string', 'activationPageUrl': 'string', 'remoteIdentifierType': 'account'|'email' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
environments (list) –
The list of matching Environment objects.
(dict) –
Defines the logical topology that an AWS Interconnect Connection is created upon.
Specifically, an Environment defines the partner The remote Cloud Service Provider of this resource. or The remote Last Mile Provider of this resource. and the region or location specification to which an AWS Interconnect Connection can be made.
provider (dict) –
The provider on the remote side of this Connection.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
cloudServiceProvider,lastMileProvider. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
cloudServiceProvider (string) –
The provider’s name. Specifically, connections to/from this Cloud Service Provider will be considered Multicloud connections.
lastMileProvider (string) –
The provider’s name. Specifically, connections to/from this Last Mile Provider will be considered LastMile connections.
location (string) –
The provider specific location on the remote side of this Connection.
environmentId (string) –
The identifier of this Environment
state (string) –
The state of the Environment. Possible values:
available: The environment is available and new Connection objects can be requested.limited: The environment is available, but overall capacity is limited. The set of available bandwidthsunavailable: The environment is currently unavailable.
bandwidths (dict) –
The sets of bandwidths that are available and supported on this environment.
available (list) –
The list of currently available bandwidths.
(string) –
supported (list) –
The list of all bandwidths that this environment plans to support
(string) –
type (string) –
The specific product type of Connection objects provided by this Environment.
activationPageUrl (string) –
An HTTPS URL on the remote partner portal where the Activation Key should be brought to complete the creation process.
remoteIdentifierType (string) –
The type of identifying information that should be supplied to the
remoteAccountparameter of a CreateConnection call for this specific Environment.
nextToken (string) –
A pagination token for use in subsequent calls to fetch the next page of results.
Exceptions
Interconnect.Client.exceptions.ResourceNotFoundExceptionInterconnect.Client.exceptions.InterconnectClientExceptionInterconnect.Client.exceptions.ThrottlingExceptionInterconnect.Client.exceptions.AccessDeniedExceptionInterconnect.Client.exceptions.InterconnectValidationExceptionInterconnect.Client.exceptions.ServiceQuotaExceededExceptionInterconnect.Client.exceptions.InterconnectServerException