aws_sdk_cloudwatchlogs/client/
put_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 [`PutDestination`](crate::operation::put_destination::builders::PutDestinationFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`destination_name(impl Into<String>)`](crate::operation::put_destination::builders::PutDestinationFluentBuilder::destination_name) / [`set_destination_name(Option<String>)`](crate::operation::put_destination::builders::PutDestinationFluentBuilder::set_destination_name):<br>required: **true**<br><p>A name for the destination.</p><br>
    ///   - [`target_arn(impl Into<String>)`](crate::operation::put_destination::builders::PutDestinationFluentBuilder::target_arn) / [`set_target_arn(Option<String>)`](crate::operation::put_destination::builders::PutDestinationFluentBuilder::set_target_arn):<br>required: **true**<br><p>The ARN of an Amazon Kinesis stream to which to deliver matching log events.</p><br>
    ///   - [`role_arn(impl Into<String>)`](crate::operation::put_destination::builders::PutDestinationFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::put_destination::builders::PutDestinationFluentBuilder::set_role_arn):<br>required: **true**<br><p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::put_destination::builders::PutDestinationFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::put_destination::builders::PutDestinationFluentBuilder::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 [`PutDestinationOutput`](crate::operation::put_destination::PutDestinationOutput) with field(s):
    ///   - [`destination(Option<Destination>)`](crate::operation::put_destination::PutDestinationOutput::destination): <p>The destination.</p>
    /// - On failure, responds with [`SdkError<PutDestinationError>`](crate::operation::put_destination::PutDestinationError)
    pub fn put_destination(&self) -> crate::operation::put_destination::builders::PutDestinationFluentBuilder {
        crate::operation::put_destination::builders::PutDestinationFluentBuilder::new(self.handle.clone())
    }
}