diff --git a/kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/CreateJob.kt b/kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/CreateJob.kt index 954adfe26be..c3333375a7e 100644 --- a/kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/CreateJob.kt +++ b/kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/CreateJob.kt @@ -128,13 +128,13 @@ suspend fun main(args: Array) { fileInput - the URL of an Amazon S3 bucket where the input file is located (for example s3:///). """ - // 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!") @@ -435,7 +435,7 @@ fun createOutput( } containerSettings = ContainerSettings { container = ContainerType.M3U8 - this.m3u8Settings = M3u8Settings { + this.m3u8Settings = M3u8Settings { audioFramesPerPes = 4 pcrControl = M3u8PcrControl.PcrEveryPesPacket pmtPid = 480 diff --git a/kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/ListJobs.kt b/kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/ListJobs.kt index bb5a10e11b4..04a2d8f630e 100644 --- a/kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/ListJobs.kt +++ b/kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/ListJobs.kt @@ -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] diff --git a/kotlin/services/secretsmanager/build.gradle.kts b/kotlin/services/secretsmanager/build.gradle.kts index 35aa226978d..0d35b59f8e5 100644 --- a/kotlin/services/secretsmanager/build.gradle.kts +++ b/kotlin/services/secretsmanager/build.gradle.kts @@ -31,7 +31,6 @@ dependencies { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") } - tasks.withType() { kotlinOptions.jvmTarget = "17" kotlinOptions.freeCompilerArgs += "-Xlint:-deprecation"