@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:08:48.101Z") @Stability(value=Stable) public class CfnPreset extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnPreset.Builder
A fluent builder for
CfnPreset . |
software.amazon.jsii.JsiiObject.InitializationMode
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnPreset(Construct scope,
String id,
CfnPresetProps props)
Create a new `AWS::MediaConvert::Preset`.
|
protected |
CfnPreset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPreset(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the output preset, such as `arn:aws:mediaconvert:us-west-2:123456789012` .
|
String |
getAttrName()
The name of the output preset, such as `HEVC high res` .
|
String |
getCategory()
The new category for the preset, if you are changing it.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The new description for the preset, if you are changing it.
|
String |
getName()
The name of the preset that you are modifying.
|
Object |
getSettingsJson()
Specify, in JSON format, the transcoding job settings for this output preset.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCategory(String value)
The new category for the preset, if you are changing it.
|
void |
setDescription(String value)
The new description for the preset, if you are changing it.
|
void |
setName(String value)
The name of the preset that you are modifying.
|
void |
setSettingsJson(Object value)
Specify, in JSON format, the transcoding job settings for this output preset.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnPreset(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPreset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public CfnPreset(@NotNull Construct scope, @NotNull String id, @NotNull CfnPresetProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.@Stability(value=Stable) public void inspect(@NotNull TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties
in class CfnResource
@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getSettingsJson()
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 ** .
@Stability(value=Stable) public void setSettingsJson(@NotNull Object value)
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 ** .
@Stability(value=Stable) @Nullable public String getCategory()
@Stability(value=Stable) public void setCategory(@Nullable String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable) public void setDescription(@Nullable String value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable) public void setName(@Nullable String value)
Copyright © 2023. All rights reserved.