describeMesh method

Future<DescribeMeshOutput> describeMesh({
  1. required String meshName,
})

Describes an existing service mesh.

May throw BadRequestException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw ServiceUnavailableException. May throw TooManyRequestsException.

Parameter meshName : The name of the service mesh to describe.

Implementation

Future<DescribeMeshOutput> describeMesh({
  required String meshName,
}) async {
  ArgumentError.checkNotNull(meshName, 'meshName');
  _s.validateStringLength(
    'meshName',
    meshName,
    1,
    255,
    isRequired: true,
  );
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'GET',
    requestUri: '/meshes/${Uri.encodeComponent(meshName)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return DescribeMeshOutput(
    mesh: MeshData.fromJson($json),
  );
}