Class: AWSCDK::NeptuneGraph::CfnGraphSnapshotProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
neptune_graph/cfn_graph_snapshot_props.rb

Overview

Properties for defining a CfnGraphSnapshot.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(graph_identifier:, snapshot_name:, tags: nil) ⇒ CfnGraphSnapshotProps

Returns a new instance of CfnGraphSnapshotProps.

Parameters:

  • graph_identifier (String)

    The unique identifier of the Neptune Analytics graph to create the snapshot from.

  • snapshot_name (String)

    The snapshot name.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#graph_identifierString (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_nameString (readonly)

The snapshot name.



30
31
32
# File 'neptune_graph/cfn_graph_snapshot_props.rb', line 30

def snapshot_name
  @snapshot_name
end

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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