1. Packages
  2. AWS Classic
  3. API Docs
  4. chime
  5. VoiceConnectorLogging

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

aws.chime.VoiceConnectorLogging

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi

    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

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultVoiceConnector = new Aws.Chime.VoiceConnector("defaultVoiceConnector", new()
        {
            RequireEncryption = true,
        });
    
        var defaultVoiceConnectorLogging = new Aws.Chime.VoiceConnectorLogging("defaultVoiceConnectorLogging", new()
        {
            EnableSipLogs = true,
            EnableMediaMetricLogs = true,
            VoiceConnectorId = defaultVoiceConnector.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/chime"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		defaultVoiceConnector, err := chime.NewVoiceConnector(ctx, "defaultVoiceConnector", &chime.VoiceConnectorArgs{
    			RequireEncryption: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = chime.NewVoiceConnectorLogging(ctx, "defaultVoiceConnectorLogging", &chime.VoiceConnectorLoggingArgs{
    			EnableSipLogs:         pulumi.Bool(true),
    			EnableMediaMetricLogs: pulumi.Bool(true),
    			VoiceConnectorId:      defaultVoiceConnector.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 defaultVoiceConnector = new VoiceConnector("defaultVoiceConnector", VoiceConnectorArgs.builder()        
                .requireEncryption(true)
                .build());
    
            var defaultVoiceConnectorLogging = new VoiceConnectorLogging("defaultVoiceConnectorLogging", VoiceConnectorLoggingArgs.builder()        
                .enableSipLogs(true)
                .enableMediaMetricLogs(true)
                .voiceConnectorId(defaultVoiceConnector.id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    
    default_voice_connector = aws.chime.VoiceConnector("defaultVoiceConnector", require_encryption=True)
    default_voice_connector_logging = aws.chime.VoiceConnectorLogging("defaultVoiceConnectorLogging",
        enable_sip_logs=True,
        enable_media_metric_logs=True,
        voice_connector_id=default_voice_connector.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const defaultVoiceConnector = new aws.chime.VoiceConnector("defaultVoiceConnector", {requireEncryption: true});
    const defaultVoiceConnectorLogging = new aws.chime.VoiceConnectorLogging("defaultVoiceConnectorLogging", {
        enableSipLogs: true,
        enableMediaMetricLogs: true,
        voiceConnectorId: defaultVoiceConnector.id,
    });
    
    resources:
      defaultVoiceConnector:
        type: aws:chime:VoiceConnector
        properties:
          requireEncryption: true
      defaultVoiceConnectorLogging:
        type: aws:chime:VoiceConnectorLogging
        properties:
          enableSipLogs: true
          enableMediaMetricLogs: true
          voiceConnectorId: ${defaultVoiceConnector.id}
    

    Create VoiceConnectorLogging Resource

    new VoiceConnectorLogging(name: string, args: VoiceConnectorLoggingArgs, opts?: CustomResourceOptions);
    @overload
    def VoiceConnectorLogging(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              enable_media_metric_logs: Optional[bool] = None,
                              enable_sip_logs: Optional[bool] = None,
                              voice_connector_id: Optional[str] = None)
    @overload
    def VoiceConnectorLogging(resource_name: str,
                              args: VoiceConnectorLoggingArgs,
                              opts: Optional[ResourceOptions] = 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.
    
    
    name string
    The unique name of the resource.
    args VoiceConnectorLoggingArgs
    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 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 string
    The unique name of the resource.
    args VoiceConnectorLoggingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VoiceConnectorLoggingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VoiceConnectorLoggingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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

    The VoiceConnectorLogging resource accepts the following input properties:

    VoiceConnectorId 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 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 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 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 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 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)
    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:
    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 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 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 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 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 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 String

    The Amazon Chime Voice Connector ID.

    Import

    Chime Voice Connector Logging can be imported using the voice_connector_id, e.g.,

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

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v5.41.0 published on Monday, May 15, 2023 by Pulumi