Class: AWSCDK::MediaTailor::CfnChannelPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaTailor::CfnChannelPolicyProps
- Defined in:
- media_tailor/cfn_channel_policy_props.rb
Overview
Properties for defining a CfnChannelPolicy.
Instance Attribute Summary collapse
-
#channel_name ⇒ String
readonly
The name of the channel associated with this Channel Policy.
-
#policy ⇒ Object
readonly
The IAM policy for the channel.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_name:, policy:) ⇒ CfnChannelPolicyProps
constructor
A new instance of CfnChannelPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel_name:, policy:) ⇒ CfnChannelPolicyProps
Returns a new instance of CfnChannelPolicyProps.
11 12 13 14 15 16 |
# File 'media_tailor/cfn_channel_policy_props.rb', line 11 def initialize(channel_name:, policy:) @channel_name = channel_name Jsii::Type.check_type(@channel_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelName") @policy = policy Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policy") end |
Instance Attribute Details
#channel_name ⇒ String (readonly)
The name of the channel associated with this Channel Policy.
22 23 24 |
# File 'media_tailor/cfn_channel_policy_props.rb', line 22 def channel_name @channel_name end |
#policy ⇒ Object (readonly)
The IAM policy for the channel.
IAM policies are used to control access to your channel.
29 30 31 |
# File 'media_tailor/cfn_channel_policy_props.rb', line 29 def policy @policy end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'media_tailor/cfn_channel_policy_props.rb', line 31 def self.jsii_properties { :channel_name => "channelName", :policy => "policy", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'media_tailor/cfn_channel_policy_props.rb', line 38 def to_jsii result = {} result.merge!({ "channelName" => @channel_name, "policy" => @policy, }) result.compact end |