Class: AWSCDK::MediaConvert::CfnPresetProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_convert/cfn_preset_props.rb

Overview

Properties for defining a CfnPreset.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings_json:, category: nil, description: nil, name: nil, tags: nil) ⇒ CfnPresetProps

Returns a new instance of CfnPresetProps.

Parameters:

  • settings_json (Object)

    Specify, in JSON format, the transcoding job settings for this output preset.

  • category (String, nil) (defaults to: nil)

    The new category for the preset, if you are changing it.

  • description (String, nil) (defaults to: nil)

    The new description for the preset, if you are changing it.

  • name (String, nil) (defaults to: nil)

    The name of the preset that you are modifying.

  • tags (Object, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'media_convert/cfn_preset_props.rb', line 14

def initialize(settings_json:, category: nil, description: nil, name: nil, tags: nil)
  @settings_json = settings_json
  Jsii::Type.check_type(@settings_json, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "settingsJson")
  @category = category
  Jsii::Type.check_type(@category, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "category") unless @category.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "tags") unless @tags.nil?
end

Instance Attribute Details

#categoryString? (readonly)

The new category for the preset, if you are changing it.



40
41
42
# File 'media_convert/cfn_preset_props.rb', line 40

def category
  @category
end

#descriptionString? (readonly)

The new description for the preset, if you are changing it.



45
46
47
# File 'media_convert/cfn_preset_props.rb', line 45

def description
  @description
end

#nameString? (readonly)

The name of the preset that you are modifying.



50
51
52
# File 'media_convert/cfn_preset_props.rb', line 50

def name
  @name
end

#settings_jsonObject (readonly)

Specify, in JSON format, the transcoding job settings for this output preset.

This specification must conform to the AWS Elemental MediaConvert job validation. For information about forming this specification, see the Remarks section later in this topic.

For more information about MediaConvert output presets, see Working with AWS Elemental MediaConvert Output Presets in the ** .



35
36
37
# File 'media_convert/cfn_preset_props.rb', line 35

def settings_json
  @settings_json
end

#tagsObject? (readonly)

An array of key-value pairs to apply to this resource.

For more information, see Tag .



57
58
59
# File 'media_convert/cfn_preset_props.rb', line 57

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



59
60
61
62
63
64
65
66
67
# File 'media_convert/cfn_preset_props.rb', line 59

def self.jsii_properties
  {
    :settings_json => "settingsJson",
    :category => "category",
    :description => "description",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



69
70
71
72
73
74
75
76
77
78
79
# File 'media_convert/cfn_preset_props.rb', line 69

def to_jsii
  result = {}
  result.merge!({
    "settingsJson" => @settings_json,
    "category" => @category,
    "description" => @description,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end