Class: AWSCDK::Synthetics::CfnCanary::DependencyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Synthetics::CfnCanary::DependencyProperty
- Defined in:
- synthetics/cfn_canary.rb
Overview
A structure that contains information about a dependency for a canary.
Instance Attribute Summary collapse
-
#reference ⇒ String
readonly
The dependency reference.
-
#type ⇒ String?
readonly
The type of dependency.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(reference:, type: nil) ⇒ DependencyProperty
constructor
A new instance of DependencyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(reference:, type: nil) ⇒ DependencyProperty
Returns a new instance of DependencyProperty.
1044 1045 1046 1047 1048 1049 |
# File 'synthetics/cfn_canary.rb', line 1044 def initialize(reference:, type: nil) @reference = reference Jsii::Type.check_type(@reference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "reference") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#reference ⇒ String (readonly)
The dependency reference.
For Lambda layers, this is the ARN of the Lambda layer. For more information about Lambda ARN format, see Lambda .
1057 1058 1059 |
# File 'synthetics/cfn_canary.rb', line 1057 def reference @reference end |
#type ⇒ String? (readonly)
The type of dependency.
Valid value is LambdaLayer .
1064 1065 1066 |
# File 'synthetics/cfn_canary.rb', line 1064 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
1066 1067 1068 1069 1070 1071 |
# File 'synthetics/cfn_canary.rb', line 1066 def self.jsii_properties { :reference => "reference", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
1073 1074 1075 1076 1077 1078 1079 1080 |
# File 'synthetics/cfn_canary.rb', line 1073 def to_jsii result = {} result.merge!({ "reference" => @reference, "type" => @type, }) result.compact end |