getDeploymentConfig method

Future<GetDeploymentConfigOutput> getDeploymentConfig({
  1. required String deploymentConfigName,
})

Gets information about a deployment configuration.

May throw DeploymentConfigDoesNotExistException. May throw DeploymentConfigNameRequiredException. May throw InvalidComputePlatformException. May throw InvalidDeploymentConfigNameException.

Parameter deploymentConfigName : The name of a deployment configuration associated with the user or Amazon Web Services account.

Implementation

Future<GetDeploymentConfigOutput> getDeploymentConfig({
  required String deploymentConfigName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeDeploy_20141006.GetDeploymentConfig'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'deploymentConfigName': deploymentConfigName,
    },
  );

  return GetDeploymentConfigOutput.fromJson(jsonResponse.body);
}