list_environments
¶
list_environments(
*,
config_overrides: Optional[InterconnectClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
provider: Optional[Provider] = None,
location: Optional[Location] = None,
) -> ListEnvironmentsResponse
Lists all of the environments that can produce connections that will land in the called AWS region.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The max number of list results in a single paginated response.
-
next_token(Optional[NextToken], default:None) –A pagination token from a previous paginated response indicating you wish to get the next page of results.
-
provider(Optional[Provider], default:None) –Filter results to only include Environment objects that connect to the Provider.
-
location(Optional[Location], default:None) –Filter results to only include Environment objects that connect to a given location distiguisher.
Raises:
-
AccessDeniedException–The calling principal is not allowed to access the specified resource, or the resource does not exist.
-
InterconnectClientException–The request was denied due to incorrect client supplied parameters.
-
InterconnectServerException–The request resulted in an exception internal to the service.
-
InterconnectValidationException–The input fails to satisfy the constraints specified.
-
ResourceNotFoundException–The request specifies a resource that does not exist on the server.
-
ServiceQuotaExceededException–The requested operation would result in the calling principal exceeding their allotted quota.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List All Environments
Source code in docs_src/capo_interconnect/_services/interconnect.py
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 | |