Class: AWSCDK::CloudFront::CfnKeyGroup::KeyGroupConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnKeyGroup::KeyGroupConfigProperty
- 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
-
#comment ⇒ String?
readonly
A comment to describe the key group.
-
#items ⇒ Array<String>
readonly
A list of the identifiers of the public keys in the key group.
-
#name ⇒ String
readonly
A name to identify the key group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(items:, name:, comment: nil) ⇒ KeyGroupConfigProperty
constructor
A new instance of KeyGroupConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(items:, name:, comment: nil) ⇒ KeyGroupConfigProperty
Returns a new instance of KeyGroupConfigProperty.
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
#comment ⇒ String? (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 |
#items ⇒ Array<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 |
#name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |