aws_sdk_route53/client/
create_query_logging_config.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 [`CreateQueryLoggingConfig`](crate::operation::create_query_logging_config::builders::CreateQueryLoggingConfigFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`hosted_zone_id(impl Into<String>)`](crate::operation::create_query_logging_config::builders::CreateQueryLoggingConfigFluentBuilder::hosted_zone_id) / [`set_hosted_zone_id(Option<String>)`](crate::operation::create_query_logging_config::builders::CreateQueryLoggingConfigFluentBuilder::set_hosted_zone_id):<br>required: **true**<br><p>The ID of the hosted zone that you want to log queries for. You can log queries only for public hosted zones.</p><br>
7    ///   - [`cloud_watch_logs_log_group_arn(impl Into<String>)`](crate::operation::create_query_logging_config::builders::CreateQueryLoggingConfigFluentBuilder::cloud_watch_logs_log_group_arn) / [`set_cloud_watch_logs_log_group_arn(Option<String>)`](crate::operation::create_query_logging_config::builders::CreateQueryLoggingConfigFluentBuilder::set_cloud_watch_logs_log_group_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) for the log group that you want to Amazon Route 53 to send query logs to. This is the format of the ARN:</p> <p>arn:aws:logs:<i>region</i>:<i>account-id</i>:log-group:<i>log_group_name</i></p> <p>To get the ARN for a log group, you can use the CloudWatch console, the <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogGroups.html">DescribeLogGroups</a> API action, the <a href="https://docs.aws.amazon.com/cli/latest/reference/logs/describe-log-groups.html">describe-log-groups</a> command, or the applicable command in one of the Amazon Web Services SDKs.</p><br>
8    /// - On success, responds with [`CreateQueryLoggingConfigOutput`](crate::operation::create_query_logging_config::CreateQueryLoggingConfigOutput) with field(s):
9    ///   - [`query_logging_config(Option<QueryLoggingConfig>)`](crate::operation::create_query_logging_config::CreateQueryLoggingConfigOutput::query_logging_config): <p>A complex type that contains the ID for a query logging configuration, the ID of the hosted zone that you want to log queries for, and the ARN for the log group that you want Amazon Route 53 to send query logs to.</p>
10    ///   - [`location(String)`](crate::operation::create_query_logging_config::CreateQueryLoggingConfigOutput::location): <p>The unique URL representing the new query logging configuration.</p>
11    /// - On failure, responds with [`SdkError<CreateQueryLoggingConfigError>`](crate::operation::create_query_logging_config::CreateQueryLoggingConfigError)
12    pub fn create_query_logging_config(&self) -> crate::operation::create_query_logging_config::builders::CreateQueryLoggingConfigFluentBuilder {
13        crate::operation::create_query_logging_config::builders::CreateQueryLoggingConfigFluentBuilder::new(self.handle.clone())
14    }
15}