Class CfnPreset
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.mediaconvert.CfnPreset
- All Implemented Interfaces:
IInspectable,ITaggable,IPresetRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:43.396Z")
@Stability(Stable)
public class CfnPreset
extends CfnResource
implements IInspectable, IPresetRef, ITaggable
The AWS::MediaConvert::Preset resource is an AWS Elemental MediaConvert resource type that you can use to specify encoding settings for a single output in a transcoding job.
When you declare this entity in your AWS CloudFormation template, you pass in your transcoding job settings in JSON or YAML format. This settings specification must be formed in a particular way that conforms to AWS Elemental MediaConvert job validation. For more information about creating an output preset model for the SettingsJson property, see the Remarks section later in this topic.
For more information about output MediaConvert presets, see Working with AWS Elemental MediaConvert Output Presets in the ** .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediaconvert.*;
Object settingsJson;
Object tags;
CfnPreset cfnPreset = CfnPreset.Builder.create(this, "MyCfnPreset")
.settingsJson(settingsJson)
// the properties below are optional
.category("category")
.description("description")
.name("name")
.tags(tags)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.mediaconvert.IPresetRef
IPresetRef.Jsii$Default, IPresetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPreset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPreset(software.amazon.jsii.JsiiObjectRef objRef) CfnPreset(software.constructs.Construct scope, String id, CfnPresetProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the output preset, such asarn:aws:mediaconvert:us-west-2:123456789012.The name of the output preset, such asHEVC high res.The new category for the preset, if you are changing it.The new description for the preset, if you are changing it.getName()The name of the preset that you are modifying.A reference to a Preset resource.Specify, in JSON format, the transcoding job settings for this output preset.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCategory(String value) The new category for the preset, if you are changing it.voidsetDescription(String value) The new description for the preset, if you are changing it.voidThe name of the preset that you are modifying.voidsetSettingsJson(Object value) Specify, in JSON format, the transcoding job settings for this output preset.voidsetTagsRaw(Object value) An array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPreset
protected CfnPreset(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPreset
protected CfnPreset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPreset
@Stability(Stable) public CfnPreset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPresetProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the output preset, such asarn:aws:mediaconvert:us-west-2:123456789012. -
getAttrId
-
getAttrName
The name of the output preset, such asHEVC high res. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPresetRef
A reference to a Preset resource.- Specified by:
getPresetRefin interfaceIPresetRef
-
getTags
Tag Manager which manages the tags for this resource. -
getSettingsJson
Specify, in JSON format, the transcoding job settings for this output preset. -
setSettingsJson
Specify, in JSON format, the transcoding job settings for this output preset. -
getCategory
The new category for the preset, if you are changing it. -
setCategory
The new category for the preset, if you are changing it. -
getDescription
The new description for the preset, if you are changing it. -
setDescription
The new description for the preset, if you are changing it. -
getName
The name of the preset that you are modifying. -
setName
The name of the preset that you are modifying. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-