Class: AWSCDK::Interfaces::AWSEvidently::SegmentReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSEvidently::SegmentReference
- Defined in:
- interfaces/aws_evidently/segment_reference.rb
Overview
A reference to a Segment resource.
Instance Attribute Summary collapse
-
#segment_arn ⇒ String
readonly
The Arn of the Segment resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(segment_arn:) ⇒ SegmentReference
constructor
A new instance of SegmentReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(segment_arn:) ⇒ SegmentReference
Returns a new instance of SegmentReference.
8 9 10 11 |
# File 'interfaces/aws_evidently/segment_reference.rb', line 8 def initialize(segment_arn:) @segment_arn = segment_arn Jsii::Type.check_type(@segment_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "segmentArn") end |
Instance Attribute Details
#segment_arn ⇒ String (readonly)
The Arn of the Segment resource.
16 17 18 |
# File 'interfaces/aws_evidently/segment_reference.rb', line 16 def segment_arn @segment_arn end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/aws_evidently/segment_reference.rb', line 18 def self.jsii_properties { :segment_arn => "segmentArn", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/aws_evidently/segment_reference.rb', line 24 def to_jsii result = {} result.merge!({ "segmentArn" => @segment_arn, }) result.compact end |