Class: AWSCDK::MediaPackage::CfnOriginEndpoint::AuthorizationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_package/cfn_origin_endpoint.rb

Overview

Parameters for enabling CDN authorization on the endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cdn_identifier_secret:, secrets_role_arn:) ⇒ AuthorizationProperty

Returns a new instance of AuthorizationProperty.

Parameters:

  • cdn_identifier_secret (String)

    The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that your Content Delivery Network (CDN) uses for authorization to access your endpoint.

  • secrets_role_arn (String)

    The Amazon Resource Name (ARN) for the IAM role that allows AWS Elemental MediaPackage to communicate with AWS Secrets Manager .



706
707
708
709
710
711
# File 'media_package/cfn_origin_endpoint.rb', line 706

def initialize(cdn_identifier_secret:, secrets_role_arn:)
  @cdn_identifier_secret = cdn_identifier_secret
  Jsii::Type.check_type(@cdn_identifier_secret, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cdnIdentifierSecret")
  @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_secretString (readonly)

The Amazon Resource Name (ARN) for the secret in AWS Secrets Manager that your Content Delivery Network (CDN) uses for authorization to access your endpoint.



717
718
719
# File 'media_package/cfn_origin_endpoint.rb', line 717

def cdn_identifier_secret
  @cdn_identifier_secret
end

#secrets_role_arnString (readonly)

The Amazon Resource Name (ARN) for the IAM role that allows AWS Elemental MediaPackage to communicate with AWS Secrets Manager .



722
723
724
# File 'media_package/cfn_origin_endpoint.rb', line 722

def secrets_role_arn
  @secrets_role_arn
end

Class Method Details

.jsii_propertiesObject



724
725
726
727
728
729
# File 'media_package/cfn_origin_endpoint.rb', line 724

def self.jsii_properties
  {
    :cdn_identifier_secret => "cdnIdentifierSecret",
    :secrets_role_arn => "secretsRoleArn",
  }
end

Instance Method Details

#to_jsiiObject



731
732
733
734
735
736
737
738
# File 'media_package/cfn_origin_endpoint.rb', line 731

def to_jsii
  result = {}
  result.merge!({
    "cdnIdentifierSecret" => @cdn_identifier_secret,
    "secretsRoleArn" => @secrets_role_arn,
  })
  result.compact
end