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

commonMain.aws.sdk.kotlin.services.lookoutequipment.LookoutEquipmentClient.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lookoutequipment

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.lookoutequipment.auth.DefaultLookoutEquipmentAuthSchemeProvider
import aws.sdk.kotlin.services.lookoutequipment.auth.LookoutEquipmentAuthSchemeProvider
import aws.sdk.kotlin.services.lookoutequipment.endpoints.DefaultLookoutEquipmentEndpointProvider
import aws.sdk.kotlin.services.lookoutequipment.endpoints.LookoutEquipmentEndpointParameters
import aws.sdk.kotlin.services.lookoutequipment.endpoints.LookoutEquipmentEndpointProvider
import aws.sdk.kotlin.services.lookoutequipment.model.CreateDatasetRequest
import aws.sdk.kotlin.services.lookoutequipment.model.CreateDatasetResponse
import aws.sdk.kotlin.services.lookoutequipment.model.CreateInferenceSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.CreateInferenceSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelGroupRequest
import aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelGroupResponse
import aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelRequest
import aws.sdk.kotlin.services.lookoutequipment.model.CreateLabelResponse
import aws.sdk.kotlin.services.lookoutequipment.model.CreateModelRequest
import aws.sdk.kotlin.services.lookoutequipment.model.CreateModelResponse
import aws.sdk.kotlin.services.lookoutequipment.model.CreateRetrainingSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.CreateRetrainingSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteDatasetRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteDatasetResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteInferenceSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteInferenceSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteLabelGroupRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteLabelGroupResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteLabelRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteLabelResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteModelRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteModelResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteResourcePolicyRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteResourcePolicyResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteRetrainingSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DeleteRetrainingSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeDataIngestionJobRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeDataIngestionJobResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeDatasetRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeDatasetResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeInferenceSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeInferenceSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelGroupRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelGroupResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeLabelResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeModelRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeModelResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeModelVersionRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeModelVersionResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeResourcePolicyRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeResourcePolicyResponse
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeRetrainingSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.DescribeRetrainingSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ImportDatasetRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ImportDatasetResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ImportModelVersionRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ImportModelVersionResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListDataIngestionJobsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListDataIngestionJobsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListDatasetsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListDatasetsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListInferenceEventsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListInferenceEventsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListInferenceExecutionsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListInferenceExecutionsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListInferenceSchedulersRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListInferenceSchedulersResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListLabelGroupsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListLabelGroupsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListLabelsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListLabelsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListModelVersionsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListModelVersionsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListModelsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListModelsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListRetrainingSchedulersRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListRetrainingSchedulersResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListSensorStatisticsRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListSensorStatisticsResponse
import aws.sdk.kotlin.services.lookoutequipment.model.ListTagsForResourceRequest
import aws.sdk.kotlin.services.lookoutequipment.model.ListTagsForResourceResponse
import aws.sdk.kotlin.services.lookoutequipment.model.PutResourcePolicyRequest
import aws.sdk.kotlin.services.lookoutequipment.model.PutResourcePolicyResponse
import aws.sdk.kotlin.services.lookoutequipment.model.StartDataIngestionJobRequest
import aws.sdk.kotlin.services.lookoutequipment.model.StartDataIngestionJobResponse
import aws.sdk.kotlin.services.lookoutequipment.model.StartInferenceSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.StartInferenceSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.StartRetrainingSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.StartRetrainingSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.StopInferenceSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.StopInferenceSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.StopRetrainingSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.StopRetrainingSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.TagResourceRequest
import aws.sdk.kotlin.services.lookoutequipment.model.TagResourceResponse
import aws.sdk.kotlin.services.lookoutequipment.model.UntagResourceRequest
import aws.sdk.kotlin.services.lookoutequipment.model.UntagResourceResponse
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateActiveModelVersionRequest
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateActiveModelVersionResponse
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateInferenceSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateInferenceSchedulerResponse
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateLabelGroupRequest
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateLabelGroupResponse
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateModelRequest
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateModelResponse
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateRetrainingSchedulerRequest
import aws.sdk.kotlin.services.lookoutequipment.model.UpdateRetrainingSchedulerResponse
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.AbstractSdkClientFactory
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.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 = "LookoutEquipment"
public const val SdkVersion: String = "1.3.31"
public const val ServiceApiVersion: String = "2020-12-15"

/**
 * Amazon Lookout for Equipment is a machine learning service that uses advanced analytics to identify anomalies in machines from sensor data for use in predictive maintenance.
 */
