AuditNotificationTargetProperty Struct
Information about the targets to which audit notifications are sent.
| 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 auditNotificationTargetProperty: iot.CfnAccountAuditConfiguration.AuditNotificationTargetProperty = {
enabled: false,
roleArn: 'roleArn',
targetArn: 'targetArn',
};
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
audit_notification_target_property = iot.CfnAccountAuditConfiguration.AuditNotificationTargetProperty(
enabled=False,
role_arn="roleArn",
target_arn="targetArn"
)
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.*;
AuditNotificationTargetProperty auditNotificationTargetProperty = AuditNotificationTargetProperty.builder()
.enabled(false)
.roleArn("roleArn")
.targetArn("targetArn")
.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 auditNotificationTargetProperty = new AuditNotificationTargetProperty {
Enabled = false,
RoleArn = "roleArn",
TargetArn = "targetArn"
};
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"
auditNotificationTargetProperty := &AuditNotificationTargetProperty{
Enabled: jsii.Boolean(false),
RoleArn: jsii.String("roleArn"),
TargetArn: jsii.String("targetArn"),
}
Properties
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #True if notifications to the target are enabled.
roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string #The ARN of the role that grants permission to send notifications to the target.
targetArnoptionalstringtarget_arnoptionalstrtargetArnoptionalStringTargetArnoptionalstringTargetArnoptional*string #The ARN of the target (SNS topic) to which audit notifications are sent.