Class: AWSCDK::Backup::CfnFramework::ControlInputParameterProperty

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

Overview

The parameters for a control.

A control can have zero, one, or more than one parameter. An example of a control with two parameters is: "backup plan frequency is at least daily and the retention period is at least 1 year ". The first parameter is daily . The second parameter is 1 year .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parameter_name:, parameter_value:) ⇒ ControlInputParameterProperty

Returns a new instance of ControlInputParameterProperty.

Parameters:

  • parameter_name (String)

    The name of a parameter, for example, BackupPlanFrequency .

  • parameter_value (String)

    The value of parameter, for example, hourly .



591
592
593
594
595
596
# File 'backup/cfn_framework.rb', line 591

def initialize(parameter_name:, parameter_value:)
  @parameter_name = parameter_name
  Jsii::Type.check_type(@parameter_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterName")
  @parameter_value = parameter_value
  Jsii::Type.check_type(@parameter_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameterValue")
end

Instance Attribute Details

#parameter_nameString (readonly)

The name of a parameter, for example, BackupPlanFrequency .



602
603
604
# File 'backup/cfn_framework.rb', line 602

def parameter_name
  @parameter_name
end

#parameter_valueString (readonly)

The value of parameter, for example, hourly .



607
608
609
# File 'backup/cfn_framework.rb', line 607

def parameter_value
  @parameter_value
end

Class Method Details

.jsii_propertiesObject



609
610
611
612
613
614
# File 'backup/cfn_framework.rb', line 609

def self.jsii_properties
  {
    :parameter_name => "parameterName",
    :parameter_value => "parameterValue",
  }
end

Instance Method Details

#to_jsiiObject



616
617
618
619
620
621
622
623
# File 'backup/cfn_framework.rb', line 616

def to_jsii
  result = {}
  result.merge!({
    "parameterName" => @parameter_name,
    "parameterValue" => @parameter_value,
  })
  result.compact
end