updateDirectConnectGatewayAssociation method
Future<UpdateDirectConnectGatewayAssociationResult>
updateDirectConnectGatewayAssociation({
- List<
RouteFilterPrefix> ? addAllowedPrefixesToDirectConnectGateway, - String? associationId,
- List<
RouteFilterPrefix> ? removeAllowedPrefixesToDirectConnectGateway,
Updates the specified attributes of the Direct Connect gateway association.
Add or remove prefixes from the association.
May throw DirectConnectServerException. May throw DirectConnectClientException.
Parameter addAllowedPrefixesToDirectConnectGateway
:
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
Parameter associationId
:
The ID of the Direct Connect gateway association.
Parameter removeAllowedPrefixesToDirectConnectGateway
:
The Amazon VPC prefixes to no longer advertise to the Direct Connect
gateway.
Implementation
Future<UpdateDirectConnectGatewayAssociationResult>
updateDirectConnectGatewayAssociation({
List<RouteFilterPrefix>? addAllowedPrefixesToDirectConnectGateway,
String? associationId,
List<RouteFilterPrefix>? removeAllowedPrefixesToDirectConnectGateway,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OvertureService.UpdateDirectConnectGatewayAssociation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (addAllowedPrefixesToDirectConnectGateway != null)
'addAllowedPrefixesToDirectConnectGateway':
addAllowedPrefixesToDirectConnectGateway,
if (associationId != null) 'associationId': associationId,
if (removeAllowedPrefixesToDirectConnectGateway != null)
'removeAllowedPrefixesToDirectConnectGateway':
removeAllowedPrefixesToDirectConnectGateway,
},
);
return UpdateDirectConnectGatewayAssociationResult.fromJson(
jsonResponse.body);
}