deleteProfile method

Future<void> deleteProfile({
  1. required String profileId,
})

Deletes the specified profile. A profile is the mechanism used to create the concept of a private network.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter profileId : Specifies the unique, system-generated identifier for the profile.

Implementation

Future<void> deleteProfile({
  required String profileId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'B2BI.DeleteProfile'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'profileId': profileId,
    },
  );
}