All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.mediaconvert.MediaConvertClient.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert

import aws.sdk.kotlin.runtime.auth.credentials.DefaultChainCredentialsProvider
import aws.sdk.kotlin.runtime.auth.credentials.internal.manage
import aws.sdk.kotlin.runtime.client.AwsSdkClientConfig
import aws.sdk.kotlin.runtime.config.AbstractAwsSdkClientFactory
import aws.sdk.kotlin.runtime.config.endpoints.resolveEndpointUrl
import aws.sdk.kotlin.runtime.config.profile.AwsProfile
import aws.sdk.kotlin.runtime.config.profile.AwsSharedConfig
import aws.sdk.kotlin.runtime.http.retries.AwsRetryPolicy
import aws.sdk.kotlin.services.mediaconvert.auth.DefaultMediaConvertAuthSchemeProvider
import aws.sdk.kotlin.services.mediaconvert.auth.MediaConvertAuthSchemeProvider
import aws.sdk.kotlin.services.mediaconvert.endpoints.DefaultMediaConvertEndpointProvider
import aws.sdk.kotlin.services.mediaconvert.endpoints.MediaConvertEndpointParameters
import aws.sdk.kotlin.services.mediaconvert.endpoints.MediaConvertEndpointProvider
import aws.sdk.kotlin.services.mediaconvert.model.AssociateCertificateRequest
import aws.sdk.kotlin.services.mediaconvert.model.AssociateCertificateResponse
import aws.sdk.kotlin.services.mediaconvert.model.CancelJobRequest
import aws.sdk.kotlin.services.mediaconvert.model.CancelJobResponse
import aws.sdk.kotlin.services.mediaconvert.model.CreateJobRequest
import aws.sdk.kotlin.services.mediaconvert.model.CreateJobResponse
import aws.sdk.kotlin.services.mediaconvert.model.CreateJobTemplateRequest
import aws.sdk.kotlin.services.mediaconvert.model.CreateJobTemplateResponse
import aws.sdk.kotlin.services.mediaconvert.model.CreatePresetRequest
import aws.sdk.kotlin.services.mediaconvert.model.CreatePresetResponse
import aws.sdk.kotlin.services.mediaconvert.model.CreateQueueRequest
import aws.sdk.kotlin.services.mediaconvert.model.CreateQueueResponse
import aws.sdk.kotlin.services.mediaconvert.model.DeleteJobTemplateRequest
import aws.sdk.kotlin.services.mediaconvert.model.DeleteJobTemplateResponse
import aws.sdk.kotlin.services.mediaconvert.model.DeletePolicyRequest
import aws.sdk.kotlin.services.mediaconvert.model.DeletePolicyResponse
import aws.sdk.kotlin.services.mediaconvert.model.DeletePresetRequest
import aws.sdk.kotlin.services.mediaconvert.model.DeletePresetResponse
import aws.sdk.kotlin.services.mediaconvert.model.DeleteQueueRequest
import aws.sdk.kotlin.services.mediaconvert.model.DeleteQueueResponse
import aws.sdk.kotlin.services.mediaconvert.model.DescribeEndpointsRequest
import aws.sdk.kotlin.services.mediaconvert.model.DescribeEndpointsResponse
import aws.sdk.kotlin.services.mediaconvert.model.DisassociateCertificateRequest
import aws.sdk.kotlin.services.mediaconvert.model.DisassociateCertificateResponse
import aws.sdk.kotlin.services.mediaconvert.model.GetJobRequest
import aws.sdk.kotlin.services.mediaconvert.model.GetJobResponse
import aws.sdk.kotlin.services.mediaconvert.model.GetJobTemplateRequest
import aws.sdk.kotlin.services.mediaconvert.model.GetJobTemplateResponse
import aws.sdk.kotlin.services.mediaconvert.model.GetPolicyRequest
import aws.sdk.kotlin.services.mediaconvert.model.GetPolicyResponse
import aws.sdk.kotlin.services.mediaconvert.model.GetPresetRequest
import aws.sdk.kotlin.services.mediaconvert.model.GetPresetResponse
import aws.sdk.kotlin.services.mediaconvert.model.GetQueueRequest
import aws.sdk.kotlin.services.mediaconvert.model.GetQueueResponse
import aws.sdk.kotlin.services.mediaconvert.model.ListJobTemplatesRequest
import aws.sdk.kotlin.services.mediaconvert.model.ListJobTemplatesResponse
import aws.sdk.kotlin.services.mediaconvert.model.ListJobsRequest
import aws.sdk.kotlin.services.mediaconvert.model.ListJobsResponse
import aws.sdk.kotlin.services.mediaconvert.model.ListPresetsRequest
import aws.sdk.kotlin.services.mediaconvert.model.ListPresetsResponse
import aws.sdk.kotlin.services.mediaconvert.model.ListQueuesRequest
import aws.sdk.kotlin.services.mediaconvert.model.ListQueuesResponse
import aws.sdk.kotlin.services.mediaconvert.model.ListTagsForResourceRequest
import aws.sdk.kotlin.services.mediaconvert.model.ListTagsForResourceResponse
import aws.sdk.kotlin.services.mediaconvert.model.PutPolicyRequest
import aws.sdk.kotlin.services.mediaconvert.model.PutPolicyResponse
import aws.sdk.kotlin.services.mediaconvert.model.TagResourceRequest
import aws.sdk.kotlin.services.mediaconvert.model.TagResourceResponse
import aws.sdk.kotlin.services.mediaconvert.model.UntagResourceRequest
import aws.sdk.kotlin.services.mediaconvert.model.UntagResourceResponse
import aws.sdk.kotlin.services.mediaconvert.model.UpdateJobTemplateRequest
import aws.sdk.kotlin.services.mediaconvert.model.UpdateJobTemplateResponse
import aws.sdk.kotlin.services.mediaconvert.model.UpdatePresetRequest
import aws.sdk.kotlin.services.mediaconvert.model.UpdatePresetResponse
import aws.sdk.kotlin.services.mediaconvert.model.UpdateQueueRequest
import aws.sdk.kotlin.services.mediaconvert.model.UpdateQueueResponse
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProvider
import aws.smithy.kotlin.runtime.auth.awscredentials.CredentialsProviderConfig
import aws.smithy.kotlin.runtime.awsprotocol.ClockSkewInterceptor
import aws.smithy.kotlin.runtime.client.AbstractSdkClientBuilder
import aws.smithy.kotlin.runtime.client.IdempotencyTokenConfig
import aws.smithy.kotlin.runtime.client.IdempotencyTokenProvider
import aws.smithy.kotlin.runtime.client.LogMode
import aws.smithy.kotlin.runtime.client.RetryClientConfig
import aws.smithy.kotlin.runtime.client.RetryStrategyClientConfig
import aws.smithy.kotlin.runtime.client.RetryStrategyClientConfigImpl
import aws.smithy.kotlin.runtime.client.SdkClient
import aws.smithy.kotlin.runtime.client.SdkClientConfig
import aws.smithy.kotlin.runtime.client.SdkClientFactory
import aws.smithy.kotlin.runtime.http.auth.AuthScheme
import aws.smithy.kotlin.runtime.http.auth.HttpAuthConfig
import aws.smithy.kotlin.runtime.http.config.HttpClientConfig
import aws.smithy.kotlin.runtime.http.config.HttpEngineConfig
import aws.smithy.kotlin.runtime.http.engine.HttpClientEngine
import aws.smithy.kotlin.runtime.http.engine.HttpEngineConfigImpl
import aws.smithy.kotlin.runtime.http.interceptors.HttpInterceptor
import aws.smithy.kotlin.runtime.net.url.Url
import aws.smithy.kotlin.runtime.retries.RetryStrategy
import aws.smithy.kotlin.runtime.retries.policy.RetryPolicy
import aws.smithy.kotlin.runtime.telemetry.Global
import aws.smithy.kotlin.runtime.telemetry.TelemetryConfig
import aws.smithy.kotlin.runtime.telemetry.TelemetryProvider
import aws.smithy.kotlin.runtime.util.LazyAsyncValue
import kotlin.collections.List
import kotlin.jvm.JvmStatic


