Class: AWSCDK::KinesisAnalytics::CfnApplicationV2::ApplicationRestoreConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analytics/cfn_application_v2.rb

Overview

Specifies the method and snapshot to use when restarting an application using previously saved application state.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_restore_type:, snapshot_name: nil) ⇒ ApplicationRestoreConfigurationProperty

Returns a new instance of ApplicationRestoreConfigurationProperty.

Parameters:

  • application_restore_type (String)

    Specifies how the application should be restored.

  • snapshot_name (String, nil) (defaults to: nil)

    The identifier of an existing snapshot of application state to use to restart an application.



867
868
869
870
871
872
# File 'kinesis_analytics/cfn_application_v2.rb', line 867

def initialize(application_restore_type:, snapshot_name: nil)
  @application_restore_type = application_restore_type
  Jsii::Type.check_type(@application_restore_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "applicationRestoreType")
  @snapshot_name = snapshot_name
  Jsii::Type.check_type(@snapshot_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "snapshotName") unless @snapshot_name.nil?
end

Instance Attribute Details

#application_restore_typeString (readonly)

Specifies how the application should be restored.



878
879
880
# File 'kinesis_analytics/cfn_application_v2.rb', line 878

def application_restore_type
  @application_restore_type
end

#snapshot_nameString? (readonly)

The identifier of an existing snapshot of application state to use to restart an application.

The application uses this value if RESTORE_FROM_CUSTOM_SNAPSHOT is specified for the ApplicationRestoreType .



885
886
887
# File 'kinesis_analytics/cfn_application_v2.rb', line 885

def snapshot_name
  @snapshot_name
end

Class Method Details

.jsii_propertiesObject



887
888
889
890
891
892
# File 'kinesis_analytics/cfn_application_v2.rb', line 887

def self.jsii_properties
  {
    :application_restore_type => "applicationRestoreType",
    :snapshot_name => "snapshotName",
  }
end

Instance Method Details

#to_jsiiObject



894
895
896
897
898
899
900
901
# File 'kinesis_analytics/cfn_application_v2.rb', line 894

def to_jsii
  result = {}
  result.merge!({
    "applicationRestoreType" => @application_restore_type,
    "snapshotName" => @snapshot_name,
  })
  result.compact
end