aws_sdk_cloudwatchlogs/client/
put_delivery_source.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`PutDeliverySource`](crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    ///   - [`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> and <code>TRACES</code>.</p></li>  <li>   <p>For CloudFront, the valid value is <code>ACCESS_LOGS</code>.</p></li>  <li>   <p>For Amazon CodeWhisperer, the valid value is <code>EVENT_LOGS</code>.</p></li>  <li>   <p>For Elemental MediaPackage, the valid values are <code>EGRESS_ACCESS_LOGS</code> and <code>INGRESS_ACCESS_LOGS</code>.</p></li>  <li>   <p>For Elemental MediaTailor, the valid values are <code>AD_DECISION_SERVER_LOGS</code>, <code>MANIFEST_SERVICE_LOGS</code>, and <code>TRANSCODE_LOGS</code>.</p></li>  <li>   <p>For Entity Resolution, the valid value is <code>WORKFLOW_LOGS</code>.</p></li>  <li>   <p>For IAM Identity Center, the valid value is <code>ERROR_LOGS</code>.</p></li>  <li>   <p>For PCS, the valid values are <code>PCS_SCHEDULER_LOGS</code> and <code>PCS_JOBCOMP_LOGS</code>.</p></li>  <li>   <p>For Amazon Q, the valid value is <code>EVENT_LOGS</code>.</p></li>  <li>   <p>For Amazon SES mail manager, the valid values are <code>APPLICATION_LOG</code> and <code>TRAFFIC_POLICY_DEBUG_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>, <code>WORKMAIL_MAILBOX_ACCESS_LOGS</code>, and <code>WORKMAIL_PERSONAL_ACCESS_TOKEN_LOGS</code>.</p></li>  <li>   <p>For Amazon VPC Route Server, the valid value is <code>EVENT_LOGS</code>.</p></li> </ul><br>
9    ///   - [`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>
10    /// - On success, responds with [`PutDeliverySourceOutput`](crate::operation::put_delivery_source::PutDeliverySourceOutput) with field(s):
11    ///   - [`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>
12    /// - On failure, responds with [`SdkError<PutDeliverySourceError>`](crate::operation::put_delivery_source::PutDeliverySourceError)
13    pub fn put_delivery_source(&self) -> crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder {
14        crate::operation::put_delivery_source::builders::PutDeliverySourceFluentBuilder::new(self.handle.clone())
15    }
16}