Skip to content
v2.278.0

NotificationObjectTypeProperty Struct ​

Specifies an object containing SNS event notification properties for the target backup vault.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
const notificationObjectTypeProperty: backup.CfnBackupVault.NotificationObjectTypeProperty = {
  backupVaultEvents: ['backupVaultEvents'],
  snsTopicArn: 'snsTopicArn',
};
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_backup as backup

notification_object_type_property = backup.CfnBackupVault.NotificationObjectTypeProperty(
    backup_vault_events=["backupVaultEvents"],
    sns_topic_arn="snsTopicArn"
)
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.backup.*;

NotificationObjectTypeProperty notificationObjectTypeProperty = NotificationObjectTypeProperty.builder()
        .backupVaultEvents(List.of("backupVaultEvents"))
        .snsTopicArn("snsTopicArn")
        .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.Backup;

var notificationObjectTypeProperty = new NotificationObjectTypeProperty {
    BackupVaultEvents = new [] { "backupVaultEvents" },
    SnsTopicArn = "snsTopicArn"
};
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"

notificationObjectTypeProperty := &NotificationObjectTypeProperty{
	BackupVaultEvents: []*string{
		jsii.String("backupVaultEvents"),
	},
	SnsTopicArn: jsii.String("snsTopicArn"),
}

Properties ​

backupVaultEventsstring[]backup_vault_eventstyping.List[str]backupVaultEventsList<String>BackupVaultEventsstring[]BackupVaultEvents*[]*string required #
An array of events that indicate the status of jobs to back up resources to the backup vault.

For valid events, see BackupVaultEvents in the AWS Backup API Guide .

snsTopicArnstringsns_topic_arnstrsnsTopicArnStringSnsTopicArnstringSnsTopicArn*string required #
An ARN that uniquely identifies an Amazon Simple Notification Service (Amazon SNS) topic;

for example, arn:aws:sns:us-west-2:111122223333:MyTopic .