notifyResourceDeploymentStatusChange method
Notify Proton of status changes to a provisioned resource when you use self-managed provisioning.
For more information, see Self-managed provisioning in the Proton User Guide.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter resourceArn :
The provisioned resource Amazon Resource Name (ARN).
Parameter deploymentId :
The deployment ID for your provisioned resource.
Parameter outputs :
The provisioned resource state change detail data that's returned by
Proton.
Parameter status :
The status of your provisioned resource.
Parameter statusMessage :
The deployment status message for your provisioned resource.
Implementation
Future<void> notifyResourceDeploymentStatusChange({
required String resourceArn,
String? deploymentId,
List<Output>? outputs,
ResourceDeploymentStatus? status,
String? statusMessage,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AwsProton20200720.NotifyResourceDeploymentStatusChange'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'resourceArn': resourceArn,
if (deploymentId != null) 'deploymentId': deploymentId,
if (outputs != null) 'outputs': outputs,
if (status != null) 'status': status.value,
if (statusMessage != null) 'statusMessage': statusMessage,
},
);
}