Class: AWSCDK::CloudFront::CfnKeyGroup::KeyGroupConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_key_group.rb

Overview

A key group configuration.

A key group contains a list of public keys that you can use with CloudFront signed URLs and signed cookies .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(items:, name:, comment: nil) ⇒ KeyGroupConfigProperty

Returns a new instance of KeyGroupConfigProperty.

Parameters:

  • items (Array<String>)

    A list of the identifiers of the public keys in the key group.

  • name (String)

    A name to identify the key group.

  • comment (String, nil) (defaults to: nil)

    A comment to describe the key group.



515
516
517
518
519
520
521
522
# File 'cloud_front/cfn_key_group.rb', line 515

def initialize(items:, name:, comment: nil)
  @items = items
  Jsii::Type.check_type(@items, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "items")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @comment = comment
  Jsii::Type.check_type(@comment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comment") unless @comment.nil?
end

Instance Attribute Details

#commentString? (readonly)

A comment to describe the key group.

The comment cannot be longer than 128 characters.



540
541
542
# File 'cloud_front/cfn_key_group.rb', line 540

def comment
  @comment
end

#itemsArray<String> (readonly)

A list of the identifiers of the public keys in the key group.



528
529
530
# File 'cloud_front/cfn_key_group.rb', line 528

def items
  @items
end

#nameString (readonly)

A name to identify the key group.



533
534
535
# File 'cloud_front/cfn_key_group.rb', line 533

def name
  @name
end

Class Method Details

.jsii_propertiesObject



542
543
544
545
546
547
548
# File 'cloud_front/cfn_key_group.rb', line 542

def self.jsii_properties
  {
    :items => "items",
    :name => "name",
    :comment => "comment",
  }
end

Instance Method Details

#to_jsiiObject



550
551
552
553
554
555
556
557
558
# File 'cloud_front/cfn_key_group.rb', line 550

def to_jsii
  result = {}
  result.merge!({
    "items" => @items,
    "name" => @name,
    "comment" => @comment,
  })
  result.compact
end