Class MediaConvertProfileMapper

  • All Implemented Interfaces:
    org.craftercms.commons.config.ConfigurationMapper<MediaConvertProfile>

    public class MediaConvertProfileMapper
    extends org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<MediaConvertProfile>
    MediaConvert implementation of ConfigurationMapper. 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
    • 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 class org.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 class org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<MediaConvertProfile>