AlertTargetProperty Struct
A structure containing the alert target ARN and the role ARN.
| 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 alertTargetProperty: iot.CfnSecurityProfile.AlertTargetProperty = {
alertTargetArn: 'alertTargetArn',
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
alert_target_property = iot.CfnSecurityProfile.AlertTargetProperty(
alert_target_arn="alertTargetArn",
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.*;
AlertTargetProperty alertTargetProperty = AlertTargetProperty.builder()
.alertTargetArn("alertTargetArn")
.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 alertTargetProperty = new AlertTargetProperty {
AlertTargetArn = "alertTargetArn",
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"
alertTargetProperty := &AlertTargetProperty{
AlertTargetArn: jsii.String("alertTargetArn"),
RoleArn: jsii.String("roleArn"),
}
Properties
alertTargetArnstringalert_target_arnstralertTargetArnStringAlertTargetArnstringAlertTargetArn*string required #The Amazon Resource Name (ARN) of the notification target to which alerts are sent.
The ARN of the role that grants permission to send alerts to the notification target.