updateDestination method
Update a destination specified by name.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter name :
The name of the customer-managed destination.
Parameter deliveryDestinationArn :
The Amazon Resource Name (ARN) of the customer-managed destination.
Parameter deliveryDestinationType :
The destination type for the customer-managed destination.
Parameter description :
The description of the customer-managed destination.
Parameter roleArn :
The Amazon Resource Name (ARN) of the delivery destination role.
Implementation
Future<void> updateDestination({
required String name,
String? deliveryDestinationArn,
DeliveryDestinationType? deliveryDestinationType,
String? description,
String? roleArn,
}) async {
final $payload = <String, dynamic>{
if (deliveryDestinationArn != null)
'DeliveryDestinationArn': deliveryDestinationArn,
if (deliveryDestinationType != null)
'DeliveryDestinationType': deliveryDestinationType.value,
if (description != null) 'Description': description,
if (roleArn != null) 'RoleArn': roleArn,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/destinations/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
}