1. Packages
  2. AWS
  3. API Docs
  4. ivschat
  5. LoggingConfiguration
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.ivschat.LoggingConfiguration

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Resource for managing an AWS IVS (Interactive Video) Chat Logging Configuration.

    Example Usage

    Basic Usage - Logging to CloudWatch

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.cloudwatch.LogGroup("example", {});
    const exampleLoggingConfiguration = new aws.ivschat.LoggingConfiguration("example", {destinationConfiguration: {
        cloudwatchLogs: {
            logGroupName: example.name,
        },
    }});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.cloudwatch.LogGroup("example")
    example_logging_configuration = aws.ivschat.LoggingConfiguration("example", destination_configuration={
        "cloudwatch_logs": {
            "log_group_name": example.name,
        },
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudwatch"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ivschat"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := cloudwatch.NewLogGroup(ctx, "example", nil)
    		if err != nil {
    			return err
    		}
    		_, err = ivschat.NewLoggingConfiguration(ctx, "example", &ivschat.LoggingConfigurationArgs{
    			DestinationConfiguration: &ivschat.LoggingConfigurationDestinationConfigurationArgs{
    				CloudwatchLogs: &ivschat.LoggingConfigurationDestinationConfigurationCloudwatchLogsArgs{
    					LogGroupName: example.Name,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.CloudWatch.LogGroup("example");
    
        var exampleLoggingConfiguration = new Aws.IvsChat.LoggingConfiguration("example", new()
        {
            DestinationConfiguration = new Aws.IvsChat.Inputs.LoggingConfigurationDestinationConfigurationArgs
            {
                CloudwatchLogs = new Aws.IvsChat.Inputs.LoggingConfigurationDestinationConfigurationCloudwatchLogsArgs
                {
                    LogGroupName = example.Name,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cloudwatch.LogGroup;
    import com.pulumi.aws.ivschat.LoggingConfiguration;
    import com.pulumi.aws.ivschat.LoggingConfigurationArgs;
    import com.pulumi.aws.ivschat.inputs.LoggingConfigurationDestinationConfigurationArgs;
    import com.pulumi.aws.ivschat.inputs.LoggingConfigurationDestinationConfigurationCloudwatchLogsArgs;
    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 LogGroup("example");
    
            var exampleLoggingConfiguration = new LoggingConfiguration("exampleLoggingConfiguration", LoggingConfigurationArgs.builder()
                .destinationConfiguration(LoggingConfigurationDestinationConfigurationArgs.builder()
                    .cloudwatchLogs(LoggingConfigurationDestinationConfigurationCloudwatchLogsArgs.builder()
                        .logGroupName(example.name())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:cloudwatch:LogGroup
      exampleLoggingConfiguration:
        type: aws:ivschat:LoggingConfiguration
        name: example
        properties:
          destinationConfiguration:
            cloudwatchLogs:
              logGroupName: ${example.name}
    

    Basic Usage - Logging to Kinesis Firehose with Extended S3

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const exampleBucketV2 = new aws.s3.BucketV2("example", {bucketPrefix: "tf-ivschat-logging-bucket"});
    const assumeRole = aws.iam.getPolicyDocument({
        statements: [{
            effect: "Allow",
            principals: [{
                type: "Service",
                identifiers: ["firehose.amazonaws.com"],
            }],
            actions: ["sts:AssumeRole"],
        }],
    });
    const exampleRole = new aws.iam.Role("example", {
        name: "firehose_example_role",
        assumeRolePolicy: assumeRole.then(assumeRole => assumeRole.json),
    });
    const example = new aws.kinesis.FirehoseDeliveryStream("example", {
        name: "pulumi-kinesis-firehose-extended-s3-example-stream",
        destination: "extended_s3",
        extendedS3Configuration: {
            roleArn: exampleRole.arn,
            bucketArn: exampleBucketV2.arn,
        },
        tags: {
            LogDeliveryEnabled: "true",
        },
    });
    const exampleBucketAclV2 = new aws.s3.BucketAclV2("example", {
        bucket: exampleBucketV2.id,
        acl: "private",
    });
    const exampleLoggingConfiguration = new aws.ivschat.LoggingConfiguration("example", {destinationConfiguration: {
        firehose: {
            deliveryStreamName: example.name,
        },
    }});
    
    import pulumi
    import pulumi_aws as aws
    
    example_bucket_v2 = aws.s3.BucketV2("example", bucket_prefix="tf-ivschat-logging-bucket")
    assume_role = aws.iam.get_policy_document(statements=[{
        "effect": "Allow",
        "principals": [{
            "type": "Service",
            "identifiers": ["firehose.amazonaws.com"],
        }],
        "actions": ["sts:AssumeRole"],
    }])
    example_role = aws.iam.Role("example",
        name="firehose_example_role",
        assume_role_policy=assume_role.json)
    example = aws.kinesis.FirehoseDeliveryStream("example",
        name="pulumi-kinesis-firehose-extended-s3-example-stream",
        destination="extended_s3",
        extended_s3_configuration={
            "role_arn": example_role.arn,
            "bucket_arn": example_bucket_v2.arn,
        },
        tags={
            "LogDeliveryEnabled": "true",
        })
    example_bucket_acl_v2 = aws.s3.BucketAclV2("example",
        bucket=example_bucket_v2.id,
        acl="private")
    example_logging_configuration = aws.ivschat.LoggingConfiguration("example", destination_configuration={
        "firehose": {
            "delivery_stream_name": example.name,
        },
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ivschat"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kinesis"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleBucketV2, err := s3.NewBucketV2(ctx, "example", &s3.BucketV2Args{
    			BucketPrefix: pulumi.String("tf-ivschat-logging-bucket"),
    		})
    		if err != nil {
    			return err
    		}
    		assumeRole, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
    			Statements: []iam.GetPolicyDocumentStatement{
    				{
    					Effect: pulumi.StringRef("Allow"),
    					Principals: []iam.GetPolicyDocumentStatementPrincipal{
    						{
    							Type: "Service",
    							Identifiers: []string{
    								"firehose.amazonaws.com",
    							},
    						},
    					},
    					Actions: []string{
    						"sts:AssumeRole",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		exampleRole, err := iam.NewRole(ctx, "example", &iam.RoleArgs{
    			Name:             pulumi.String("firehose_example_role"),
    			AssumeRolePolicy: pulumi.String(assumeRole.Json),
    		})
    		if err != nil {
    			return err
    		}
    		example, err := kinesis.NewFirehoseDeliveryStream(ctx, "example", &kinesis.FirehoseDeliveryStreamArgs{
    			Name:        pulumi.String("pulumi-kinesis-firehose-extended-s3-example-stream"),
    			Destination: pulumi.String("extended_s3"),
    			ExtendedS3Configuration: &kinesis.FirehoseDeliveryStreamExtendedS3ConfigurationArgs{
    				RoleArn:   exampleRole.Arn,
    				BucketArn: exampleBucketV2.Arn,
    			},
    			Tags: pulumi.StringMap{
    				"LogDeliveryEnabled": pulumi.String("true"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = s3.NewBucketAclV2(ctx, "example", &s3.BucketAclV2Args{
    			Bucket: exampleBucketV2.ID(),
    			Acl:    pulumi.String("private"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ivschat.NewLoggingConfiguration(ctx, "example", &ivschat.LoggingConfigurationArgs{
    			DestinationConfiguration: &ivschat.LoggingConfigurationDestinationConfigurationArgs{
    				Firehose: &ivschat.LoggingConfigurationDestinationConfigurationFirehoseArgs{
    					DeliveryStreamName: example.Name,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleBucketV2 = new Aws.S3.BucketV2("example", new()
        {
            BucketPrefix = "tf-ivschat-logging-bucket",
        });
    
        var assumeRole = Aws.Iam.GetPolicyDocument.Invoke(new()
        {
            Statements = new[]
            {
                new Aws.Iam.Inputs.GetPolicyDocumentStatementInputArgs
                {
                    Effect = "Allow",
                    Principals = new[]
                    {
                        new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalInputArgs
                        {
                            Type = "Service",
                            Identifiers = new[]
                            {
                                "firehose.amazonaws.com",
                            },
                        },
                    },
                    Actions = new[]
                    {
                        "sts:AssumeRole",
                    },
                },
            },
        });
    
        var exampleRole = new Aws.Iam.Role("example", new()
        {
            Name = "firehose_example_role",
            AssumeRolePolicy = assumeRole.Apply(getPolicyDocumentResult => getPolicyDocumentResult.Json),
        });
    
        var example = new Aws.Kinesis.FirehoseDeliveryStream("example", new()
        {
            Name = "pulumi-kinesis-firehose-extended-s3-example-stream",
            Destination = "extended_s3",
            ExtendedS3Configuration = new Aws.Kinesis.Inputs.FirehoseDeliveryStreamExtendedS3ConfigurationArgs
            {
                RoleArn = exampleRole.Arn,
                BucketArn = exampleBucketV2.Arn,
            },
            Tags = 
            {
                { "LogDeliveryEnabled", "true" },
            },
        });
    
        var exampleBucketAclV2 = new Aws.S3.BucketAclV2("example", new()
        {
            Bucket = exampleBucketV2.Id,
            Acl = "private",
        });
    
        var exampleLoggingConfiguration = new Aws.IvsChat.LoggingConfiguration("example", new()
        {
            DestinationConfiguration = new Aws.IvsChat.Inputs.LoggingConfigurationDestinationConfigurationArgs
            {
                Firehose = new Aws.IvsChat.Inputs.LoggingConfigurationDestinationConfigurationFirehoseArgs
                {
                    DeliveryStreamName = example.Name,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.s3.BucketV2;
    import com.pulumi.aws.s3.BucketV2Args;
    import com.pulumi.aws.iam.IamFunctions;
    import com.pulumi.aws.iam.inputs.GetPolicyDocumentArgs;
    import com.pulumi.aws.iam.Role;
    import com.pulumi.aws.iam.RoleArgs;
    import com.pulumi.aws.kinesis.FirehoseDeliveryStream;
    import com.pulumi.aws.kinesis.FirehoseDeliveryStreamArgs;
    import com.pulumi.aws.kinesis.inputs.FirehoseDeliveryStreamExtendedS3ConfigurationArgs;
    import com.pulumi.aws.s3.BucketAclV2;
    import com.pulumi.aws.s3.BucketAclV2Args;
    import com.pulumi.aws.ivschat.LoggingConfiguration;
    import com.pulumi.aws.ivschat.LoggingConfigurationArgs;
    import com.pulumi.aws.ivschat.inputs.LoggingConfigurationDestinationConfigurationArgs;
    import com.pulumi.aws.ivschat.inputs.LoggingConfigurationDestinationConfigurationFirehoseArgs;
    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 exampleBucketV2 = new BucketV2("exampleBucketV2", BucketV2Args.builder()
                .bucketPrefix("tf-ivschat-logging-bucket")
                .build());
    
            final var assumeRole = IamFunctions.getPolicyDocument(GetPolicyDocumentArgs.builder()
                .statements(GetPolicyDocumentStatementArgs.builder()
                    .effect("Allow")
                    .principals(GetPolicyDocumentStatementPrincipalArgs.builder()
                        .type("Service")
                        .identifiers("firehose.amazonaws.com")
                        .build())
                    .actions("sts:AssumeRole")
                    .build())
                .build());
    
            var exampleRole = new Role("exampleRole", RoleArgs.builder()
                .name("firehose_example_role")
                .assumeRolePolicy(assumeRole.applyValue(getPolicyDocumentResult -> getPolicyDocumentResult.json()))
                .build());
    
            var example = new FirehoseDeliveryStream("example", FirehoseDeliveryStreamArgs.builder()
                .name("pulumi-kinesis-firehose-extended-s3-example-stream")
                .destination("extended_s3")
                .extendedS3Configuration(FirehoseDeliveryStreamExtendedS3ConfigurationArgs.builder()
                    .roleArn(exampleRole.arn())
                    .bucketArn(exampleBucketV2.arn())
                    .build())
                .tags(Map.of("LogDeliveryEnabled", "true"))
                .build());
    
            var exampleBucketAclV2 = new BucketAclV2("exampleBucketAclV2", BucketAclV2Args.builder()
                .bucket(exampleBucketV2.id())
                .acl("private")
                .build());
    
            var exampleLoggingConfiguration = new LoggingConfiguration("exampleLoggingConfiguration", LoggingConfigurationArgs.builder()
                .destinationConfiguration(LoggingConfigurationDestinationConfigurationArgs.builder()
                    .firehose(LoggingConfigurationDestinationConfigurationFirehoseArgs.builder()
                        .deliveryStreamName(example.name())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:kinesis:FirehoseDeliveryStream
        properties:
          name: pulumi-kinesis-firehose-extended-s3-example-stream
          destination: extended_s3
          extendedS3Configuration:
            roleArn: ${exampleRole.arn}
            bucketArn: ${exampleBucketV2.arn}
          tags:
            LogDeliveryEnabled: 'true'
      exampleBucketV2:
        type: aws:s3:BucketV2
        name: example
        properties:
          bucketPrefix: tf-ivschat-logging-bucket
      exampleBucketAclV2:
        type: aws:s3:BucketAclV2
        name: example
        properties:
          bucket: ${exampleBucketV2.id}
          acl: private
      exampleRole:
        type: aws:iam:Role
        name: example
        properties:
          name: firehose_example_role
          assumeRolePolicy: ${assumeRole.json}
      exampleLoggingConfiguration:
        type: aws:ivschat:LoggingConfiguration
        name: example
        properties:
          destinationConfiguration:
            firehose:
              deliveryStreamName: ${example.name}
    variables:
      assumeRole:
        fn::invoke:
          Function: aws:iam:getPolicyDocument
          Arguments:
            statements:
              - effect: Allow
                principals:
                  - type: Service
                    identifiers:
                      - firehose.amazonaws.com
                actions:
                  - sts:AssumeRole
    

    Basic Usage - Logging to S3

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      example:
        type: aws:s3:BucketV2
        properties:
          bucketName: tf-ivschat-logging
          forceDestroy: true
      exampleLoggingConfiguration:
        type: aws:ivschat:LoggingConfiguration
        name: example
        properties:
          destinationConfiguration:
            s3:
              bucketName: ${example.id}
    

    Create LoggingConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoggingConfiguration(name: string, args?: LoggingConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def LoggingConfiguration(resource_name: str,
                             args: Optional[LoggingConfigurationArgs] = None,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoggingConfiguration(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             destination_configuration: Optional[LoggingConfigurationDestinationConfigurationArgs] = None,
                             name: Optional[str] = None,
                             tags: Optional[Mapping[str, str]] = None)
    func NewLoggingConfiguration(ctx *Context, name string, args *LoggingConfigurationArgs, opts ...ResourceOption) (*LoggingConfiguration, error)
    public LoggingConfiguration(string name, LoggingConfigurationArgs? args = null, CustomResourceOptions? opts = null)
    public LoggingConfiguration(String name, LoggingConfigurationArgs args)
    public LoggingConfiguration(String name, LoggingConfigurationArgs args, CustomResourceOptions options)
    
    type: aws:ivschat:LoggingConfiguration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoggingConfigurationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var loggingConfigurationResource = new Aws.IvsChat.LoggingConfiguration("loggingConfigurationResource", new()
    {
        DestinationConfiguration = new Aws.IvsChat.Inputs.LoggingConfigurationDestinationConfigurationArgs
        {
            CloudwatchLogs = new Aws.IvsChat.Inputs.LoggingConfigurationDestinationConfigurationCloudwatchLogsArgs
            {
                LogGroupName = "string",
            },
            Firehose = new Aws.IvsChat.Inputs.LoggingConfigurationDestinationConfigurationFirehoseArgs
            {
                DeliveryStreamName = "string",
            },
            S3 = new Aws.IvsChat.Inputs.LoggingConfigurationDestinationConfigurationS3Args
            {
                BucketName = "string",
            },
        },
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := ivschat.NewLoggingConfiguration(ctx, "loggingConfigurationResource", &ivschat.LoggingConfigurationArgs{
    	DestinationConfiguration: &ivschat.LoggingConfigurationDestinationConfigurationArgs{
    		CloudwatchLogs: &ivschat.LoggingConfigurationDestinationConfigurationCloudwatchLogsArgs{
    			LogGroupName: pulumi.String("string"),
    		},
    		Firehose: &ivschat.LoggingConfigurationDestinationConfigurationFirehoseArgs{
    			DeliveryStreamName: pulumi.String("string"),
    		},
    		S3: &ivschat.LoggingConfigurationDestinationConfigurationS3Args{
    			BucketName: pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var loggingConfigurationResource = new LoggingConfiguration("loggingConfigurationResource", LoggingConfigurationArgs.builder()
        .destinationConfiguration(LoggingConfigurationDestinationConfigurationArgs.builder()
            .cloudwatchLogs(LoggingConfigurationDestinationConfigurationCloudwatchLogsArgs.builder()
                .logGroupName("string")
                .build())
            .firehose(LoggingConfigurationDestinationConfigurationFirehoseArgs.builder()
                .deliveryStreamName("string")
                .build())
            .s3(LoggingConfigurationDestinationConfigurationS3Args.builder()
                .bucketName("string")
                .build())
            .build())
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    logging_configuration_resource = aws.ivschat.LoggingConfiguration("loggingConfigurationResource",
        destination_configuration={
            "cloudwatch_logs": {
                "log_group_name": "string",
            },
            "firehose": {
                "delivery_stream_name": "string",
            },
            "s3": {
                "bucket_name": "string",
            },
        },
        name="string",
        tags={
            "string": "string",
        })
    
    const loggingConfigurationResource = new aws.ivschat.LoggingConfiguration("loggingConfigurationResource", {
        destinationConfiguration: {
            cloudwatchLogs: {
                logGroupName: "string",
            },
            firehose: {
                deliveryStreamName: "string",
            },
            s3: {
                bucketName: "string",
            },
        },
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:ivschat:LoggingConfiguration
    properties:
        destinationConfiguration:
            cloudwatchLogs:
                logGroupName: string
            firehose:
                deliveryStreamName: string
            s3:
                bucketName: string
        name: string
        tags:
            string: string
    

    LoggingConfiguration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LoggingConfiguration resource accepts the following input properties:

    DestinationConfiguration LoggingConfigurationDestinationConfiguration
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    Name string
    Logging Configuration name.
    Tags Dictionary<string, string>
    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.
    DestinationConfiguration LoggingConfigurationDestinationConfigurationArgs
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    Name string
    Logging Configuration name.
    Tags map[string]string
    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.
    destinationConfiguration LoggingConfigurationDestinationConfiguration
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    name String
    Logging Configuration name.
    tags Map<String,String>
    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.
    destinationConfiguration LoggingConfigurationDestinationConfiguration
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    name string
    Logging Configuration name.
    tags {[key: string]: string}
    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.
    destination_configuration LoggingConfigurationDestinationConfigurationArgs
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    name str
    Logging Configuration name.
    tags Mapping[str, str]
    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.
    destinationConfiguration Property Map
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    name String
    Logging Configuration name.
    tags Map<String>
    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoggingConfiguration resource produces the following output properties:

    Arn string
    ARN of the Logging Configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the Logging Configuration.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the Logging Configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the Logging Configuration.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the Logging Configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the Logging Configuration.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the Logging Configuration.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    State of the Logging Configuration.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the Logging Configuration.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    State of the Logging Configuration.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the Logging Configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the Logging Configuration.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing LoggingConfiguration Resource

    Get an existing LoggingConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LoggingConfigurationState, opts?: CustomResourceOptions): LoggingConfiguration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            destination_configuration: Optional[LoggingConfigurationDestinationConfigurationArgs] = None,
            name: Optional[str] = None,
            state: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> LoggingConfiguration
    func GetLoggingConfiguration(ctx *Context, name string, id IDInput, state *LoggingConfigurationState, opts ...ResourceOption) (*LoggingConfiguration, error)
    public static LoggingConfiguration Get(string name, Input<string> id, LoggingConfigurationState? state, CustomResourceOptions? opts = null)
    public static LoggingConfiguration get(String name, Output<String> id, LoggingConfigurationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the Logging Configuration.
    DestinationConfiguration LoggingConfigurationDestinationConfiguration
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    Name string
    Logging Configuration name.
    State string
    State of the Logging Configuration.
    Tags Dictionary<string, string>
    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.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the Logging Configuration.
    DestinationConfiguration LoggingConfigurationDestinationConfigurationArgs
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    Name string
    Logging Configuration name.
    State string
    State of the Logging Configuration.
    Tags map[string]string
    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.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the Logging Configuration.
    destinationConfiguration LoggingConfigurationDestinationConfiguration
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    name String
    Logging Configuration name.
    state String
    State of the Logging Configuration.
    tags Map<String,String>
    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.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the Logging Configuration.
    destinationConfiguration LoggingConfigurationDestinationConfiguration
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    name string
    Logging Configuration name.
    state string
    State of the Logging Configuration.
    tags {[key: string]: string}
    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.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the Logging Configuration.
    destination_configuration LoggingConfigurationDestinationConfigurationArgs
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    name str
    Logging Configuration name.
    state str
    State of the Logging Configuration.
    tags Mapping[str, str]
    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.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the Logging Configuration.
    destinationConfiguration Property Map
    Object containing destination configuration for where chat activity will be logged. This object must contain exactly one of the following children arguments:
    name String
    Logging Configuration name.
    state String
    State of the Logging Configuration.
    tags Map<String>
    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.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    LoggingConfigurationDestinationConfiguration, LoggingConfigurationDestinationConfigurationArgs

    CloudwatchLogs LoggingConfigurationDestinationConfigurationCloudwatchLogs
    An Amazon CloudWatch Logs destination configuration where chat activity will be logged.
    Firehose LoggingConfigurationDestinationConfigurationFirehose
    An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged.
    S3 LoggingConfigurationDestinationConfigurationS3
    An Amazon S3 destination configuration where chat activity will be logged.
    CloudwatchLogs LoggingConfigurationDestinationConfigurationCloudwatchLogs
    An Amazon CloudWatch Logs destination configuration where chat activity will be logged.
    Firehose LoggingConfigurationDestinationConfigurationFirehose
    An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged.
    S3 LoggingConfigurationDestinationConfigurationS3
    An Amazon S3 destination configuration where chat activity will be logged.
    cloudwatchLogs LoggingConfigurationDestinationConfigurationCloudwatchLogs
    An Amazon CloudWatch Logs destination configuration where chat activity will be logged.
    firehose LoggingConfigurationDestinationConfigurationFirehose
    An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged.
    s3 LoggingConfigurationDestinationConfigurationS3
    An Amazon S3 destination configuration where chat activity will be logged.
    cloudwatchLogs LoggingConfigurationDestinationConfigurationCloudwatchLogs
    An Amazon CloudWatch Logs destination configuration where chat activity will be logged.
    firehose LoggingConfigurationDestinationConfigurationFirehose
    An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged.
    s3 LoggingConfigurationDestinationConfigurationS3
    An Amazon S3 destination configuration where chat activity will be logged.
    cloudwatch_logs LoggingConfigurationDestinationConfigurationCloudwatchLogs
    An Amazon CloudWatch Logs destination configuration where chat activity will be logged.
    firehose LoggingConfigurationDestinationConfigurationFirehose
    An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged.
    s3 LoggingConfigurationDestinationConfigurationS3
    An Amazon S3 destination configuration where chat activity will be logged.
    cloudwatchLogs Property Map
    An Amazon CloudWatch Logs destination configuration where chat activity will be logged.
    firehose Property Map
    An Amazon Kinesis Data Firehose destination configuration where chat activity will be logged.
    s3 Property Map
    An Amazon S3 destination configuration where chat activity will be logged.

    LoggingConfigurationDestinationConfigurationCloudwatchLogs, LoggingConfigurationDestinationConfigurationCloudwatchLogsArgs

    LogGroupName string
    Name of the Amazon Cloudwatch Logs destination where chat activity will be logged.
    LogGroupName string
    Name of the Amazon Cloudwatch Logs destination where chat activity will be logged.
    logGroupName String
    Name of the Amazon Cloudwatch Logs destination where chat activity will be logged.
    logGroupName string
    Name of the Amazon Cloudwatch Logs destination where chat activity will be logged.
    log_group_name str
    Name of the Amazon Cloudwatch Logs destination where chat activity will be logged.
    logGroupName String
    Name of the Amazon Cloudwatch Logs destination where chat activity will be logged.

    LoggingConfigurationDestinationConfigurationFirehose, LoggingConfigurationDestinationConfigurationFirehoseArgs

    DeliveryStreamName string
    Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.
    DeliveryStreamName string
    Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.
    deliveryStreamName String
    Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.
    deliveryStreamName string
    Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.
    delivery_stream_name str
    Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.
    deliveryStreamName String
    Name of the Amazon Kinesis Firehose delivery stream where chat activity will be logged.

    LoggingConfigurationDestinationConfigurationS3, LoggingConfigurationDestinationConfigurationS3Args

    BucketName string

    Name of the Amazon S3 bucket where chat activity will be logged.

    The following arguments are optional:

    BucketName string

    Name of the Amazon S3 bucket where chat activity will be logged.

    The following arguments are optional:

    bucketName String

    Name of the Amazon S3 bucket where chat activity will be logged.

    The following arguments are optional:

    bucketName string

    Name of the Amazon S3 bucket where chat activity will be logged.

    The following arguments are optional:

    bucket_name str

    Name of the Amazon S3 bucket where chat activity will be logged.

    The following arguments are optional:

    bucketName String

    Name of the Amazon S3 bucket where chat activity will be logged.

    The following arguments are optional:

    Import

    Using pulumi import, import IVS (Interactive Video) Chat Logging Configuration using the ARN. For example:

    $ pulumi import aws:ivschat/loggingConfiguration:LoggingConfiguration example arn:aws:ivschat:us-west-2:326937407773:logging-configuration/MMUQc8wcqZmC
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi