Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::ApplicationRestoreConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

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.



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_typeString (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_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 .



884
885
886
# File 'kinesis_analyticsv2/cfn_application.rb', line 884

def snapshot_name
  @snapshot_name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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