Class: AWSCDK::MediaPackagev2::CfnOriginEndpointPolicy::CdnAuthConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackagev2::CfnOriginEndpointPolicy::CdnAuthConfigurationProperty
- Defined in:
- media_packagev2/cfn_origin_endpoint_policy.rb
Overview
The settings to enable CDN authorization headers in MediaPackage.
Instance Attribute Summary collapse
-
#cdn_identifier_secret_arns ⇒ Array<String>
readonly
The ARN for the secret in Secrets Manager that your CDN uses for authorization to access the endpoint.
-
#secrets_role_arn ⇒ String
readonly
The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and AWS for CDN authorization.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cdn_identifier_secret_arns:, secrets_role_arn:) ⇒ CdnAuthConfigurationProperty
constructor
A new instance of CdnAuthConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cdn_identifier_secret_arns:, secrets_role_arn:) ⇒ CdnAuthConfigurationProperty
Returns a new instance of CdnAuthConfigurationProperty.
546 547 548 549 550 551 |
# File 'media_packagev2/cfn_origin_endpoint_policy.rb', line 546 def initialize(cdn_identifier_secret_arns:, secrets_role_arn:) @cdn_identifier_secret_arns = cdn_identifier_secret_arns Jsii::Type.check_type(@cdn_identifier_secret_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "cdnIdentifierSecretArns") @secrets_role_arn = secrets_role_arn Jsii::Type.check_type(@secrets_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretsRoleArn") end |
Instance Attribute Details
#cdn_identifier_secret_arns ⇒ Array<String> (readonly)
The ARN for the secret in Secrets Manager that your CDN uses for authorization to access the endpoint.
557 558 559 |
# File 'media_packagev2/cfn_origin_endpoint_policy.rb', line 557 def cdn_identifier_secret_arns @cdn_identifier_secret_arns end |
#secrets_role_arn ⇒ String (readonly)
The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and AWS for CDN authorization.
562 563 564 |
# File 'media_packagev2/cfn_origin_endpoint_policy.rb', line 562 def secrets_role_arn @secrets_role_arn end |
Class Method Details
.jsii_properties ⇒ Object
564 565 566 567 568 569 |
# File 'media_packagev2/cfn_origin_endpoint_policy.rb', line 564 def self.jsii_properties { :cdn_identifier_secret_arns => "cdnIdentifierSecretArns", :secrets_role_arn => "secretsRoleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
571 572 573 574 575 576 577 578 |
# File 'media_packagev2/cfn_origin_endpoint_policy.rb', line 571 def to_jsii result = {} result.merge!({ "cdnIdentifierSecretArns" => @cdn_identifier_secret_arns, "secretsRoleArn" => @secrets_role_arn, }) result.compact end |