# NotificationObjectTypeProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `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](https://docs.aws.amazon.com/aws-backup/latest/devguide/API_PutBackupVaultNotifications.html#API_PutBackupVaultNotifications_RequestSyntax) in the *AWS Backup API Guide* .

- `snsTopicArn`: 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` .
