# NotificationObjectTypeProperty

Struct · External

- Source: Generated at build time
- Type last changed: v2.165.0 · 31 Oct 2024

## 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.CfnLogicallyAirGappedBackupVault.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.CfnLogicallyAirGappedBackupVault.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#:

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

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

- `snsTopicArn`: string (required) — The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events;

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