Skip to content
v2.278.0

CloudWatchLogsDestinationProperty Struct ​

Contains the destination configuration to use when publishing message sending events.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_smsvoice as smsvoice } from 'aws-cdk-lib';
const cloudWatchLogsDestinationProperty: smsvoice.CfnConfigurationSet.CloudWatchLogsDestinationProperty = {
  iamRoleArn: 'iamRoleArn',
  logGroupArn: 'logGroupArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_smsvoice as smsvoice

cloud_watch_logs_destination_property = smsvoice.CfnConfigurationSet.CloudWatchLogsDestinationProperty(
    iam_role_arn="iamRoleArn",
    log_group_arn="logGroupArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.smsvoice.*;

CloudWatchLogsDestinationProperty cloudWatchLogsDestinationProperty = CloudWatchLogsDestinationProperty.builder()
        .iamRoleArn("iamRoleArn")
        .logGroupArn("logGroupArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SMSVOICE;

var cloudWatchLogsDestinationProperty = new CloudWatchLogsDestinationProperty {
    IamRoleArn = "iamRoleArn",
    LogGroupArn = "logGroupArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cloudWatchLogsDestinationProperty := &CloudWatchLogsDestinationProperty{
	IamRoleArn: jsii.String("iamRoleArn"),
	LogGroupArn: jsii.String("logGroupArn"),
}

Properties ​

iamRoleArnstringiam_role_arnstriamRoleArnStringIamRoleArnstringIamRoleArn*string required #
The Amazon Resource Name (ARN) of an AWS Identity and Access Management role that is able to write event data to an Amazon CloudWatch destination.
logGroupArnstringlog_group_arnstrlogGroupArnStringLogGroupArnstringLogGroupArn*string required #
The name of the Amazon CloudWatch log group that you want to record events in.