Class: AWSCDK::CloudFront::CfnPublicKey::PublicKeyConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnPublicKey::PublicKeyConfigProperty
- Defined in:
- cloud_front/cfn_public_key.rb
Overview
Configuration information about a public key that you can use with signed URLs and signed cookies , or with field-level encryption .
CloudFront supports signed URLs and signed cookies with RSA 2048 or ECDSA 256 key signatures. Field-level encryption is only compatible with RSA 2048 key signatures.
Instance Attribute Summary collapse
-
#caller_reference ⇒ String
readonly
A string included in the request to help make sure that the request can't be replayed.
-
#comment ⇒ String?
readonly
A comment to describe the public key.
-
#encoded_key ⇒ String
readonly
The public key that you can use with signed URLs and signed cookies , or with field-level encryption .
-
#name ⇒ String
readonly
A name to help identify the public key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(caller_reference:, encoded_key:, name:, comment: nil) ⇒ PublicKeyConfigProperty
constructor
A new instance of PublicKeyConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(caller_reference:, encoded_key:, name:, comment: nil) ⇒ PublicKeyConfigProperty
Returns a new instance of PublicKeyConfigProperty.
516 517 518 519 520 521 522 523 524 525 |
# File 'cloud_front/cfn_public_key.rb', line 516 def initialize(caller_reference:, encoded_key:, name:, comment: nil) @caller_reference = caller_reference Jsii::Type.check_type(@caller_reference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "callerReference") @encoded_key = encoded_key Jsii::Type.check_type(@encoded_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encodedKey") @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
#caller_reference ⇒ String (readonly)
A string included in the request to help make sure that the request can't be replayed.
531 532 533 |
# File 'cloud_front/cfn_public_key.rb', line 531 def caller_reference @caller_reference end |
#comment ⇒ String? (readonly)
A comment to describe the public key.
The comment cannot be longer than 128 characters.
548 549 550 |
# File 'cloud_front/cfn_public_key.rb', line 548 def comment @comment end |
#encoded_key ⇒ String (readonly)
The public key that you can use with signed URLs and signed cookies , or with field-level encryption .
536 537 538 |
# File 'cloud_front/cfn_public_key.rb', line 536 def encoded_key @encoded_key end |
#name ⇒ String (readonly)
A name to help identify the public key.
541 542 543 |
# File 'cloud_front/cfn_public_key.rb', line 541 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
550 551 552 553 554 555 556 557 |
# File 'cloud_front/cfn_public_key.rb', line 550 def self.jsii_properties { :caller_reference => "callerReference", :encoded_key => "encodedKey", :name => "name", :comment => "comment", } end |
Instance Method Details
#to_jsii ⇒ Object
559 560 561 562 563 564 565 566 567 568 |
# File 'cloud_front/cfn_public_key.rb', line 559 def to_jsii result = {} result.merge!({ "callerReference" => @caller_reference, "encodedKey" => @encoded_key, "name" => @name, "comment" => @comment, }) result.compact end |