Class: AWSCDK::Backup::CfnBackupVault::NotificationObjectTypeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
backup/cfn_backup_vault.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(backup_vault_events:, sns_topic_arn:) ⇒ NotificationObjectTypeProperty

Returns a new instance of NotificationObjectTypeProperty.

Parameters:

  • backup_vault_events (Array<String>)

    An array of events that indicate the status of jobs to back up resources to the backup vault.

  • sns_topic_arn (String)

    An ARN that uniquely identifies an Amazon Simple Notification Service (Amazon SNS) topic;



701
702
703
704
705
706
# File 'backup/cfn_backup_vault.rb', line 701

def initialize(backup_vault_events:, sns_topic_arn:)
  @backup_vault_events = backup_vault_events
  Jsii::Type.check_type(@backup_vault_events, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "backupVaultEvents")
  @sns_topic_arn = sns_topic_arn
  Jsii::Type.check_type(@sns_topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "snsTopicArn")
end

Instance Attribute Details

#backup_vault_eventsArray<String> (readonly)

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 .



714
715
716
# File 'backup/cfn_backup_vault.rb', line 714

def backup_vault_events
  @backup_vault_events
end

#sns_topic_arnString (readonly)

An ARN that uniquely identifies an Amazon Simple Notification Service (Amazon SNS) topic;

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



721
722
723
# File 'backup/cfn_backup_vault.rb', line 721

def sns_topic_arn
  @sns_topic_arn
end

Class Method Details

.jsii_propertiesObject



723
724
725
726
727
728
# File 'backup/cfn_backup_vault.rb', line 723

def self.jsii_properties
  {
    :backup_vault_events => "backupVaultEvents",
    :sns_topic_arn => "snsTopicArn",
  }
end

Instance Method Details

#to_jsiiObject



730
731
732
733
734
735
736
737
# File 'backup/cfn_backup_vault.rb', line 730

def to_jsii
  result = {}
  result.merge!({
    "backupVaultEvents" => @backup_vault_events,
    "snsTopicArn" => @sns_topic_arn,
  })
  result.compact
end