Class MediaConvertProfileMapper
- java.lang.Object
-
- org.craftercms.commons.config.profiles.AbstractProfileConfigMapper<T>
-
- org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<MediaConvertProfile>
-
- org.craftercms.studio.impl.v1.aws.mediaconvert.MediaConvertProfileMapper
-
- All Implemented Interfaces:
org.craftercms.commons.config.ConfigurationMapper<MediaConvertProfile>
public class MediaConvertProfileMapper extends org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<MediaConvertProfile>
MediaConvert implementation ofConfigurationMapper
. It uses Apache Commons Configuration to read an XML profile like the following properties:<profile> <id>xxxxx</id> <credentials> <accessKey>XXXXXXXXXXXXXXXXXXXX</accessKey> <secretKey>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</secretKey> </credentials> <region>us-east-1</region> <endpoint>https://XXXXXXXX.mediaconvert.us-east-1.amazonaws.com</endpoint> <role>arn:aws:iam::XXXXXXXXXXXX:role/...</role> <queue>arn:aws:mediaconvert:us-east-1:XXXXXXXXXXXX:queues/Default</queue> <inputPath>example-bucket/folder/videos/...</inputPath> <template>Example Template</template> </profile>
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_KEY_ENDPOINT
static String
CONFIG_KEY_INPUT_PATH
static String
CONFIG_KEY_MEDIACONVERT
static String
CONFIG_KEY_QUEUE
static String
CONFIG_KEY_ROLE
static String
CONFIG_KEY_TEMPLATE
-
Constructor Summary
Constructors Constructor Description MediaConvertProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.craftercms.commons.config.profiles.aws.AbstractAwsProfile
createProfile()
protected MediaConvertProfile
mapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig)
-
-
-
Field Detail
-
CONFIG_KEY_MEDIACONVERT
public static final String CONFIG_KEY_MEDIACONVERT
- See Also:
- Constant Field Values
-
CONFIG_KEY_ENDPOINT
public static final String CONFIG_KEY_ENDPOINT
- See Also:
- Constant Field Values
-
CONFIG_KEY_ROLE
public static final String CONFIG_KEY_ROLE
- See Also:
- Constant Field Values
-
CONFIG_KEY_QUEUE
public static final String CONFIG_KEY_QUEUE
- See Also:
- Constant Field Values
-
CONFIG_KEY_TEMPLATE
public static final String CONFIG_KEY_TEMPLATE
- See Also:
- Constant Field Values
-
CONFIG_KEY_INPUT_PATH
public static final String CONFIG_KEY_INPUT_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MediaConvertProfileMapper
@ConstructorProperties("resolver") public MediaConvertProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver)
-
-
Method Detail
-
mapProfile
protected MediaConvertProfile mapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig) throws org.craftercms.commons.config.ConfigurationException
- Overrides:
mapProfile
in classorg.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<MediaConvertProfile>
- Throws:
org.craftercms.commons.config.ConfigurationException
-
createProfile
protected org.craftercms.commons.config.profiles.aws.AbstractAwsProfile createProfile()
- Specified by:
createProfile
in classorg.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<MediaConvertProfile>
-
-