Class: AWSCDK::CloudFront::CfnPublicKey::PublicKeyConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(caller_reference:, encoded_key:, name:, comment: nil) ⇒ PublicKeyConfigProperty

Returns a new instance of PublicKeyConfigProperty.

Parameters:

  • caller_reference (String)

    A string included in the request to help make sure that the request can't be replayed.

  • encoded_key (String)

    The public key that you can use with signed URLs and signed cookies , or with field-level encryption .

  • name (String)

    A name to help identify the public key.

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

    A comment to describe the public key.



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_referenceString (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

#commentString? (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_keyString (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

#nameString (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_propertiesObject



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_jsiiObject



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