disassociateSecurityKey method

Future<void> disassociateSecurityKey({
  1. required String associationId,
  2. required String instanceId,
})

This API is in preview release for Amazon Connect and is subject to change.

Deletes the specified security key.

May throw ResourceNotFoundException. May throw InternalServiceException. May throw InvalidRequestException. May throw InvalidParameterException. May throw ThrottlingException.

Parameter associationId : The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

Parameter instanceId : The identifier of the Amazon Connect instance.

Implementation

Future<void> disassociateSecurityKey({
  required String associationId,
  required String instanceId,
}) async {
  ArgumentError.checkNotNull(associationId, 'associationId');
  _s.validateStringLength(
    'associationId',
    associationId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/instance/${Uri.encodeComponent(instanceId)}/security-key/${Uri.encodeComponent(associationId)}',
    exceptionFnMap: _exceptionFns,
  );
}