Class: AWSCDK::Synthetics::CfnCanary::DependencyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
synthetics/cfn_canary.rb

Overview

A structure that contains information about a dependency for a canary.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reference:, type: nil) ⇒ DependencyProperty

Returns a new instance of DependencyProperty.

Parameters:

  • reference (String)

    The dependency reference.

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

    The type of dependency.



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

#referenceString (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

#typeString? (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_propertiesObject



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_jsiiObject



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