public const val ServiceId: String = "MediaConvert"
public const val SdkVersion: String = "1.0.78"
public const val ServiceApiVersion: String = "2017-08-29"

/**
 * AWS Elemental MediaConvert
 */
public interface MediaConvertClient : SdkClient {
    /**
     * MediaConvertClient's configuration
     */
    public override val config: Config

    public companion object : AbstractAwsSdkClientFactory() {
        @JvmStatic
        override fun builder(): Builder = Builder()

        override suspend fun finalizeConfig(builder: Builder, sharedConfig: LazyAsyncValue, activeProfile: LazyAsyncValue) {
            builder.config.endpointUrl = builder.config.endpointUrl ?: resolveEndpointUrl(
                sharedConfig,
                "MediaConvert",
                "MEDIACONVERT",
                "mediaconvert",
            )
            builder.config.interceptors.add(0, ClockSkewInterceptor())
        }
    }

    public class Builder internal constructor(): AbstractSdkClientBuilder() {
        override val config: Config.Builder = Config.Builder()
        override fun newClient(config: Config): MediaConvertClient = DefaultMediaConvertClient(config)
    }

    public class Config private constructor(builder: Builder) : AwsSdkClientConfig, CredentialsProviderConfig, HttpAuthConfig, HttpClientConfig, HttpEngineConfig by builder.buildHttpEngineConfig(), IdempotencyTokenConfig, RetryClientConfig, RetryStrategyClientConfig by builder.buildRetryStrategyClientConfig(), SdkClientConfig, TelemetryConfig {
        override val clientName: String = builder.clientName
        override val region: String? = builder.region
        override val authSchemes: kotlin.collections.List = builder.authSchemes
        override val credentialsProvider: CredentialsProvider = builder.credentialsProvider ?: DefaultChainCredentialsProvider(httpClient = httpClient, region = region).manage()
        public val endpointProvider: MediaConvertEndpointProvider = builder.endpointProvider ?: DefaultMediaConvertEndpointProvider()
        public val endpointUrl: Url? = builder.endpointUrl
        override val idempotencyTokenProvider: IdempotencyTokenProvider = builder.idempotencyTokenProvider ?: IdempotencyTokenProvider.Default
        override val interceptors: kotlin.collections.List = builder.interceptors
        override val logMode: LogMode = builder.logMode ?: LogMode.Default
        override val retryPolicy: RetryPolicy = builder.retryPolicy ?: AwsRetryPolicy.Default
        override val telemetryProvider: TelemetryProvider = builder.telemetryProvider ?: TelemetryProvider.Global
        override val useDualStack: Boolean = builder.useDualStack ?: false
        override val useFips: Boolean = builder.useFips ?: false
        override val applicationId: String? = builder.applicationId
        public val authSchemeProvider: MediaConvertAuthSchemeProvider = builder.authSchemeProvider ?: DefaultMediaConvertAuthSchemeProvider()
        public companion object {
            public inline operator fun invoke(block: Builder.() -> kotlin.Unit): Config = Builder().apply(block).build()
        }

