1. Packages
  2. AWS
  3. API Docs
  4. chime
  5. VoiceConnectorLogging
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.chime.VoiceConnectorLogging

Explore with Pulumi AI

Adds a logging configuration for the specified Amazon Chime Voice Connector. The logging configuration specifies whether SIP message logs are enabled for sending to Amazon CloudWatch Logs.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const _default = new aws.chime.VoiceConnector("default", {
    name: "vc-name-test",
    requireEncryption: true,
});
const defaultVoiceConnectorLogging = new aws.chime.VoiceConnectorLogging("default", {
    enableSipLogs: true,
    enableMediaMetricLogs: true,
    voiceConnectorId: _default.id,
});
Copy
import pulumi
import pulumi_aws as aws

default = aws.chime.VoiceConnector("default",
    name="vc-name-test",
    require_encryption=True)
default_voice_connector_logging = aws.chime.VoiceConnectorLogging("default",
    enable_sip_logs=True,
    enable_media_metric_logs=True,
    voice_connector_id=default.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/chime"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := chime.NewVoiceConnector(ctx, "default", &chime.VoiceConnectorArgs{
			Name:              pulumi.String("vc-name-test"),
			RequireEncryption: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = chime.NewVoiceConnectorLogging(ctx, "default", &chime.VoiceConnectorLoggingArgs{
			EnableSipLogs:         pulumi.Bool(true),
			EnableMediaMetricLogs: pulumi.Bool(true),
			VoiceConnectorId:      _default.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var @default = new Aws.Chime.VoiceConnector("default", new()
    {
        Name = "vc-name-test",
        RequireEncryption = true,
    });

    var defaultVoiceConnectorLogging = new Aws.Chime.VoiceConnectorLogging("default", new()
    {
        EnableSipLogs = true,
        EnableMediaMetricLogs = true,
        VoiceConnectorId = @default.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.chime.VoiceConnector;
import com.pulumi.aws.chime.VoiceConnectorArgs;
import com.pulumi.aws.chime.VoiceConnectorLogging;
import com.pulumi.aws.chime.VoiceConnectorLoggingArgs;
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 default_ = new VoiceConnector("default", VoiceConnectorArgs.builder()
            .name("vc-name-test")
            .requireEncryption(true)
            .build());

        var defaultVoiceConnectorLogging = new VoiceConnectorLogging("defaultVoiceConnectorLogging", VoiceConnectorLoggingArgs.builder()
            .enableSipLogs(true)
            .enableMediaMetricLogs(true)
            .voiceConnectorId(default_.id())
            .build());

    }
}
Copy
resources:
  default:
    type: aws:chime:VoiceConnector
    properties:
      name: vc-name-test
      requireEncryption: true
  defaultVoiceConnectorLogging:
    type: aws:chime:VoiceConnectorLogging
    name: default
    properties:
      enableSipLogs: true
      enableMediaMetricLogs: true
      voiceConnectorId: ${default.id}
Copy

Create VoiceConnectorLogging Resource

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

Constructor syntax

new VoiceConnectorLogging(name: string, args: VoiceConnectorLoggingArgs, opts?: CustomResourceOptions);
@overload
def VoiceConnectorLogging(resource_name: str,
                          args: VoiceConnectorLoggingArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def VoiceConnectorLogging(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          voice_connector_id: Optional[str] = None,
                          enable_media_metric_logs: Optional[bool] = None,
                          enable_sip_logs: Optional[bool] = None)
func NewVoiceConnectorLogging(ctx *Context, name string, args VoiceConnectorLoggingArgs, opts ...ResourceOption) (*VoiceConnectorLogging, error)
public VoiceConnectorLogging(string name, VoiceConnectorLoggingArgs args, CustomResourceOptions? opts = null)
public VoiceConnectorLogging(String name, VoiceConnectorLoggingArgs args)
public VoiceConnectorLogging(String name, VoiceConnectorLoggingArgs args, CustomResourceOptions options)
type: aws:chime:VoiceConnectorLogging
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. VoiceConnectorLoggingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. VoiceConnectorLoggingArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. VoiceConnectorLoggingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VoiceConnectorLoggingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VoiceConnectorLoggingArgs
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 voiceConnectorLoggingResource = new Aws.Chime.VoiceConnectorLogging("voiceConnectorLoggingResource", new()
{
    VoiceConnectorId = "string",
    EnableMediaMetricLogs = false,
    EnableSipLogs = false,
});
Copy
example, err := chime.NewVoiceConnectorLogging(ctx, "voiceConnectorLoggingResource", &chime.VoiceConnectorLoggingArgs{
	VoiceConnectorId:      pulumi.String("string"),
	EnableMediaMetricLogs: pulumi.Bool(false),
	EnableSipLogs:         pulumi.Bool(false),
})
Copy
var voiceConnectorLoggingResource = new VoiceConnectorLogging("voiceConnectorLoggingResource", VoiceConnectorLoggingArgs.builder()
    .voiceConnectorId("string")
    .enableMediaMetricLogs(false)
    .enableSipLogs(false)
    .build());
Copy
voice_connector_logging_resource = aws.chime.VoiceConnectorLogging("voiceConnectorLoggingResource",
    voice_connector_id="string",
    enable_media_metric_logs=False,
    enable_sip_logs=False)
Copy
const voiceConnectorLoggingResource = new aws.chime.VoiceConnectorLogging("voiceConnectorLoggingResource", {
    voiceConnectorId: "string",
    enableMediaMetricLogs: false,
    enableSipLogs: false,
});
Copy
type: aws:chime:VoiceConnectorLogging
properties:
    enableMediaMetricLogs: false
    enableSipLogs: false
    voiceConnectorId: string
Copy

VoiceConnectorLogging 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 VoiceConnectorLogging resource accepts the following input properties:

VoiceConnectorId
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Chime Voice Connector ID.
EnableMediaMetricLogs bool
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
EnableSipLogs bool
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
VoiceConnectorId
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Chime Voice Connector ID.
EnableMediaMetricLogs bool
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
EnableSipLogs bool
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
voiceConnectorId
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Chime Voice Connector ID.
enableMediaMetricLogs Boolean
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
enableSipLogs Boolean
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
voiceConnectorId
This property is required.
Changes to this property will trigger replacement.
string
The Amazon Chime Voice Connector ID.
enableMediaMetricLogs boolean
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
enableSipLogs boolean
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
voice_connector_id
This property is required.
Changes to this property will trigger replacement.
str
The Amazon Chime Voice Connector ID.
enable_media_metric_logs bool
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
enable_sip_logs bool
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
voiceConnectorId
This property is required.
Changes to this property will trigger replacement.
String
The Amazon Chime Voice Connector ID.
enableMediaMetricLogs Boolean
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
enableSipLogs Boolean
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing VoiceConnectorLogging Resource

Get an existing VoiceConnectorLogging 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?: VoiceConnectorLoggingState, opts?: CustomResourceOptions): VoiceConnectorLogging
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enable_media_metric_logs: Optional[bool] = None,
        enable_sip_logs: Optional[bool] = None,
        voice_connector_id: Optional[str] = None) -> VoiceConnectorLogging
func GetVoiceConnectorLogging(ctx *Context, name string, id IDInput, state *VoiceConnectorLoggingState, opts ...ResourceOption) (*VoiceConnectorLogging, error)
public static VoiceConnectorLogging Get(string name, Input<string> id, VoiceConnectorLoggingState? state, CustomResourceOptions? opts = null)
public static VoiceConnectorLogging get(String name, Output<String> id, VoiceConnectorLoggingState state, CustomResourceOptions options)
resources:  _:    type: aws:chime:VoiceConnectorLogging    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
EnableMediaMetricLogs bool
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
EnableSipLogs bool
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
VoiceConnectorId Changes to this property will trigger replacement. string
The Amazon Chime Voice Connector ID.
EnableMediaMetricLogs bool
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
EnableSipLogs bool
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
VoiceConnectorId Changes to this property will trigger replacement. string
The Amazon Chime Voice Connector ID.
enableMediaMetricLogs Boolean
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
enableSipLogs Boolean
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
voiceConnectorId Changes to this property will trigger replacement. String
The Amazon Chime Voice Connector ID.
enableMediaMetricLogs boolean
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
enableSipLogs boolean
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
voiceConnectorId Changes to this property will trigger replacement. string
The Amazon Chime Voice Connector ID.
enable_media_metric_logs bool
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
enable_sip_logs bool
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
voice_connector_id Changes to this property will trigger replacement. str
The Amazon Chime Voice Connector ID.
enableMediaMetricLogs Boolean
When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
enableSipLogs Boolean
When true, enables SIP message logs for sending to Amazon CloudWatch Logs.
voiceConnectorId Changes to this property will trigger replacement. String
The Amazon Chime Voice Connector ID.

Import

Using pulumi import, import Chime Voice Connector Logging using the voice_connector_id. For example:

$ pulumi import aws:chime/voiceConnectorLogging:VoiceConnectorLogging default abcdef1ghij2klmno3pqr4
Copy

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.