Class: AWSCDK::Interfaces::AWSCloudfront::KeyGroupReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_cloudfront/key_group_reference.rb

Overview

A reference to a KeyGroup resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_group_id:) ⇒ KeyGroupReference

Returns a new instance of KeyGroupReference.

Parameters:

  • key_group_id (String)

    The Id of the KeyGroup resource.



8
9
10
11
# File 'interfaces/aws_cloudfront/key_group_reference.rb', line 8

def initialize(key_group_id:)
  @key_group_id = key_group_id
  Jsii::Type.check_type(@key_group_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyGroupId")
end

Instance Attribute Details

#key_group_idString (readonly)

The Id of the KeyGroup resource.

Returns:

  • (String)


16
17
18
# File 'interfaces/aws_cloudfront/key_group_reference.rb', line 16

def key_group_id
  @key_group_id
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'interfaces/aws_cloudfront/key_group_reference.rb', line 18

def self.jsii_properties
  {
    :key_group_id => "keyGroupId",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'interfaces/aws_cloudfront/key_group_reference.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "keyGroupId" => @key_group_id,
  })
  result.compact
end