Class: AWSCDK::KinesisAnalytics::CfnApplicationV2::ApplicationRestoreConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalytics::CfnApplicationV2::ApplicationRestoreConfigurationProperty
- 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
-
#application_restore_type ⇒ String
readonly
Specifies how the application should be restored.
-
#snapshot_name ⇒ String?
readonly
The identifier of an existing snapshot of application state to use to restart an application.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_restore_type:, snapshot_name: nil) ⇒ ApplicationRestoreConfigurationProperty
constructor
A new instance of ApplicationRestoreConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_restore_type:, snapshot_name: nil) ⇒ ApplicationRestoreConfigurationProperty
Returns a new instance of ApplicationRestoreConfigurationProperty.
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_type ⇒ String (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_name ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |