Class: AWSCDK::MediaPackagev2::CfnOriginEndpointPolicyProps

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

Overview

Properties for defining a CfnOriginEndpointPolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_group_name:, channel_name:, origin_endpoint_name:, policy:, cdn_auth_configuration: nil) ⇒ CfnOriginEndpointPolicyProps

Returns a new instance of CfnOriginEndpointPolicyProps.

Parameters:

  • channel_group_name (String)

    The name of the channel group associated with the origin endpoint policy.

  • channel_name (String)

    The channel name associated with the origin endpoint policy.

  • origin_endpoint_name (String)

    The name of the origin endpoint associated with the origin endpoint policy.

  • policy (Object)

    The policy associated with the origin endpoint.

  • cdn_auth_configuration (AWSCDK::IResolvable, AWSCDK::MediaPackagev2::CfnOriginEndpointPolicy::CdnAuthConfigurationProperty, nil) (defaults to: nil)

    The settings to enable CDN authorization headers in MediaPackage.



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_configurationAWSCDK::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_nameString (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_nameString (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_nameString (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

#policyObject (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_propertiesObject



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_jsiiObject



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