Class: AWSCDK::MediaPackagev2::CfnChannelPolicyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackagev2::CfnChannelPolicyProps
- Defined in:
- media_packagev2/cfn_channel_policy_props.rb
Overview
Properties for defining a CfnChannelPolicy.
Instance Attribute Summary collapse
-
#channel_group_name ⇒ String
readonly
The name of the channel group associated with the channel policy.
-
#channel_name ⇒ String
readonly
The name of the channel associated with the channel policy.
-
#policy ⇒ Object
readonly
The policy associated with the channel.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(channel_group_name:, channel_name:, policy:) ⇒ CfnChannelPolicyProps
constructor
A new instance of CfnChannelPolicyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(channel_group_name:, channel_name:, policy:) ⇒ CfnChannelPolicyProps
Returns a new instance of CfnChannelPolicyProps.
12 13 14 15 16 17 18 19 |
# File 'media_packagev2/cfn_channel_policy_props.rb', line 12 def initialize(channel_group_name:, channel_name:, policy:) @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") @policy = policy Jsii::Type.check_type(@policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "policy") end |
Instance Attribute Details
#channel_group_name ⇒ String (readonly)
The name of the channel group associated with the channel policy.
25 26 27 |
# File 'media_packagev2/cfn_channel_policy_props.rb', line 25 def channel_group_name @channel_group_name end |
#channel_name ⇒ String (readonly)
The name of the channel associated with the channel policy.
30 31 32 |
# File 'media_packagev2/cfn_channel_policy_props.rb', line 30 def channel_name @channel_name end |
#policy ⇒ Object (readonly)
The policy associated with the channel.
35 36 37 |
# File 'media_packagev2/cfn_channel_policy_props.rb', line 35 def policy @policy end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'media_packagev2/cfn_channel_policy_props.rb', line 37 def self.jsii_properties { :channel_group_name => "channelGroupName", :channel_name => "channelName", :policy => "policy", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'media_packagev2/cfn_channel_policy_props.rb', line 45 def to_jsii result = {} result.merge!({ "channelGroupName" => @channel_group_name, "channelName" => @channel_name, "policy" => @policy, }) result.compact end |