Class: AWSCDK::FSX::CfnSnapshotProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::CfnSnapshotProps
- Defined in:
- fsx/cfn_snapshot_props.rb
Overview
Properties for defining a CfnSnapshot.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the snapshot.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of
Tagvalues, with a maximum of 50 elements. -
#volume_id ⇒ String
readonly
The ID of the volume that the snapshot is of.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, volume_id:, tags: nil) ⇒ CfnSnapshotProps
constructor
A new instance of CfnSnapshotProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, volume_id:, tags: nil) ⇒ CfnSnapshotProps
Returns a new instance of CfnSnapshotProps.
12 13 14 15 16 17 18 19 |
# File 'fsx/cfn_snapshot_props.rb', line 12 def initialize(name:, volume_id:, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @volume_id = volume_id Jsii::Type.check_type(@volume_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "volumeId") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the snapshot.
25 26 27 |
# File 'fsx/cfn_snapshot_props.rb', line 25 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of Tag values, with a maximum of 50 elements.
35 36 37 |
# File 'fsx/cfn_snapshot_props.rb', line 35 def @tags end |
#volume_id ⇒ String (readonly)
The ID of the volume that the snapshot is of.
30 31 32 |
# File 'fsx/cfn_snapshot_props.rb', line 30 def volume_id @volume_id end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'fsx/cfn_snapshot_props.rb', line 37 def self.jsii_properties { :name => "name", :volume_id => "volumeId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'fsx/cfn_snapshot_props.rb', line 45 def to_jsii result = {} result.merge!({ "name" => @name, "volumeId" => @volume_id, "tags" => @tags, }) result.compact end |