Class: AWSCDK::MediaTailor::CfnChannelPolicyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_tailor/cfn_channel_policy_props.rb

Overview

Properties for defining a CfnChannelPolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel_name:, policy:) ⇒ CfnChannelPolicyProps

Returns a new instance of CfnChannelPolicyProps.

Parameters:

  • channel_name (String)

    The name of the channel associated with this Channel Policy.

  • policy (Object)

    The IAM policy for the channel.



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

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



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_jsiiObject



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