Class: AWSCDK::MediaConvert::CfnPresetProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaConvert::CfnPresetProps
- Defined in:
- media_convert/cfn_preset_props.rb
Overview
Properties for defining a CfnPreset.
Instance Attribute Summary collapse
-
#category ⇒ String?
readonly
The new category for the preset, if you are changing it.
-
#description ⇒ String?
readonly
The new description for the preset, if you are changing it.
-
#name ⇒ String?
readonly
The name of the preset that you are modifying.
-
#settings_json ⇒ Object
readonly
Specify, in JSON format, the transcoding job settings for this output preset.
-
#tags ⇒ Object?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(settings_json:, category: nil, description: nil, name: nil, tags: nil) ⇒ CfnPresetProps
constructor
A new instance of CfnPresetProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(settings_json:, category: nil, description: nil, name: nil, tags: nil) ⇒ CfnPresetProps
Returns a new instance of CfnPresetProps.
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 = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "tags") unless @tags.nil? end |
Instance Attribute Details
#category ⇒ String? (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 |
#description ⇒ String? (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 |
#name ⇒ String? (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_json ⇒ Object (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 |
#tags ⇒ Object? (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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |