getDeploymentConfig method
Gets information about a deployment configuration.
May throw InvalidDeploymentConfigNameException. May throw DeploymentConfigNameRequiredException. May throw DeploymentConfigDoesNotExistException. May throw InvalidComputePlatformException.
Parameter deploymentConfigName
:
The name of a deployment configuration associated with the IAM user or AWS
account.
Implementation
Future<GetDeploymentConfigOutput> getDeploymentConfig({
required String deploymentConfigName,
}) async {
ArgumentError.checkNotNull(deploymentConfigName, 'deploymentConfigName');
_s.validateStringLength(
'deploymentConfigName',
deploymentConfigName,
1,
100,
isRequired: true,
);
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);
}