Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::ApplicationRestoreConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalyticsv2::CfnApplication::ApplicationRestoreConfigurationProperty
- Defined in:
- kinesis_analyticsv2/cfn_application.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.
866 867 868 869 870 871 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 866 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.
877 878 879 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 877 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 .
884 885 886 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 884 def snapshot_name @snapshot_name end |
Class Method Details
.jsii_properties ⇒ Object
886 887 888 889 890 891 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 886 def self.jsii_properties { :application_restore_type => "applicationRestoreType", :snapshot_name => "snapshotName", } end |
Instance Method Details
#to_jsii ⇒ Object
893 894 895 896 897 898 899 900 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 893 def to_jsii result = {} result.merge!({ "applicationRestoreType" => @application_restore_type, "snapshotName" => @snapshot_name, }) result.compact end |