deleteResourcesByExternalId method

Future<void> deleteResourcesByExternalId({
  1. String? externalId,
})

Deletes resources linked to an external ID.

Parameter externalId : The unique ID of an external resource (for example, a CloudFormation stack ID) that is linked to one or more CodeDeploy resources.

Implementation

Future<void> deleteResourcesByExternalId({
  String? externalId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeDeploy_20141006.DeleteResourcesByExternalId'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (externalId != null) 'externalId': externalId,
    },
  );
}