getDeployment method
Gets a deployment. Deployments define the components that run on AWS IoT Greengrass core devices.
May throw ValidationException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException.
Parameter deploymentId
:
The ID of the deployment.
Implementation
Future<GetDeploymentResponse> getDeployment({
required String deploymentId,
}) async {
ArgumentError.checkNotNull(deploymentId, 'deploymentId');
_s.validateStringLength(
'deploymentId',
deploymentId,
1,
1152921504606846976,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/greengrass/v2/deployments/${Uri.encodeComponent(deploymentId)}',
exceptionFnMap: _exceptionFns,
);
return GetDeploymentResponse.fromJson(response);
}