MetricsExportConfigProperty Struct
Specifies the MQTT topic and role ARN required for metric export.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const metricsExportConfigProperty: iot.CfnSecurityProfile.MetricsExportConfigProperty = {
mqttTopic: 'mqttTopic',
roleArn: 'roleArn',
};
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_iot as iot
metrics_export_config_property = iot.CfnSecurityProfile.MetricsExportConfigProperty(
mqtt_topic="mqttTopic",
role_arn="roleArn"
)
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.iot.*;
MetricsExportConfigProperty metricsExportConfigProperty = MetricsExportConfigProperty.builder()
.mqttTopic("mqttTopic")
.roleArn("roleArn")
.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.IoT;
var metricsExportConfigProperty = new MetricsExportConfigProperty {
MqttTopic = "mqttTopic",
RoleArn = "roleArn"
};
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"
metricsExportConfigProperty := &MetricsExportConfigProperty{
MqttTopic: jsii.String("mqttTopic"),
RoleArn: jsii.String("roleArn"),
}
Properties
The MQTT topic that Device Defender Detect should publish messages to for metrics export.
This role ARN has permission to publish MQTT messages, after which Device Defender Detect can assume the role and publish messages on your behalf.