Class: AWSCDK::Backup::CfnFramework::FrameworkControlProperty

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

Overview

Contains detailed information about all of the controls of a framework.

Each framework must contain at least one control.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(control_name:, control_input_parameters: nil, control_scope: nil) ⇒ FrameworkControlProperty

Returns a new instance of FrameworkControlProperty.

Parameters:



698
699
700
701
702
703
704
705
# File 'backup/cfn_framework.rb', line 698

def initialize(control_name:, control_input_parameters: nil, control_scope: nil)
  @control_name = control_name
  Jsii::Type.check_type(@control_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "controlName")
  @control_input_parameters = control_input_parameters
  Jsii::Type.check_type(@control_input_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmFja3VwLkNmbkZyYW1ld29yay5Db250cm9sSW5wdXRQYXJhbWV0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "controlInputParameters") unless @control_input_parameters.nil?
  @control_scope = control_scope
  Jsii::Type.check_type(@control_scope, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "controlScope") unless @control_scope.nil?
end

Instance Attribute Details

#control_input_parametersAWSCDK::IResolvable, ... (readonly)

The name/value pairs.



718
719
720
# File 'backup/cfn_framework.rb', line 718

def control_input_parameters
  @control_input_parameters
end

#control_nameString (readonly)

The name of a control.

This name is between 1 and 256 characters.



713
714
715
# File 'backup/cfn_framework.rb', line 713

def control_name
  @control_name
end

#control_scopeObject? (readonly)

The scope of a control.

The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.

For more information, see ControlScope .



727
728
729
# File 'backup/cfn_framework.rb', line 727

def control_scope
  @control_scope
end

Class Method Details

.jsii_propertiesObject



729
730
731
732
733
734
735
# File 'backup/cfn_framework.rb', line 729

def self.jsii_properties
  {
    :control_name => "controlName",
    :control_input_parameters => "controlInputParameters",
    :control_scope => "controlScope",
  }
end

Instance Method Details

#to_jsiiObject



737
738
739
740
741
742
743
744
745
# File 'backup/cfn_framework.rb', line 737

def to_jsii
  result = {}
  result.merge!({
    "controlName" => @control_name,
    "controlInputParameters" => @control_input_parameters,
    "controlScope" => @control_scope,
  })
  result.compact
end