Class: AWSCDK::MediaPackagev2::CfnOriginEndpointPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackagev2::CfnOriginEndpointPolicyProps
- Defined in:
- media_packagev2/cfn_origin_endpoint_policy_props.rb
Overview
Properties for defining a CfnOriginEndpointPolicy.
Instance Attribute Summary collapse
-
#cdn_auth_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The settings to enable CDN authorization headers in MediaPackage.
-
#channel_group_name ⇒ String
readonly
The name of the channel group associated with the origin endpoint policy.
-
#channel_name ⇒ String
readonly
The channel name associated with the origin endpoint policy.
-
#origin_endpoint_name ⇒ String
readonly
The name of the origin endpoint associated with the origin endpoint policy.
-
#policy ⇒ Object
readonly
The policy associated with the origin endpoint.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_group_name:, channel_name:, origin_endpoint_name:, policy:, cdn_auth_configuration: nil) ⇒ CfnOriginEndpointPolicyProps
constructor
A new instance of CfnOriginEndpointPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel_group_name:, channel_name:, origin_endpoint_name:, policy:, cdn_auth_configuration: nil) ⇒ CfnOriginEndpointPolicyProps
Returns a new instance of CfnOriginEndpointPolicyProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'media_packagev2/cfn_origin_endpoint_policy_props.rb', line 14 def initialize(channel_group_name:, channel_name:, origin_endpoint_name:, policy:, cdn_auth_configuration: nil) @channel_group_name = channel_group_name Jsii::Type.check_type(@channel_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelGroupName") @channel_name = channel_name Jsii::Type.check_type(@channel_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelName") @origin_endpoint_name = origin_endpoint_name Jsii::Type.check_type(@origin_endpoint_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "originEndpointName") @policy = policy Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policy") @cdn_auth_configuration = cdn_auth_configuration.is_a?(Hash) ? ::AWSCDK::MediaPackagev2::CfnOriginEndpointPolicy::CdnAuthConfigurationProperty.new(**cdn_auth_configuration.transform_keys(&:to_sym)) : cdn_auth_configuration Jsii::Type.check_type(@cdn_auth_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYXBhY2thZ2V2Mi5DZm5PcmlnaW5FbmRwb2ludFBvbGljeS5DZG5BdXRoQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "cdnAuthConfiguration") unless @cdn_auth_configuration.nil? end |
Instance Attribute Details
#cdn_auth_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The settings to enable CDN authorization headers in MediaPackage.
51 52 53 |
# File 'media_packagev2/cfn_origin_endpoint_policy_props.rb', line 51 def cdn_auth_configuration @cdn_auth_configuration end |
#channel_group_name ⇒ String (readonly)
The name of the channel group associated with the origin endpoint policy.
31 32 33 |
# File 'media_packagev2/cfn_origin_endpoint_policy_props.rb', line 31 def channel_group_name @channel_group_name end |
#channel_name ⇒ String (readonly)
The channel name associated with the origin endpoint policy.
36 37 38 |
# File 'media_packagev2/cfn_origin_endpoint_policy_props.rb', line 36 def channel_name @channel_name end |
#origin_endpoint_name ⇒ String (readonly)
The name of the origin endpoint associated with the origin endpoint policy.
41 42 43 |
# File 'media_packagev2/cfn_origin_endpoint_policy_props.rb', line 41 def origin_endpoint_name @origin_endpoint_name end |
#policy ⇒ Object (readonly)
The policy associated with the origin endpoint.
46 47 48 |
# File 'media_packagev2/cfn_origin_endpoint_policy_props.rb', line 46 def policy @policy end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'media_packagev2/cfn_origin_endpoint_policy_props.rb', line 53 def self.jsii_properties { :channel_group_name => "channelGroupName", :channel_name => "channelName", :origin_endpoint_name => "originEndpointName", :policy => "policy", :cdn_auth_configuration => "cdnAuthConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'media_packagev2/cfn_origin_endpoint_policy_props.rb', line 63 def to_jsii result = {} result.merge!({ "channelGroupName" => @channel_group_name, "channelName" => @channel_name, "originEndpointName" => @origin_endpoint_name, "policy" => @policy, "cdnAuthConfiguration" => @cdn_auth_configuration, }) result.compact end |