        public fun toBuilder(): Builder = Builder().apply {
            clientName = [email protected]
            region = [email protected]
            authSchemes = [email protected]
            credentialsProvider = [email protected]
            endpointProvider = [email protected]
            endpointUrl = [email protected]
            httpClient = [email protected]
            idempotencyTokenProvider = [email protected]
            interceptors = [email protected]()
            logMode = [email protected]
            retryPolicy = [email protected]
            retryStrategy = [email protected]
            telemetryProvider = [email protected]
            useDualStack = [email protected]
            useFips = [email protected]
            applicationId = [email protected]
            authSchemeProvider = [email protected]
        }

        public class Builder : AwsSdkClientConfig.Builder, CredentialsProviderConfig.Builder, HttpAuthConfig.Builder, HttpClientConfig.Builder, HttpEngineConfig.Builder by HttpEngineConfigImpl.BuilderImpl(), IdempotencyTokenConfig.Builder, RetryClientConfig.Builder, RetryStrategyClientConfig.Builder by RetryStrategyClientConfigImpl.BuilderImpl(), SdkClientConfig.Builder, TelemetryConfig.Builder {
            /**
             * A reader-friendly name for the client.
             */
            override var clientName: String = "MediaConvert"

            /**
             * The AWS region (e.g. `us-west-2`) to make requests to. See about AWS
             * [global infrastructure](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/) for more
             * information
             */
            override var region: String? = null

