aws_sdk_cloudwatchlogs/client/
put_delivery_destination.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutDeliveryDestination`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::set_name):<br>required: **true**<br><p>A name for this delivery destination. This name must be unique for all delivery destinations in your account.</p><br>
    ///   - [`output_format(OutputFormat)`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::output_format) / [`set_output_format(Option<OutputFormat>)`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::set_output_format):<br>required: **false**<br><p>The format for the logs that this delivery destination will receive.</p><br>
    ///   - [`delivery_destination_configuration(DeliveryDestinationConfiguration)`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::delivery_destination_configuration) / [`set_delivery_destination_configuration(Option<DeliveryDestinationConfiguration>)`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::set_delivery_destination_configuration):<br>required: **true**<br><p>A structure that contains the ARN of the Amazon Web Services resource that will receive the logs.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::set_tags):<br>required: **false**<br><p>An optional list of key-value pairs to associate with the resource.</p> <p>For more information about tagging, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a></p><br>
    /// - On success, responds with [`PutDeliveryDestinationOutput`](crate::operation::put_delivery_destination::PutDeliveryDestinationOutput) with field(s):
    ///   - [`delivery_destination(Option<DeliveryDestination>)`](crate::operation::put_delivery_destination::PutDeliveryDestinationOutput::delivery_destination): <p>A structure containing information about the delivery destination that you just created or updated.</p>
    /// - On failure, responds with [`SdkError<PutDeliveryDestinationError>`](crate::operation::put_delivery_destination::PutDeliveryDestinationError)
    pub fn put_delivery_destination(&self) -> crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder {
        crate::operation::put_delivery_destination::builders::PutDeliveryDestinationFluentBuilder::new(self.handle.clone())
    }
}