Class: AWSCDK::RTBFabric::CfnLink::ModuleConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
rtb_fabric/cfn_link.rb

Overview

Describes the configuration of a module.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, depends_on: nil, module_parameters: nil, version: nil) ⇒ ModuleConfigurationProperty

Returns a new instance of ModuleConfigurationProperty.

Parameters:

  • name (String)

    The name of the module.

  • depends_on (Array<String>, nil) (defaults to: nil)

    The dependencies of the module.

  • module_parameters (AWSCDK::IResolvable, AWSCDK::RTBFabric::CfnLink::ModuleParametersProperty, nil) (defaults to: nil)

    Describes the parameters of a module.

  • version (String, nil) (defaults to: nil)

    The version of the module.



944
945
946
947
948
949
950
951
952
953
# File 'rtb_fabric/cfn_link.rb', line 944

def initialize(name:, depends_on: nil, module_parameters: nil, version: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @depends_on = depends_on
  Jsii::Type.check_type(@depends_on, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "dependsOn") unless @depends_on.nil?
  @module_parameters = module_parameters.is_a?(Hash) ? ::AWSCDK::RTBFabric::CfnLink::ModuleParametersProperty.new(**module_parameters.transform_keys(&:to_sym)) : module_parameters
  Jsii::Type.check_type(@module_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ydGJmYWJyaWMuQ2ZuTGluay5Nb2R1bGVQYXJhbWV0ZXJzUHJvcGVydHkifV19fQ==")), "moduleParameters") unless @module_parameters.nil?
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#depends_onArray<String>? (readonly)

The dependencies of the module.



964
965
966
# File 'rtb_fabric/cfn_link.rb', line 964

def depends_on
  @depends_on
end

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

Describes the parameters of a module.



969
970
971
# File 'rtb_fabric/cfn_link.rb', line 969

def module_parameters
  @module_parameters
end

#nameString (readonly)

The name of the module.



959
960
961
# File 'rtb_fabric/cfn_link.rb', line 959

def name
  @name
end

#versionString? (readonly)

The version of the module.



974
975
976
# File 'rtb_fabric/cfn_link.rb', line 974

def version
  @version
end

Class Method Details

.jsii_propertiesObject



976
977
978
979
980
981
982
983
# File 'rtb_fabric/cfn_link.rb', line 976

def self.jsii_properties
  {
    :name => "name",
    :depends_on => "dependsOn",
    :module_parameters => "moduleParameters",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



985
986
987
988
989
990
991
992
993
994
# File 'rtb_fabric/cfn_link.rb', line 985

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "dependsOn" => @depends_on,
    "moduleParameters" => @module_parameters,
    "version" => @version,
  })
  result.compact
end