            /**
             * Register new or override default [AuthScheme]s configured for this client. By default, the set
             * of auth schemes configured comes from the service model. An auth scheme configured explicitly takes
             * precedence over the defaults and can be used to customize identity resolution and signing for specific
             * authentication schemes.
             */
            override var authSchemes: kotlin.collections.List = emptyList()

            /**
             * The AWS credentials provider to use for authenticating requests. If not provided a
             * [aws.sdk.kotlin.runtime.auth.credentials.DefaultChainCredentialsProvider] instance will be used.
             * NOTE: The caller is responsible for managing the lifetime of the provider when set. The SDK
             * client will not close it when the client is closed.
             */
            override var credentialsProvider: CredentialsProvider? = null

            /**
             * The endpoint provider used to determine where to make service requests. **This is an advanced config
             * option.**
             *
             * Endpoint resolution occurs as part of the workflow for every request made via the service client.
             *
             * The inputs to endpoint resolution are defined on a per-service basis (see [EndpointParameters]).
             */
            public var endpointProvider: MediaConvertEndpointProvider? = null

            /**
             * A custom endpoint to route requests to. The endpoint set here is passed to the configured
             * [endpointProvider], which may inspect and modify it as needed.
             *
             * Setting a custom endpointUrl should generally be preferred to overriding the [endpointProvider] and is
             * the recommended way to route requests to development or preview instances of a service.
             *
             * **This is an advanced config option.**
             */
            public var endpointUrl: Url? = null

            /**
             * Override the default idempotency token generator. SDK clients will generate tokens for members
             * that represent idempotent tokens when not explicitly set by the caller using this generator.
             */
            override var idempotencyTokenProvider: IdempotencyTokenProvider? = null

            /**
             * Add an [aws.smithy.kotlin.runtime.client.Interceptor] that will have access to read and modify
             * the request and response objects as they are processed by the SDK.
             * Interceptors added using this method are executed in the order they are configured and are always
             * later than any added automatically by the SDK.
             */
            override var interceptors: kotlin.collections.MutableList = kotlin.collections.mutableListOf()

            /**
             * Configure events that will be logged. By default clients will not output
             * raw requests or responses. Use this setting to opt-in to additional debug logging.
             *
             * This can be used to configure logging of requests, responses, retries, etc of SDK clients.
             *
             * **NOTE**: Logging of raw requests or responses may leak sensitive information! It may also have
             * performance considerations when dumping the request/response body. This is primarily a tool for
             * debug purposes.
             */
            override var logMode: LogMode? = null

            /**
             * The policy to use for evaluating operation results and determining whether/how to retry.
             */
            override var retryPolicy: RetryPolicy? = null

            /**
             * The telemetry provider used to instrument the SDK operations with. By default, the global telemetry
             * provider will be used.
             */
            override var telemetryProvider: TelemetryProvider? = null

            /**
             *            Flag to toggle whether to use dual-stack endpoints when making requests.
             *            See [https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html] for more information.
             * `          Disabled by default.
             */
            override var useDualStack: Boolean? = null

            /**
             *            Flag to toggle whether to use [FIPS](https://aws.amazon.com/compliance/fips/) endpoints when making requests.
             * `          Disabled by default.
             */
            override var useFips: Boolean? = null

