disassociateSecurityProfiles method
Disassociates a security profile attached to a Q in Connect AI Agent Entity in an Amazon Connect instance.
May throw AccessDeniedException.
May throw ConditionalOperationFailedException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceConflictException.
May throw ResourceNotFoundException.
Parameter entityArn :
ARN of a Q in Connect AI Agent.
Parameter entityType :
Only supported type is AI_AGENT.
Parameter instanceId :
The identifier of the Amazon Connect instance. You can find the instance
ID in the Amazon Resource Name (ARN) of the instance.
Parameter securityProfiles :
List of Security Profile Object.
Implementation
Future<void> disassociateSecurityProfiles({
required String entityArn,
required EntityType entityType,
required String instanceId,
required List<SecurityProfileItem> securityProfiles,
}) async {
final $payload = <String, dynamic>{
'EntityArn': entityArn,
'EntityType': entityType.value,
'SecurityProfiles': securityProfiles,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/disassociate-security-profiles/${Uri.encodeComponent(instanceId)}',
exceptionFnMap: _exceptionFns,
);
}