Resource: awsChimeVoiceConnectorLogging
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
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsChimeVoiceConnectorDefault =
new aws.chimeVoiceConnector.ChimeVoiceConnector(this, "default", {
name: "vc-name-test",
requireEncryption: true,
});
const awsChimeVoiceConnectorLoggingDefault =
new aws.chimeVoiceConnectorLogging.ChimeVoiceConnectorLogging(
this,
"default_1",
{
enableMediaMetricLogs: true,
enableSipLogs: true,
voiceConnectorId: awsChimeVoiceConnectorDefault.id,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsChimeVoiceConnectorLoggingDefault.overrideLogicalId("default");
Argument Reference
The following arguments are supported:
voiceConnectorId
- (Required) The Amazon Chime Voice Connector ID.enableSipLogs
- (Optional) When true, enables SIP message logs for sending to Amazon CloudWatch Logs.enableMediaMetricLogs
- (Optional) When true, enables logging of detailed media metrics for Voice Connectors to Amazon CloudWatch logs.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The Amazon Chime Voice Connector ID.
Import
Chime Voice Connector Logging can be imported using the voiceConnectorId
, e.g.,