            /**
             * An optional application specific identifier.
             * When set it will be appended to the User-Agent header of every request in the form of: `app/{applicationId}`.
             * When not explicitly set, the value will be loaded from the following locations:
             *
             * - JVM System Property: `aws.userAgentAppId`
             * - Environment variable: `AWS_SDK_UA_APP_ID`
             * - Shared configuration profile attribute: `sdk_ua_app_id`
             *
             * See [shared configuration settings](https://docs.aws.amazon.com/sdkref/latest/guide/settings-reference.html)
             * reference for more information on environment variables and shared config settings.
             */
            override var applicationId: String? = null

            /**
             * Configure the provider used to resolve the authentication scheme to use for a particular operation.
             */
            public var authSchemeProvider: MediaConvertAuthSchemeProvider? = null

            override fun build(): Config = Config(this)
        }
    }

    /**
     * Associates an AWS Certificate Manager (ACM) Amazon Resource Name (ARN) with AWS Elemental MediaConvert.
     */
    public suspend fun associateCertificate(input: AssociateCertificateRequest): AssociateCertificateResponse

    /**
     * Permanently cancel a job. Once you have canceled a job, you can't start it again.
     */
    public suspend fun cancelJob(input: CancelJobRequest): CancelJobResponse

    /**
     * Create a new transcoding job. For information about jobs and job settings, see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
     */
    public suspend fun createJob(input: CreateJobRequest): CreateJobResponse

    /**
     * Create a new job template. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
     */
    public suspend fun createJobTemplate(input: CreateJobTemplateRequest): CreateJobTemplateResponse

    /**
     * Create a new preset. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
     */
    public suspend fun createPreset(input: CreatePresetRequest): CreatePresetResponse

    /**
     * Create a new transcoding queue. For information about queues, see Working With Queues in the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html
     */
    public suspend fun createQueue(input: CreateQueueRequest): CreateQueueResponse

    /**
     * Permanently delete a job template you have created.
     */
    public suspend fun deleteJobTemplate(input: DeleteJobTemplateRequest): DeleteJobTemplateResponse

    /**
     * Permanently delete a policy that you created.
     */
    public suspend fun deletePolicy(input: DeletePolicyRequest = DeletePolicyRequest { }): DeletePolicyResponse

    /**
     * Permanently delete a preset you have created.
     */
    public suspend fun deletePreset(input: DeletePresetRequest): DeletePresetResponse

    /**
     * Permanently delete a queue you have created.
     */
    public suspend fun deleteQueue(input: DeleteQueueRequest): DeleteQueueResponse

    /**
     * Send an request with an empty body to the regional API endpoint to get your account API endpoint.
     */
    @Deprecated("No longer recommended for use. See AWS API documentation for more details.")
    public suspend fun describeEndpoints(input: DescribeEndpointsRequest = DescribeEndpointsRequest { }): DescribeEndpointsResponse

    /**
     * Removes an association between the Amazon Resource Name (ARN) of an AWS Certificate Manager (ACM) certificate and an AWS Elemental MediaConvert resource.
     */
    public suspend fun disassociateCertificate(input: DisassociateCertificateRequest): DisassociateCertificateResponse

    /**
     * Retrieve the JSON for a specific transcoding job.
     */
    public suspend fun getJob(input: GetJobRequest): GetJobResponse

    /**
     * Retrieve the JSON for a specific job template.
     */
    public suspend fun getJobTemplate(input: GetJobTemplateRequest): GetJobTemplateResponse

    /**
     * Retrieve the JSON for your policy.
     */
    public suspend fun getPolicy(input: GetPolicyRequest = GetPolicyRequest { }): GetPolicyResponse

    /**
     * Retrieve the JSON for a specific preset.
     */
    public suspend fun getPreset(input: GetPresetRequest): GetPresetResponse

    /**
     * Retrieve the JSON for a specific queue.
     */
    public suspend fun getQueue(input: GetQueueRequest): GetQueueResponse

