Class: AWSCDK::NeptuneGraph::CfnGraphSnapshotProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::NeptuneGraph::CfnGraphSnapshotProps
- Defined in:
- neptune_graph/cfn_graph_snapshot_props.rb
Overview
Properties for defining a CfnGraphSnapshot.
Instance Attribute Summary collapse
-
#graph_identifier ⇒ String
readonly
The unique identifier of the Neptune Analytics graph to create the snapshot from.
-
#snapshot_name ⇒ String
readonly
The snapshot name.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(graph_identifier:, snapshot_name:, tags: nil) ⇒ CfnGraphSnapshotProps
constructor
A new instance of CfnGraphSnapshotProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(graph_identifier:, snapshot_name:, tags: nil) ⇒ CfnGraphSnapshotProps
Returns a new instance of CfnGraphSnapshotProps.
12 13 14 15 16 17 18 19 |
# File 'neptune_graph/cfn_graph_snapshot_props.rb', line 12 def initialize(graph_identifier:, snapshot_name:, tags: nil) @graph_identifier = graph_identifier Jsii::Type.check_type(@graph_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "graphIdentifier") @snapshot_name = snapshot_name Jsii::Type.check_type(@snapshot_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "snapshotName") @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
#graph_identifier ⇒ String (readonly)
The unique identifier of the Neptune Analytics graph to create the snapshot from.
25 26 27 |
# File 'neptune_graph/cfn_graph_snapshot_props.rb', line 25 def graph_identifier @graph_identifier end |
#snapshot_name ⇒ String (readonly)
The snapshot name.
30 31 32 |
# File 'neptune_graph/cfn_graph_snapshot_props.rb', line 30 def snapshot_name @snapshot_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
35 36 37 |
# File 'neptune_graph/cfn_graph_snapshot_props.rb', line 35 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'neptune_graph/cfn_graph_snapshot_props.rb', line 37 def self.jsii_properties { :graph_identifier => "graphIdentifier", :snapshot_name => "snapshotName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'neptune_graph/cfn_graph_snapshot_props.rb', line 45 def to_jsii result = {} result.merge!({ "graphIdentifier" => @graph_identifier, "snapshotName" => @snapshot_name, "tags" => @tags, }) result.compact end |