Skip to content

Commit

Permalink
fixed linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
scmacdon authored and DavidSouther committed Nov 10, 2023
1 parent 985191d commit 2179325
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ suspend fun main(args: Array<String>) {
fileInput - the URL of an Amazon S3 bucket where the input file is located (for example s3://<bucket name>/<mp4 file name>).
"""

// if (args.size != 2) {
// println(usage)
// exitProcess(0)
// }
if (args.size != 2) {
println(usage)
exitProcess(0)
}

val mcRoleARN = "arn:aws:iam::814548047983:role/MediaConvert_Default_Role" //args[0]
val fileInput = "s3://bucketscottjune2/Sample.mp4" //args[1]
val mcRoleARN = args[0]
val fileInput = args[1]
val mcClient = MediaConvertClient { region = "us-west-2" }
val id = createMediaJob(mcClient, mcRoleARN, fileInput)
println("MediaConvert job $id was successfully created!")
Expand Down Expand Up @@ -435,7 +435,7 @@ fun createOutput(
}
containerSettings = ContainerSettings {
container = ContainerType.M3U8
this.m3u8Settings = M3u8Settings {
this.m3u8Settings = M3u8Settings {
audioFramesPerPes = 4
pcrControl = M3u8PcrControl.PcrEveryPesPacket
pmtPid = 480
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ package com.kotlin.mediaconvert

// snippet-start:[mediaconvert.kotlin.list_jobs.import]
import aws.sdk.kotlin.services.mediaconvert.MediaConvertClient
import aws.sdk.kotlin.services.mediaconvert.endpoints.MediaConvertEndpointProvider
import aws.sdk.kotlin.services.mediaconvert.model.DescribeEndpointsRequest
import aws.sdk.kotlin.services.mediaconvert.model.JobStatus
import aws.sdk.kotlin.services.mediaconvert.model.ListJobsRequest
import aws.smithy.kotlin.runtime.client.endpoints.Endpoint
import aws.sdk.kotlin.services.mediaconvert.endpoints.MediaConvertEndpointProvider
import kotlin.system.exitProcess
// snippet-end:[mediaconvert.kotlin.list_jobs.import]

Expand Down
1 change: 0 additions & 1 deletion kotlin/services/secretsmanager/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
}


tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "17"
kotlinOptions.freeCompilerArgs += "-Xlint:-deprecation"
Expand Down

0 comments on commit 2179325

Please sign in to comment.