    /**
     * Retrieve a JSON array of up to twenty of your job templates. This will return the templates themselves, not just a list of them. To retrieve the next twenty templates, use the nextToken string returned with the array
     */
    public suspend fun listJobTemplates(input: ListJobTemplatesRequest = ListJobTemplatesRequest { }): ListJobTemplatesResponse

    /**
     * Retrieve a JSON array of up to twenty of your most recently created jobs. This array includes in-process, completed, and errored jobs. This will return the jobs themselves, not just a list of the jobs. To retrieve the twenty next most recent jobs, use the nextToken string returned with the array.
     */
    public suspend fun listJobs(input: ListJobsRequest = ListJobsRequest { }): ListJobsResponse

    /**
     * Retrieve a JSON array of up to twenty of your presets. This will return the presets themselves, not just a list of them. To retrieve the next twenty presets, use the nextToken string returned with the array.
     */
    public suspend fun listPresets(input: ListPresetsRequest = ListPresetsRequest { }): ListPresetsResponse

    /**
     * Retrieve a JSON array of up to twenty of your queues. This will return the queues themselves, not just a list of them. To retrieve the next twenty queues, use the nextToken string returned with the array.
     */
    public suspend fun listQueues(input: ListQueuesRequest = ListQueuesRequest { }): ListQueuesResponse

    /**
     * Retrieve the tags for a MediaConvert resource.
     */
    public suspend fun listTagsForResource(input: ListTagsForResourceRequest): ListTagsForResourceResponse

    /**
     * Create or change your policy. For more information about policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
     */
    public suspend fun putPolicy(input: PutPolicyRequest): PutPolicyResponse

    /**
     * Add tags to a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html
     */
    public suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

    /**
     * Remove tags from a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html
     */
    public suspend fun untagResource(input: UntagResourceRequest): UntagResourceResponse

    /**
     * Modify one of your existing job templates.
     */
    public suspend fun updateJobTemplate(input: UpdateJobTemplateRequest): UpdateJobTemplateResponse

    /**
     * Modify one of your existing presets.
     */
    public suspend fun updatePreset(input: UpdatePresetRequest): UpdatePresetResponse

    /**
     * Modify one of your existing queues.
     */
    public suspend fun updateQueue(input: UpdateQueueRequest): UpdateQueueResponse
}

/**
 * Create a copy of the client with one or more configuration values overridden.
 * This method allows the caller to perform scoped config overrides for one or more client operations.
 *
 * Any resources created on your behalf will be shared between clients, and will only be closed when ALL clients using them are closed.
 * If you provide a resource (e.g. [HttpClientEngine]) to the SDK, you are responsible for managing the lifetime of that resource.
 */
public fun MediaConvertClient.withConfig(block: MediaConvertClient.Config.Builder.() -> Unit): MediaConvertClient {
    val newConfig = config.toBuilder().apply(block).build()
    return DefaultMediaConvertClient(newConfig)
}

/**
 * Associates an AWS Certificate Manager (ACM) Amazon Resource Name (ARN) with AWS Elemental MediaConvert.
 */
public suspend inline fun MediaConvertClient.associateCertificate(crossinline block: AssociateCertificateRequest.Builder.() -> Unit): AssociateCertificateResponse = associateCertificate(AssociateCertificateRequest.Builder().apply(block).build())

/**
 * Permanently cancel a job. Once you have canceled a job, you can't start it again.
 */
public suspend inline fun MediaConvertClient.cancelJob(crossinline block: CancelJobRequest.Builder.() -> Unit): CancelJobResponse = cancelJob(CancelJobRequest.Builder().apply(block).build())

/**
 * Create a new transcoding job. For information about jobs and job settings, see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
 */
public suspend inline fun MediaConvertClient.createJob(crossinline block: CreateJobRequest.Builder.() -> Unit): CreateJobResponse = createJob(CreateJobRequest.Builder().apply(block).build())

/**
 * Create a new job template. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
 */
