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

com.pulumi.aws.location.kotlin.TrackerArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.location.kotlin

import com.pulumi.aws.location.TrackerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides a Location Service Tracker.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.location.Tracker("example", {trackerName: "example"});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.location.Tracker("example", tracker_name="example")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.Location.Tracker("example", new()
 *     {
 *         TrackerName = "example",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/location"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := location.NewTracker(ctx, "example", &location.TrackerArgs{
 * 			TrackerName: pulumi.String("example"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.location.Tracker;
 * import com.pulumi.aws.location.TrackerArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new Tracker("example", TrackerArgs.builder()
 *             .trackerName("example")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:location:Tracker
 *     properties:
 *       trackerName: example
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import `aws_location_tracker` resources using the tracker name. For example:
 * ```sh
 * $ pulumi import aws:location/tracker:Tracker example example
 * ```
 * @property description The optional description for the tracker resource.
 * @property kmsKeyId A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
 * @property positionFiltering The position filtering method of the tracker resource. Valid values: `TimeBased`, `DistanceBased`, `AccuracyBased`. Default: `TimeBased`.
 * @property tags Key-value tags for the tracker. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
 * @property trackerName The name of the tracker resource.
 * The following arguments are optional:
 */
public data class TrackerArgs(
    public val description: Output? = null,
    public val kmsKeyId: Output? = null,
    public val positionFiltering: Output? = null,
    public val tags: Output>? = null,
    public val trackerName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.location.TrackerArgs =
        com.pulumi.aws.location.TrackerArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
            .positionFiltering(positionFiltering?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .trackerName(trackerName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TrackerArgs].
 */
@PulumiTagMarker
public class TrackerArgsBuilder internal constructor() {
    private var description: Output? = null

    private var kmsKeyId: Output? = null

    private var positionFiltering: Output? = null

    private var tags: Output>? = null

    private var trackerName: Output? = null

    /**
     * @param value The optional description for the tracker resource.
     */
    @JvmName("mbaxjkoxvanobqjd")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
     */
    @JvmName("evtvvmeceyhgevvp")
    public suspend fun kmsKeyId(`value`: Output) {
        this.kmsKeyId = value
    }

    /**
     * @param value The position filtering method of the tracker resource. Valid values: `TimeBased`, `DistanceBased`, `AccuracyBased`. Default: `TimeBased`.
     */
    @JvmName("pjasjqxflolupwpc")
    public suspend fun positionFiltering(`value`: Output) {
        this.positionFiltering = value
    }

    /**
     * @param value Key-value tags for the tracker. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("frpniiuubomjkway")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The name of the tracker resource.
     * The following arguments are optional:
     */
    @JvmName("cvchegdpwgxfkqov")
    public suspend fun trackerName(`value`: Output) {
        this.trackerName = value
    }

    /**
     * @param value The optional description for the tracker resource.
     */
    @JvmName("chluejjepkkatrrr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
     */
    @JvmName("gtlpiyefnhnnvhms")
    public suspend fun kmsKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyId = mapped
    }

    /**
     * @param value The position filtering method of the tracker resource. Valid values: `TimeBased`, `DistanceBased`, `AccuracyBased`. Default: `TimeBased`.
     */
    @JvmName("jexkyfrvxjvxwowc")
    public suspend fun positionFiltering(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.positionFiltering = mapped
    }

    /**
     * @param value Key-value tags for the tracker. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("anhtbvmwwcsmoyoq")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key-value tags for the tracker. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("kajktbwafwdcdosp")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The name of the tracker resource.
     * The following arguments are optional:
     */
    @JvmName("kctwptnkimppkdkw")
    public suspend fun trackerName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trackerName = mapped
    }

    internal fun build(): TrackerArgs = TrackerArgs(
        description = description,
        kmsKeyId = kmsKeyId,
        positionFiltering = positionFiltering,
        tags = tags,
        trackerName = trackerName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy