describe_direct_connect_gateway_associations
async
¶
describe_direct_connect_gateway_associations(
*,
config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
association_id: Optional[DirectConnectGatewayAssociationId] = None,
associated_gateway_id: Optional[AssociatedGatewayId] = None,
direct_connect_gateway_id: Optional[DirectConnectGatewayId] = None,
max_results: Optional[MaxResultSetSize] = None,
next_token: Optional[PaginationToken] = None,
virtual_gateway_id: Optional[VirtualGatewayId] = None,
) -> DescribeDirectConnectGatewayAssociationsResult
Lists the associations between your Direct Connect gateways and virtual private gateways and transit gateways. You must specify one of the following:
-
A Direct Connect gateway
The response contains all virtual private gateways and transit gateways associated with the Direct Connect gateway.
-
A virtual private gateway
The response contains the Direct Connect gateway.
-
A transit gateway
The response contains the Direct Connect gateway.
-
A Direct Connect gateway and a virtual private gateway
The response contains the association between the Direct Connect gateway and virtual private gateway.
-
A Direct Connect gateway and a transit gateway
The response contains the association between the Direct Connect gateway and transit gateway.
-
A Direct Connect gateway and a virtual private gateway
The response contains the association between the Direct Connect gateway and virtual private gateway.
-
A Direct Connect gateway association to a Cloud WAN core network
The response contains the Cloud WAN core network ID that the Direct Connect gateway is associated to.
Parameters:
-
association_id(Optional[DirectConnectGatewayAssociationId], default:None) –The ID of the Direct Connect gateway association.
-
associated_gateway_id(Optional[AssociatedGatewayId], default:None) –The ID of the associated gateway.
-
direct_connect_gateway_id(Optional[DirectConnectGatewayId], default:None) –The ID of the Direct Connect gateway.
-
max_results(Optional[MaxResultSetSize], default:None) –The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue.If
MaxResultsis given a value larger than 100, only 100 results are returned. -
next_token(Optional[PaginationToken], default:None) –The token provided in the previous call to retrieve the next page.
-
virtual_gateway_id(Optional[VirtualGatewayId], default:None) –The ID of the virtual private gateway or transit gateway.
Raises:
-
DirectConnectClientException–One or more parameters are not valid.
-
DirectConnectServerException–A server-side error occurred.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 | |