public suspend inline fun MediaConvertClient.createJobTemplate(crossinline block: CreateJobTemplateRequest.Builder.() -> Unit): CreateJobTemplateResponse = createJobTemplate(CreateJobTemplateRequest.Builder().apply(block).build())

/**
 * Create a new preset. For information about job templates see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
 */
public suspend inline fun MediaConvertClient.createPreset(crossinline block: CreatePresetRequest.Builder.() -> Unit): CreatePresetResponse = createPreset(CreatePresetRequest.Builder().apply(block).build())

/**
 * Create a new transcoding queue. For information about queues, see Working With Queues in the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-queues.html
 */
public suspend inline fun MediaConvertClient.createQueue(crossinline block: CreateQueueRequest.Builder.() -> Unit): CreateQueueResponse = createQueue(CreateQueueRequest.Builder().apply(block).build())

/**
 * Permanently delete a job template you have created.
 */
public suspend inline fun MediaConvertClient.deleteJobTemplate(crossinline block: DeleteJobTemplateRequest.Builder.() -> Unit): DeleteJobTemplateResponse = deleteJobTemplate(DeleteJobTemplateRequest.Builder().apply(block).build())

/**
 * Permanently delete a policy that you created.
 */
public suspend inline fun MediaConvertClient.deletePolicy(crossinline block: DeletePolicyRequest.Builder.() -> Unit): DeletePolicyResponse = deletePolicy(DeletePolicyRequest.Builder().apply(block).build())

/**
 * Permanently delete a preset you have created.
 */
public suspend inline fun MediaConvertClient.deletePreset(crossinline block: DeletePresetRequest.Builder.() -> Unit): DeletePresetResponse = deletePreset(DeletePresetRequest.Builder().apply(block).build())

/**
 * Permanently delete a queue you have created.
 */
public suspend inline fun MediaConvertClient.deleteQueue(crossinline block: DeleteQueueRequest.Builder.() -> Unit): DeleteQueueResponse = deleteQueue(DeleteQueueRequest.Builder().apply(block).build())

/**
 * Send an request with an empty body to the regional API endpoint to get your account API endpoint.
 */
@Deprecated("No longer recommended for use. See AWS API documentation for more details.")
public suspend inline fun MediaConvertClient.describeEndpoints(crossinline block: DescribeEndpointsRequest.Builder.() -> Unit): DescribeEndpointsResponse = describeEndpoints(DescribeEndpointsRequest.Builder().apply(block).build())

/**
 * Removes an association between the Amazon Resource Name (ARN) of an AWS Certificate Manager (ACM) certificate and an AWS Elemental MediaConvert resource.
 */
public suspend inline fun MediaConvertClient.disassociateCertificate(crossinline block: DisassociateCertificateRequest.Builder.() -> Unit): DisassociateCertificateResponse = disassociateCertificate(DisassociateCertificateRequest.Builder().apply(block).build())

/**
 * Retrieve the JSON for a specific transcoding job.
 */
public suspend inline fun MediaConvertClient.getJob(crossinline block: GetJobRequest.Builder.() -> Unit): GetJobResponse = getJob(GetJobRequest.Builder().apply(block).build())

/**
 * Retrieve the JSON for a specific job template.
 */
public suspend inline fun MediaConvertClient.getJobTemplate(crossinline block: GetJobTemplateRequest.Builder.() -> Unit): GetJobTemplateResponse = getJobTemplate(GetJobTemplateRequest.Builder().apply(block).build())

/**
 * Retrieve the JSON for your policy.
 */
public suspend inline fun MediaConvertClient.getPolicy(crossinline block: GetPolicyRequest.Builder.() -> Unit): GetPolicyResponse = getPolicy(GetPolicyRequest.Builder().apply(block).build())

/**
 * Retrieve the JSON for a specific preset.
 */
public suspend inline fun MediaConvertClient.getPreset(crossinline block: GetPresetRequest.Builder.() -> Unit): GetPresetResponse = getPreset(GetPresetRequest.Builder().apply(block).build())

