com.pulumi.aws.route53.kotlin.ResolverQueryLogConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.route53.kotlin
import com.pulumi.aws.route53.ResolverQueryLogConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides a Route 53 Resolver query logging configuration resource.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.route53.ResolverQueryLogConfig("example", {
* name: "example",
* destinationArn: exampleAwsS3Bucket.arn,
* tags: {
* Environment: "Prod",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.route53.ResolverQueryLogConfig("example",
* name="example",
* destination_arn=example_aws_s3_bucket["arn"],
* tags={
* "Environment": "Prod",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Route53.ResolverQueryLogConfig("example", new()
* {
* Name = "example",
* DestinationArn = exampleAwsS3Bucket.Arn,
* Tags =
* {
* { "Environment", "Prod" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := route53.NewResolverQueryLogConfig(ctx, "example", &route53.ResolverQueryLogConfigArgs{
* Name: pulumi.String("example"),
* DestinationArn: pulumi.Any(exampleAwsS3Bucket.Arn),
* Tags: pulumi.StringMap{
* "Environment": pulumi.String("Prod"),
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.aws.route53.ResolverQueryLogConfig;
* import com.pulumi.aws.route53.ResolverQueryLogConfigArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new ResolverQueryLogConfig("example", ResolverQueryLogConfigArgs.builder()
* .name("example")
* .destinationArn(exampleAwsS3Bucket.arn())
* .tags(Map.of("Environment", "Prod"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:route53:ResolverQueryLogConfig
* properties:
* name: example
* destinationArn: ${exampleAwsS3Bucket.arn}
* tags:
* Environment: Prod
* ```
*
* ## Import
* Using `pulumi import`, import Route 53 Resolver query logging configurations using the Route 53 Resolver query logging configuration ID. For example:
* ```sh
* $ pulumi import aws:route53/resolverQueryLogConfig:ResolverQueryLogConfig example rqlc-92edc3b1838248bf
* ```
* @property destinationArn The ARN of the resource that you want Route 53 Resolver to send query logs.
* You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.
* @property name The name of the Route 53 Resolver query logging configuration.
* @property tags A map of tags to assign to the resource. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
public data class ResolverQueryLogConfigArgs(
public val destinationArn: Output? = null,
public val name: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy