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