/**
 * Retrieve the JSON for a specific queue.
 */
public suspend inline fun MediaConvertClient.getQueue(crossinline block: GetQueueRequest.Builder.() -> Unit): GetQueueResponse = getQueue(GetQueueRequest.Builder().apply(block).build())

/**
 * Retrieve a JSON array of up to twenty of your job templates. This will return the templates themselves, not just a list of them. To retrieve the next twenty templates, use the nextToken string returned with the array
 */
public suspend inline fun MediaConvertClient.listJobTemplates(crossinline block: ListJobTemplatesRequest.Builder.() -> Unit): ListJobTemplatesResponse = listJobTemplates(ListJobTemplatesRequest.Builder().apply(block).build())

/**
 * Retrieve a JSON array of up to twenty of your most recently created jobs. This array includes in-process, completed, and errored jobs. This will return the jobs themselves, not just a list of the jobs. To retrieve the twenty next most recent jobs, use the nextToken string returned with the array.
 */
public suspend inline fun MediaConvertClient.listJobs(crossinline block: ListJobsRequest.Builder.() -> Unit): ListJobsResponse = listJobs(ListJobsRequest.Builder().apply(block).build())

/**
 * Retrieve a JSON array of up to twenty of your presets. This will return the presets themselves, not just a list of them. To retrieve the next twenty presets, use the nextToken string returned with the array.
 */
public suspend inline fun MediaConvertClient.listPresets(crossinline block: ListPresetsRequest.Builder.() -> Unit): ListPresetsResponse = listPresets(ListPresetsRequest.Builder().apply(block).build())

/**
 * Retrieve a JSON array of up to twenty of your queues. This will return the queues themselves, not just a list of them. To retrieve the next twenty queues, use the nextToken string returned with the array.
 */
public suspend inline fun MediaConvertClient.listQueues(crossinline block: ListQueuesRequest.Builder.() -> Unit): ListQueuesResponse = listQueues(ListQueuesRequest.Builder().apply(block).build())

/**
 * Retrieve the tags for a MediaConvert resource.
 */
public suspend inline fun MediaConvertClient.listTagsForResource(crossinline block: ListTagsForResourceRequest.Builder.() -> Unit): ListTagsForResourceResponse = listTagsForResource(ListTagsForResourceRequest.Builder().apply(block).build())

/**
 * Create or change your policy. For more information about policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html
 */
public suspend inline fun MediaConvertClient.putPolicy(crossinline block: PutPolicyRequest.Builder.() -> Unit): PutPolicyResponse = putPolicy(PutPolicyRequest.Builder().apply(block).build())

/**
 * Add tags to a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html
 */
public suspend inline fun MediaConvertClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse = tagResource(TagResourceRequest.Builder().apply(block).build())

/**
 * Remove tags from a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html
 */
public suspend inline fun MediaConvertClient.untagResource(crossinline block: UntagResourceRequest.Builder.() -> Unit): UntagResourceResponse = untagResource(UntagResourceRequest.Builder().apply(block).build())

/**
 * Modify one of your existing job templates.
 */
public suspend inline fun MediaConvertClient.updateJobTemplate(crossinline block: UpdateJobTemplateRequest.Builder.() -> Unit): UpdateJobTemplateResponse = updateJobTemplate(UpdateJobTemplateRequest.Builder().apply(block).build())

/**
 * Modify one of your existing presets.
 */
public suspend inline fun MediaConvertClient.updatePreset(crossinline block: UpdatePresetRequest.Builder.() -> Unit): UpdatePresetResponse = updatePreset(UpdatePresetRequest.Builder().apply(block).build())

/**
 * Modify one of your existing queues.
 */
public suspend inline fun MediaConvertClient.updateQueue(crossinline block: UpdateQueueRequest.Builder.() -> Unit): UpdateQueueResponse = updateQueue(UpdateQueueRequest.Builder().apply(block).build())




© 2015 - 2025 Weber Informatics LLC | Privacy Policy