Class: AWSCDK::CloudFront::CfnStreamingDistribution::TrustedSignersProperty

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

Overview

A list of AWS accounts whose public keys CloudFront can use to verify the signatures of signed URLs and signed cookies.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled:, aws_account_numbers: nil) ⇒ TrustedSignersProperty

Returns a new instance of TrustedSignersProperty.

Parameters:

  • enabled (Boolean, AWSCDK::IResolvable)

    This field is true if any of the AWS accounts in the list are configured as trusted signers.

  • aws_account_numbers (Array<String>, nil) (defaults to: nil)

    An AWS account number that contains active CloudFront key pairs that CloudFront can use to verify the signatures of signed URLs and signed cookies.



738
739
740
741
742
743
# File 'cloud_front/cfn_streaming_distribution.rb', line 738

def initialize(enabled:, aws_account_numbers: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled")
  @aws_account_numbers = 
  Jsii::Type.check_type(@aws_account_numbers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "awsAccountNumbers") unless @aws_account_numbers.nil?
end

Instance Attribute Details

#aws_account_numbersArray<String>? (readonly)

An AWS account number that contains active CloudFront key pairs that CloudFront can use to verify the signatures of signed URLs and signed cookies.

If the AWS account that owns the key pairs is the same account that owns the CloudFront distribution, the value of this field is self .



758
759
760
# File 'cloud_front/cfn_streaming_distribution.rb', line 758

def 
  @aws_account_numbers
end

#enabledBoolean, AWSCDK::IResolvable (readonly)

This field is true if any of the AWS accounts in the list are configured as trusted signers.

If not, this field is false .



751
752
753
# File 'cloud_front/cfn_streaming_distribution.rb', line 751

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



760
761
762
763
764
765
# File 'cloud_front/cfn_streaming_distribution.rb', line 760

def self.jsii_properties
  {
    :enabled => "enabled",
    :aws_account_numbers => "awsAccountNumbers",
  }
end

Instance Method Details

#to_jsiiObject



767
768
769
770
771
772
773
774
# File 'cloud_front/cfn_streaming_distribution.rb', line 767

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "awsAccountNumbers" => @aws_account_numbers,
  })
  result.compact
end