how set premissions to public, Elastic Transcoder Amazon SDK

katobit

New Member
how I can make all files public using Amazon.ElasticTranscoder.Model (.NET, C#).Here is my code: \[code\] public static void CreateJobRequest(string videoPath, string bucketName){string accsessKey = CloudSettings.AccessKeyID;string secretKey = CloudSettings.SecreteKey;var etsClient = new AmazonElasticTranscoderClient(accsessKey,secretKey, RegionEndpoint.USEast1);var notifications = new Notifications(){Completed = "arn:aws:sns:us-east-1:XXXXXXXXXXXX:Transcode",Error = "arn:aws:sns:us-east-1:XXXXXXXXXXXX:Transcode",Progressing = "arn:aws:sns:us-east-1:XXXXXXXXXXXX:Transcode",Warning = "arn:aws:sns:us-east-1:XXXXXXXXXXXX:Transcode"};var pipeline=etsClient.CreatePipeline(new CreatePipelineRequest(){Name = "MyFolder",InputBucket = bucketName,OutputBucket = bucketName,Notifications = notifications,Role = "arn:aws:iam::XXXXXXXXXXXX:role/Elastic_Transcoder_Default_Role"}).CreatePipelineResult.Pipeline;etsClient.CreateJob(new CreateJobRequest(){PipelineId = pipeline.Id,Input = new JobInput(){AspectRatio = "auto",Container = "mp4",FrameRate = "auto",Interlaced = "auto",Resolution = "auto",Key = videoPath},Output = new CreateJobOutput(){ThumbnailPattern = videoPath+"videoName{resolution}_{count}",Rotate = "0",PresetId = "1351620000000-000020",Key = videoPath+"newFileName.mp4"}});}\[/code\]Everything works perfect, but transcoded files are private. How I can set it to public?
 
Back
Top