Class: AWSCDK::MediaPackagev2::CfnOriginEndpointPolicy::CdnAuthConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_packagev2/cfn_origin_endpoint_policy.rb

Overview

The settings to enable CDN authorization headers in MediaPackage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cdn_identifier_secret_arns:, secrets_role_arn:) ⇒ CdnAuthConfigurationProperty

Returns a new instance of CdnAuthConfigurationProperty.

Parameters:

  • cdn_identifier_secret_arns (Array<String>)

    The ARN for the secret in Secrets Manager that your CDN uses for authorization to access the endpoint.

  • secrets_role_arn (String)

    The ARN for the IAM role that gives MediaPackage read access to Secrets Manager and AWS for CDN authorization.



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_arnsArray<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_arnString (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_propertiesObject



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_jsiiObject



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