public interface LookoutEquipmentClient : SdkClient {
    /**
     * LookoutEquipmentClient's configuration
     */
    public override val config: Config

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

        override fun finalizeConfig(builder: Builder) {
            super.finalizeConfig(builder)
            builder.config.interceptors.add(0, ClockSkewInterceptor())
        }

        override suspend fun finalizeEnvironmentalConfig(builder: Builder, sharedConfig: LazyAsyncValue, activeProfile: LazyAsyncValue) {
            super.finalizeEnvironmentalConfig(builder, sharedConfig, activeProfile)
            builder.config.endpointUrl = builder.config.endpointUrl ?: resolveEndpointUrl(
                sharedConfig,
                "LookoutEquipment",
                "LOOKOUTEQUIPMENT",
                "lookoutequipment",
            )
        }
    }

    public class Builder internal constructor(): AbstractSdkClientBuilder() {
        override val config: Config.Builder = Config.Builder()
        override fun newClient(config: Config): LookoutEquipmentClient = DefaultLookoutEquipmentClient(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: LookoutEquipmentEndpointProvider = builder.endpointProvider ?: DefaultLookoutEquipmentEndpointProvider()
        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: LookoutEquipmentAuthSchemeProvider = builder.authSchemeProvider ?: DefaultLookoutEquipmentAuthSchemeProvider()
        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 = "LookoutEquipment"

            /**
             * 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: LookoutEquipmentEndpointProvider? = 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: LookoutEquipmentAuthSchemeProvider? = null

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

    /**
     * Creates a container for a collection of data being ingested for analysis. The dataset contains the metadata describing where the data is and what the data actually looks like. For example, it contains the location of the data source, the data schema, and other information. A dataset also contains any tags associated with the ingested data.
     */
    public suspend fun createDataset(input: CreateDatasetRequest): CreateDatasetResponse

    /**
     * Creates a scheduled inference. Scheduling an inference is setting up a continuous real-time inference plan to analyze new measurement data. When setting up the schedule, you provide an S3 bucket location for the input data, assign it a delimiter between separate entries in the data, set an offset delay if desired, and set the frequency of inferencing. You must also provide an S3 bucket location for the output data.
     */
    public suspend fun createInferenceScheduler(input: CreateInferenceSchedulerRequest): CreateInferenceSchedulerResponse

    /**
     * Creates a label for an event.
     */
    public suspend fun createLabel(input: CreateLabelRequest): CreateLabelResponse

    /**
     * Creates a group of labels.
     */
    public suspend fun createLabelGroup(input: CreateLabelGroupRequest): CreateLabelGroupResponse

    /**
     * Creates a machine learning model for data inference.
     *
     * A machine-learning (ML) model is a mathematical model that finds patterns in your data. In Amazon Lookout for Equipment, the model learns the patterns of normal behavior and detects abnormal behavior that could be potential equipment failure (or maintenance events). The models are made by analyzing normal data and abnormalities in machine behavior that have already occurred.
     *
     * Your model is trained using a portion of the data from your dataset and uses that data to learn patterns of normal behavior and abnormal patterns that lead to equipment failure. Another portion of the data is used to evaluate the model's accuracy.
     */
    public suspend fun createModel(input: CreateModelRequest): CreateModelResponse

    /**
     * Creates a retraining scheduler on the specified model.
     *
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.CreateRetrainingScheduler.sample
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.CreateRetrainingScheduler.sample2
     */
    public suspend fun createRetrainingScheduler(input: CreateRetrainingSchedulerRequest): CreateRetrainingSchedulerResponse

    /**
     * Deletes a dataset and associated artifacts. The operation will check to see if any inference scheduler or data ingestion job is currently using the dataset, and if there isn't, the dataset, its metadata, and any associated data stored in S3 will be deleted. This does not affect any models that used this dataset for training and evaluation, but does prevent it from being used in the future.
     */
    public suspend fun deleteDataset(input: DeleteDatasetRequest): DeleteDatasetResponse

    /**
     * Deletes an inference scheduler that has been set up. Prior inference results will not be deleted.
     */
    public suspend fun deleteInferenceScheduler(input: DeleteInferenceSchedulerRequest): DeleteInferenceSchedulerResponse

    /**
     * Deletes a label.
     */
    public suspend fun deleteLabel(input: DeleteLabelRequest): DeleteLabelResponse

    /**
     * Deletes a group of labels.
     */
    public suspend fun deleteLabelGroup(input: DeleteLabelGroupRequest): DeleteLabelGroupResponse

    /**
     * Deletes a machine learning model currently available for Amazon Lookout for Equipment. This will prevent it from being used with an inference scheduler, even one that is already set up.
     */
    public suspend fun deleteModel(input: DeleteModelRequest): DeleteModelResponse

    /**
     * Deletes the resource policy attached to the resource.
     */
    public suspend fun deleteResourcePolicy(input: DeleteResourcePolicyRequest): DeleteResourcePolicyResponse

    /**
     * Deletes a retraining scheduler from a model. The retraining scheduler must be in the `STOPPED` status.
     *
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.DeleteRetrainingScheduler.sample
     */
    public suspend fun deleteRetrainingScheduler(input: DeleteRetrainingSchedulerRequest): DeleteRetrainingSchedulerResponse

    /**
     * Provides information on a specific data ingestion job such as creation time, dataset ARN, and status.
     */
    public suspend fun describeDataIngestionJob(input: DescribeDataIngestionJobRequest): DescribeDataIngestionJobResponse

    /**
     * Provides a JSON description of the data in each time series dataset, including names, column names, and data types.
     */
    public suspend fun describeDataset(input: DescribeDatasetRequest): DescribeDatasetResponse

    /**
     * Specifies information about the inference scheduler being used, including name, model, status, and associated metadata
     */
    public suspend fun describeInferenceScheduler(input: DescribeInferenceSchedulerRequest): DescribeInferenceSchedulerResponse

    /**
     * Returns the name of the label.
     */
    public suspend fun describeLabel(input: DescribeLabelRequest): DescribeLabelResponse

    /**
     * Returns information about the label group.
     */
    public suspend fun describeLabelGroup(input: DescribeLabelGroupRequest): DescribeLabelGroupResponse

    /**
     * Provides a JSON containing the overall information about a specific machine learning model, including model name and ARN, dataset, training and evaluation information, status, and so on.
     */
    public suspend fun describeModel(input: DescribeModelRequest): DescribeModelResponse

    /**
     * Retrieves information about a specific machine learning model version.
     */
    public suspend fun describeModelVersion(input: DescribeModelVersionRequest): DescribeModelVersionResponse

    /**
     * Provides the details of a resource policy attached to a resource.
     */
    public suspend fun describeResourcePolicy(input: DescribeResourcePolicyRequest): DescribeResourcePolicyResponse

    /**
     * Provides a description of the retraining scheduler, including information such as the model name and retraining parameters.
     *
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.DescribeRetrainingScheduler.sample
     */
    public suspend fun describeRetrainingScheduler(input: DescribeRetrainingSchedulerRequest): DescribeRetrainingSchedulerResponse

    /**
     * Imports a dataset.
     */
    public suspend fun importDataset(input: ImportDatasetRequest): ImportDatasetResponse

    /**
     * Imports a model that has been trained successfully.
     */
    public suspend fun importModelVersion(input: ImportModelVersionRequest): ImportModelVersionResponse

    /**
     * Provides a list of all data ingestion jobs, including dataset name and ARN, S3 location of the input data, status, and so on.
     */
    public suspend fun listDataIngestionJobs(input: ListDataIngestionJobsRequest = ListDataIngestionJobsRequest { }): ListDataIngestionJobsResponse

    /**
     * Lists all datasets currently available in your account, filtering on the dataset name.
     */
    public suspend fun listDatasets(input: ListDatasetsRequest = ListDatasetsRequest { }): ListDatasetsResponse

    /**
     * Lists all inference events that have been found for the specified inference scheduler.
     */
    public suspend fun listInferenceEvents(input: ListInferenceEventsRequest): ListInferenceEventsResponse

    /**
     * Lists all inference executions that have been performed by the specified inference scheduler.
     */
    public suspend fun listInferenceExecutions(input: ListInferenceExecutionsRequest): ListInferenceExecutionsResponse

    /**
     * Retrieves a list of all inference schedulers currently available for your account.
     */
    public suspend fun listInferenceSchedulers(input: ListInferenceSchedulersRequest = ListInferenceSchedulersRequest { }): ListInferenceSchedulersResponse

    /**
     * Returns a list of the label groups.
     */
    public suspend fun listLabelGroups(input: ListLabelGroupsRequest = ListLabelGroupsRequest { }): ListLabelGroupsResponse

    /**
     * Provides a list of labels.
     */
    public suspend fun listLabels(input: ListLabelsRequest): ListLabelsResponse

    /**
     * Generates a list of all model versions for a given model, including the model version, model version ARN, and status. To list a subset of versions, use the `MaxModelVersion` and `MinModelVersion` fields.
     */
    public suspend fun listModelVersions(input: ListModelVersionsRequest): ListModelVersionsResponse

    /**
     * Generates a list of all models in the account, including model name and ARN, dataset, and status.
     */
    public suspend fun listModels(input: ListModelsRequest = ListModelsRequest { }): ListModelsResponse

    /**
     * Lists all retraining schedulers in your account, filtering by model name prefix and status.
     *
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.ListRetrainingSchedulers.sample
     */
    public suspend fun listRetrainingSchedulers(input: ListRetrainingSchedulersRequest = ListRetrainingSchedulersRequest { }): ListRetrainingSchedulersResponse

    /**
     * Lists statistics about the data collected for each of the sensors that have been successfully ingested in the particular dataset. Can also be used to retreive Sensor Statistics for a previous ingestion job.
     */
    public suspend fun listSensorStatistics(input: ListSensorStatisticsRequest): ListSensorStatisticsResponse

    /**
     * Lists all the tags for a specified resource, including key and value.
     */
    public suspend fun listTagsForResource(input: ListTagsForResourceRequest): ListTagsForResourceResponse

    /**
     * Creates a resource control policy for a given resource.
     */
    public suspend fun putResourcePolicy(input: PutResourcePolicyRequest): PutResourcePolicyResponse

    /**
     * Starts a data ingestion job. Amazon Lookout for Equipment returns the job status.
     */
    public suspend fun startDataIngestionJob(input: StartDataIngestionJobRequest): StartDataIngestionJobResponse

    /**
     * Starts an inference scheduler.
     */
    public suspend fun startInferenceScheduler(input: StartInferenceSchedulerRequest): StartInferenceSchedulerResponse

    /**
     * Starts a retraining scheduler.
     *
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.StartRetrainingScheduler.sample
     */
    public suspend fun startRetrainingScheduler(input: StartRetrainingSchedulerRequest): StartRetrainingSchedulerResponse

    /**
     * Stops an inference scheduler.
     */
    public suspend fun stopInferenceScheduler(input: StopInferenceSchedulerRequest): StopInferenceSchedulerResponse

    /**
     * Stops a retraining scheduler.
     *
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.StopRetrainingScheduler.sample
     */
    public suspend fun stopRetrainingScheduler(input: StopRetrainingSchedulerRequest): StopRetrainingSchedulerResponse

    /**
     * Associates a given tag to a resource in your account. A tag is a key-value pair which can be added to an Amazon Lookout for Equipment resource as metadata. Tags can be used for organizing your resources as well as helping you to search and filter by tag. Multiple tags can be added to a resource, either when you create it, or later. Up to 50 tags can be associated with each resource.
     */
    public suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

    /**
     * Removes a specific tag from a given resource. The tag is specified by its key.
     */
    public suspend fun untagResource(input: UntagResourceRequest): UntagResourceResponse

    /**
     * Sets the active model version for a given machine learning model.
     */
    public suspend fun updateActiveModelVersion(input: UpdateActiveModelVersionRequest): UpdateActiveModelVersionResponse

    /**
     * Updates an inference scheduler.
     */
    public suspend fun updateInferenceScheduler(input: UpdateInferenceSchedulerRequest): UpdateInferenceSchedulerResponse

    /**
     * Updates the label group.
     */
    public suspend fun updateLabelGroup(input: UpdateLabelGroupRequest): UpdateLabelGroupResponse

    /**
     * Updates a model in the account.
     *
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.UpdateModel.sample
     */
    public suspend fun updateModel(input: UpdateModelRequest): UpdateModelResponse

    /**
     * Updates a retraining scheduler.
     *
     * @sample aws.sdk.kotlin.services.lookoutequipment.samples.UpdateRetrainingScheduler.sample
     */
    public suspend fun updateRetrainingScheduler(input: UpdateRetrainingSchedulerRequest): UpdateRetrainingSchedulerResponse
}

/**
 * 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 LookoutEquipmentClient.withConfig(block: LookoutEquipmentClient.Config.Builder.() -> Unit): LookoutEquipmentClient {
    val newConfig = config.toBuilder().apply(block).build()
    return DefaultLookoutEquipmentClient(newConfig)
}

/**
 * Creates a container for a collection of data being ingested for analysis. The dataset contains the metadata describing where the data is and what the data actually looks like. For example, it contains the location of the data source, the data schema, and other information. A dataset also contains any tags associated with the ingested data.
 */
public suspend inline fun LookoutEquipmentClient.createDataset(crossinline block: CreateDatasetRequest.Builder.() -> Unit): CreateDatasetResponse = createDataset(CreateDatasetRequest.Builder().apply(block).build())

/**
 * Creates a scheduled inference. Scheduling an inference is setting up a continuous real-time inference plan to analyze new measurement data. When setting up the schedule, you provide an S3 bucket location for the input data, assign it a delimiter between separate entries in the data, set an offset delay if desired, and set the frequency of inferencing. You must also provide an S3 bucket location for the output data.
 */
public suspend inline fun LookoutEquipmentClient.createInferenceScheduler(crossinline block: CreateInferenceSchedulerRequest.Builder.() -> Unit): CreateInferenceSchedulerResponse = createInferenceScheduler(CreateInferenceSchedulerRequest.Builder().apply(block).build())

/**
 * Creates a label for an event.
 */
public suspend inline fun LookoutEquipmentClient.createLabel(crossinline block: CreateLabelRequest.Builder.() -> Unit): CreateLabelResponse = createLabel(CreateLabelRequest.Builder().apply(block).build())

/**
 * Creates a group of labels.
 */
public suspend inline fun LookoutEquipmentClient.createLabelGroup(crossinline block: CreateLabelGroupRequest.Builder.() -> Unit): CreateLabelGroupResponse = createLabelGroup(CreateLabelGroupRequest.Builder().apply(block).build())

/**
 * Creates a machine learning model for data inference.
 *
 * A machine-learning (ML) model is a mathematical model that finds patterns in your data. In Amazon Lookout for Equipment, the model learns the patterns of normal behavior and detects abnormal behavior that could be potential equipment failure (or maintenance events). The models are made by analyzing normal data and abnormalities in machine behavior that have already occurred.
 *
 * Your model is trained using a portion of the data from your dataset and uses that data to learn patterns of normal behavior and abnormal patterns that lead to equipment failure. Another portion of the data is used to evaluate the model's accuracy.
 */
public suspend inline fun LookoutEquipmentClient.createModel(crossinline block: CreateModelRequest.Builder.() -> Unit): CreateModelResponse = createModel(CreateModelRequest.Builder().apply(block).build())

/**
 * Creates a retraining scheduler on the specified model.
 *
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.CreateRetrainingScheduler.sample
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.CreateRetrainingScheduler.sample2
 */
public suspend inline fun LookoutEquipmentClient.createRetrainingScheduler(crossinline block: CreateRetrainingSchedulerRequest.Builder.() -> Unit): CreateRetrainingSchedulerResponse = createRetrainingScheduler(CreateRetrainingSchedulerRequest.Builder().apply(block).build())

/**
 * Deletes a dataset and associated artifacts. The operation will check to see if any inference scheduler or data ingestion job is currently using the dataset, and if there isn't, the dataset, its metadata, and any associated data stored in S3 will be deleted. This does not affect any models that used this dataset for training and evaluation, but does prevent it from being used in the future.
 */
public suspend inline fun LookoutEquipmentClient.deleteDataset(crossinline block: DeleteDatasetRequest.Builder.() -> Unit): DeleteDatasetResponse = deleteDataset(DeleteDatasetRequest.Builder().apply(block).build())

/**
 * Deletes an inference scheduler that has been set up. Prior inference results will not be deleted.
 */
public suspend inline fun LookoutEquipmentClient.deleteInferenceScheduler(crossinline block: DeleteInferenceSchedulerRequest.Builder.() -> Unit): DeleteInferenceSchedulerResponse = deleteInferenceScheduler(DeleteInferenceSchedulerRequest.Builder().apply(block).build())

/**
 * Deletes a label.
 */
public suspend inline fun LookoutEquipmentClient.deleteLabel(crossinline block: DeleteLabelRequest.Builder.() -> Unit): DeleteLabelResponse = deleteLabel(DeleteLabelRequest.Builder().apply(block).build())

/**
 * Deletes a group of labels.
 */
public suspend inline fun LookoutEquipmentClient.deleteLabelGroup(crossinline block: DeleteLabelGroupRequest.Builder.() -> Unit): DeleteLabelGroupResponse = deleteLabelGroup(DeleteLabelGroupRequest.Builder().apply(block).build())

/**
 * Deletes a machine learning model currently available for Amazon Lookout for Equipment. This will prevent it from being used with an inference scheduler, even one that is already set up.
 */
public suspend inline fun LookoutEquipmentClient.deleteModel(crossinline block: DeleteModelRequest.Builder.() -> Unit): DeleteModelResponse = deleteModel(DeleteModelRequest.Builder().apply(block).build())

/**
 * Deletes the resource policy attached to the resource.
 */
public suspend inline fun LookoutEquipmentClient.deleteResourcePolicy(crossinline block: DeleteResourcePolicyRequest.Builder.() -> Unit): DeleteResourcePolicyResponse = deleteResourcePolicy(DeleteResourcePolicyRequest.Builder().apply(block).build())

/**
 * Deletes a retraining scheduler from a model. The retraining scheduler must be in the `STOPPED` status.
 *
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.DeleteRetrainingScheduler.sample
 */
public suspend inline fun LookoutEquipmentClient.deleteRetrainingScheduler(crossinline block: DeleteRetrainingSchedulerRequest.Builder.() -> Unit): DeleteRetrainingSchedulerResponse = deleteRetrainingScheduler(DeleteRetrainingSchedulerRequest.Builder().apply(block).build())

/**
 * Provides information on a specific data ingestion job such as creation time, dataset ARN, and status.
 */
public suspend inline fun LookoutEquipmentClient.describeDataIngestionJob(crossinline block: DescribeDataIngestionJobRequest.Builder.() -> Unit): DescribeDataIngestionJobResponse = describeDataIngestionJob(DescribeDataIngestionJobRequest.Builder().apply(block).build())

/**
 * Provides a JSON description of the data in each time series dataset, including names, column names, and data types.
 */
public suspend inline fun LookoutEquipmentClient.describeDataset(crossinline block: DescribeDatasetRequest.Builder.() -> Unit): DescribeDatasetResponse = describeDataset(DescribeDatasetRequest.Builder().apply(block).build())

/**
 * Specifies information about the inference scheduler being used, including name, model, status, and associated metadata
 */
public suspend inline fun LookoutEquipmentClient.describeInferenceScheduler(crossinline block: DescribeInferenceSchedulerRequest.Builder.() -> Unit): DescribeInferenceSchedulerResponse = describeInferenceScheduler(DescribeInferenceSchedulerRequest.Builder().apply(block).build())

/**
 * Returns the name of the label.
 */
public suspend inline fun LookoutEquipmentClient.describeLabel(crossinline block: DescribeLabelRequest.Builder.() -> Unit): DescribeLabelResponse = describeLabel(DescribeLabelRequest.Builder().apply(block).build())

/**
 * Returns information about the label group.
 */
public suspend inline fun LookoutEquipmentClient.describeLabelGroup(crossinline block: DescribeLabelGroupRequest.Builder.() -> Unit): DescribeLabelGroupResponse = describeLabelGroup(DescribeLabelGroupRequest.Builder().apply(block).build())

/**
 * Provides a JSON containing the overall information about a specific machine learning model, including model name and ARN, dataset, training and evaluation information, status, and so on.
 */
public suspend inline fun LookoutEquipmentClient.describeModel(crossinline block: DescribeModelRequest.Builder.() -> Unit): DescribeModelResponse = describeModel(DescribeModelRequest.Builder().apply(block).build())

/**
 * Retrieves information about a specific machine learning model version.
 */
public suspend inline fun LookoutEquipmentClient.describeModelVersion(crossinline block: DescribeModelVersionRequest.Builder.() -> Unit): DescribeModelVersionResponse = describeModelVersion(DescribeModelVersionRequest.Builder().apply(block).build())

/**
 * Provides the details of a resource policy attached to a resource.
 */
public suspend inline fun LookoutEquipmentClient.describeResourcePolicy(crossinline block: DescribeResourcePolicyRequest.Builder.() -> Unit): DescribeResourcePolicyResponse = describeResourcePolicy(DescribeResourcePolicyRequest.Builder().apply(block).build())

/**
 * Provides a description of the retraining scheduler, including information such as the model name and retraining parameters.
 *
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.DescribeRetrainingScheduler.sample
 */
public suspend inline fun LookoutEquipmentClient.describeRetrainingScheduler(crossinline block: DescribeRetrainingSchedulerRequest.Builder.() -> Unit): DescribeRetrainingSchedulerResponse = describeRetrainingScheduler(DescribeRetrainingSchedulerRequest.Builder().apply(block).build())

/**
 * Imports a dataset.
 */
public suspend inline fun LookoutEquipmentClient.importDataset(crossinline block: ImportDatasetRequest.Builder.() -> Unit): ImportDatasetResponse = importDataset(ImportDatasetRequest.Builder().apply(block).build())

/**
 * Imports a model that has been trained successfully.
 */
public suspend inline fun LookoutEquipmentClient.importModelVersion(crossinline block: ImportModelVersionRequest.Builder.() -> Unit): ImportModelVersionResponse = importModelVersion(ImportModelVersionRequest.Builder().apply(block).build())

/**
 * Provides a list of all data ingestion jobs, including dataset name and ARN, S3 location of the input data, status, and so on.
 */
public suspend inline fun LookoutEquipmentClient.listDataIngestionJobs(crossinline block: ListDataIngestionJobsRequest.Builder.() -> Unit): ListDataIngestionJobsResponse = listDataIngestionJobs(ListDataIngestionJobsRequest.Builder().apply(block).build())

/**
 * Lists all datasets currently available in your account, filtering on the dataset name.
 */
public suspend inline fun LookoutEquipmentClient.listDatasets(crossinline block: ListDatasetsRequest.Builder.() -> Unit): ListDatasetsResponse = listDatasets(ListDatasetsRequest.Builder().apply(block).build())

/**
 * Lists all inference events that have been found for the specified inference scheduler.
 */
public suspend inline fun LookoutEquipmentClient.listInferenceEvents(crossinline block: ListInferenceEventsRequest.Builder.() -> Unit): ListInferenceEventsResponse = listInferenceEvents(ListInferenceEventsRequest.Builder().apply(block).build())

/**
 * Lists all inference executions that have been performed by the specified inference scheduler.
 */
public suspend inline fun LookoutEquipmentClient.listInferenceExecutions(crossinline block: ListInferenceExecutionsRequest.Builder.() -> Unit): ListInferenceExecutionsResponse = listInferenceExecutions(ListInferenceExecutionsRequest.Builder().apply(block).build())

/**
 * Retrieves a list of all inference schedulers currently available for your account.
 */
public suspend inline fun LookoutEquipmentClient.listInferenceSchedulers(crossinline block: ListInferenceSchedulersRequest.Builder.() -> Unit): ListInferenceSchedulersResponse = listInferenceSchedulers(ListInferenceSchedulersRequest.Builder().apply(block).build())

/**
 * Returns a list of the label groups.
 */
public suspend inline fun LookoutEquipmentClient.listLabelGroups(crossinline block: ListLabelGroupsRequest.Builder.() -> Unit): ListLabelGroupsResponse = listLabelGroups(ListLabelGroupsRequest.Builder().apply(block).build())

/**
 * Provides a list of labels.
 */
public suspend inline fun LookoutEquipmentClient.listLabels(crossinline block: ListLabelsRequest.Builder.() -> Unit): ListLabelsResponse = listLabels(ListLabelsRequest.Builder().apply(block).build())

/**
 * Generates a list of all model versions for a given model, including the model version, model version ARN, and status. To list a subset of versions, use the `MaxModelVersion` and `MinModelVersion` fields.
 */
public suspend inline fun LookoutEquipmentClient.listModelVersions(crossinline block: ListModelVersionsRequest.Builder.() -> Unit): ListModelVersionsResponse = listModelVersions(ListModelVersionsRequest.Builder().apply(block).build())

/**
 * Generates a list of all models in the account, including model name and ARN, dataset, and status.
 */
public suspend inline fun LookoutEquipmentClient.listModels(crossinline block: ListModelsRequest.Builder.() -> Unit): ListModelsResponse = listModels(ListModelsRequest.Builder().apply(block).build())

/**
 * Lists all retraining schedulers in your account, filtering by model name prefix and status.
 *
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.ListRetrainingSchedulers.sample
 */
public suspend inline fun LookoutEquipmentClient.listRetrainingSchedulers(crossinline block: ListRetrainingSchedulersRequest.Builder.() -> Unit): ListRetrainingSchedulersResponse = listRetrainingSchedulers(ListRetrainingSchedulersRequest.Builder().apply(block).build())

/**
 * Lists statistics about the data collected for each of the sensors that have been successfully ingested in the particular dataset. Can also be used to retreive Sensor Statistics for a previous ingestion job.
 */
public suspend inline fun LookoutEquipmentClient.listSensorStatistics(crossinline block: ListSensorStatisticsRequest.Builder.() -> Unit): ListSensorStatisticsResponse = listSensorStatistics(ListSensorStatisticsRequest.Builder().apply(block).build())

/**
 * Lists all the tags for a specified resource, including key and value.
 */
public suspend inline fun LookoutEquipmentClient.listTagsForResource(crossinline block: ListTagsForResourceRequest.Builder.() -> Unit): ListTagsForResourceResponse = listTagsForResource(ListTagsForResourceRequest.Builder().apply(block).build())

/**
 * Creates a resource control policy for a given resource.
 */
public suspend inline fun LookoutEquipmentClient.putResourcePolicy(crossinline block: PutResourcePolicyRequest.Builder.() -> Unit): PutResourcePolicyResponse = putResourcePolicy(PutResourcePolicyRequest.Builder().apply(block).build())

/**
 * Starts a data ingestion job. Amazon Lookout for Equipment returns the job status.
 */
public suspend inline fun LookoutEquipmentClient.startDataIngestionJob(crossinline block: StartDataIngestionJobRequest.Builder.() -> Unit): StartDataIngestionJobResponse = startDataIngestionJob(StartDataIngestionJobRequest.Builder().apply(block).build())

/**
 * Starts an inference scheduler.
 */
public suspend inline fun LookoutEquipmentClient.startInferenceScheduler(crossinline block: StartInferenceSchedulerRequest.Builder.() -> Unit): StartInferenceSchedulerResponse = startInferenceScheduler(StartInferenceSchedulerRequest.Builder().apply(block).build())

/**
 * Starts a retraining scheduler.
 *
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.StartRetrainingScheduler.sample
 */
public suspend inline fun LookoutEquipmentClient.startRetrainingScheduler(crossinline block: StartRetrainingSchedulerRequest.Builder.() -> Unit): StartRetrainingSchedulerResponse = startRetrainingScheduler(StartRetrainingSchedulerRequest.Builder().apply(block).build())

/**
 * Stops an inference scheduler.
 */
public suspend inline fun LookoutEquipmentClient.stopInferenceScheduler(crossinline block: StopInferenceSchedulerRequest.Builder.() -> Unit): StopInferenceSchedulerResponse = stopInferenceScheduler(StopInferenceSchedulerRequest.Builder().apply(block).build())

/**
 * Stops a retraining scheduler.
 *
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.StopRetrainingScheduler.sample
 */
public suspend inline fun LookoutEquipmentClient.stopRetrainingScheduler(crossinline block: StopRetrainingSchedulerRequest.Builder.() -> Unit): StopRetrainingSchedulerResponse = stopRetrainingScheduler(StopRetrainingSchedulerRequest.Builder().apply(block).build())

/**
 * Associates a given tag to a resource in your account. A tag is a key-value pair which can be added to an Amazon Lookout for Equipment resource as metadata. Tags can be used for organizing your resources as well as helping you to search and filter by tag. Multiple tags can be added to a resource, either when you create it, or later. Up to 50 tags can be associated with each resource.
 */
public suspend inline fun LookoutEquipmentClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse = tagResource(TagResourceRequest.Builder().apply(block).build())

/**
 * Removes a specific tag from a given resource. The tag is specified by its key.
 */
public suspend inline fun LookoutEquipmentClient.untagResource(crossinline block: UntagResourceRequest.Builder.() -> Unit): UntagResourceResponse = untagResource(UntagResourceRequest.Builder().apply(block).build())

/**
 * Sets the active model version for a given machine learning model.
 */
public suspend inline fun LookoutEquipmentClient.updateActiveModelVersion(crossinline block: UpdateActiveModelVersionRequest.Builder.() -> Unit): UpdateActiveModelVersionResponse = updateActiveModelVersion(UpdateActiveModelVersionRequest.Builder().apply(block).build())

/**
 * Updates an inference scheduler.
 */
public suspend inline fun LookoutEquipmentClient.updateInferenceScheduler(crossinline block: UpdateInferenceSchedulerRequest.Builder.() -> Unit): UpdateInferenceSchedulerResponse = updateInferenceScheduler(UpdateInferenceSchedulerRequest.Builder().apply(block).build())

/**
 * Updates the label group.
 */
public suspend inline fun LookoutEquipmentClient.updateLabelGroup(crossinline block: UpdateLabelGroupRequest.Builder.() -> Unit): UpdateLabelGroupResponse = updateLabelGroup(UpdateLabelGroupRequest.Builder().apply(block).build())

/**
 * Updates a model in the account.
 *
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.UpdateModel.sample
 */
public suspend inline fun LookoutEquipmentClient.updateModel(crossinline block: UpdateModelRequest.Builder.() -> Unit): UpdateModelResponse = updateModel(UpdateModelRequest.Builder().apply(block).build())

/**
 * Updates a retraining scheduler.
 *
 * @sample aws.sdk.kotlin.services.lookoutequipment.samples.UpdateRetrainingScheduler.sample
 */
public suspend inline fun LookoutEquipmentClient.updateRetrainingScheduler(crossinline block: UpdateRetrainingSchedulerRequest.Builder.() -> Unit): UpdateRetrainingSchedulerResponse = updateRetrainingScheduler(UpdateRetrainingSchedulerRequest.Builder().apply(block).build())




© 2015 - 2024 Weber Informatics LLC | Privacy Policy