getTrafficPolicyInstance method

Future<GetTrafficPolicyInstanceResponse> getTrafficPolicyInstance({
  1. required String id,
})

Gets information about a specified traffic policy instance.

May throw NoSuchTrafficPolicyInstance. May throw InvalidInput.

Parameter id : The ID of the traffic policy instance that you want to get information about.

Implementation

Future<GetTrafficPolicyInstanceResponse> getTrafficPolicyInstance({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  _s.validateStringLength(
    'id',
    id,
    1,
    36,
    isRequired: true,
  );
  final $result = await _protocol.send(
    method: 'GET',
    requestUri:
        '/2013-04-01/trafficpolicyinstance/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetTrafficPolicyInstanceResponse.fromXml($result.body);
}