Class: AWSCDK::CloudFront::CfnStreamingDistribution::TrustedSignersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnStreamingDistribution::TrustedSignersProperty
- 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
-
#aws_account_numbers ⇒ Array<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.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
This field is
trueif any of the AWS accounts in the list are configured as trusted signers.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, aws_account_numbers: nil) ⇒ TrustedSignersProperty
constructor
A new instance of TrustedSignersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, aws_account_numbers: nil) ⇒ TrustedSignersProperty
Returns a new instance of TrustedSignersProperty.
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 = 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_numbers ⇒ Array<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 @aws_account_numbers end |
#enabled ⇒ Boolean, 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_properties ⇒ Object
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_jsii ⇒ Object
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 |