aws_sdk_cloudwatchlogs/client/put_delivery_source.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`PutDeliverySource`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::set_name):<br>required: **true**<br><p>A name for this delivery source. This name must be unique for all delivery sources in your account.</p><br>
/// - [`resource_arn(impl Into<String>)`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The ARN of the Amazon Web Services resource that is generating and sending logs. For example, <code>arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234</code></p><br>
/// - [`log_type(impl Into<String>)`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::log_type) / [`set_log_type(Option<String>)`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::set_log_type):<br>required: **true**<br><p>Defines the type of log that the source is sending.</p> <ul> <li> <p>For Amazon Bedrock, the valid value is <code>APPLICATION_LOGS</code>.</p></li> <li> <p>For Amazon CodeWhisperer, the valid value is <code>EVENT_LOGS</code>.</p></li> <li> <p>For IAM Identity Center, the valid value is <code>ERROR_LOGS</code>.</p></li> <li> <p>For Amazon WorkMail, the valid values are <code>ACCESS_CONTROL_LOGS</code>, <code>AUTHENTICATION_LOGS</code>, <code>WORKMAIL_AVAILABILITY_PROVIDER_LOGS</code>, and <code>WORKMAIL_MAILBOX_ACCESS_LOGS</code>.</p></li> </ul><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::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 [`PutDeliverySourceOutput`](crate::operation::put_delivery_source::PutDeliverySourceOutput) with field(s):
/// - [`delivery_source(Option<DeliverySource>)`](crate::operation::put_delivery_source::PutDeliverySourceOutput::delivery_source): <p>A structure containing information about the delivery source that was just created or updated.</p>
/// - On failure, responds with [`SdkError<PutDeliverySourceError>`](crate::operation::put_delivery_source::PutDeliverySourceError)
pub fn put_delivery_source(&self) -> crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder {
crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::new(self.handle.clone())
}
}