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

com.pulumi.aws.finspace.kotlin.KxScalingGroupArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.finspace.kotlin

import com.pulumi.aws.finspace.KxScalingGroupArgs.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

/**
 * Resource for managing an AWS FinSpace Kx Scaling Group.
 * ## Example Usage
 * ### Basic Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.finspace.KxScalingGroup("example", {
 *     name: "my-tf-kx-scalinggroup",
 *     environmentId: exampleAwsFinspaceKxEnvironment.id,
 *     availabilityZoneId: "use1-az2",
 *     hostType: "kx.sg.4xlarge",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.finspace.KxScalingGroup("example",
 *     name="my-tf-kx-scalinggroup",
 *     environment_id=example_aws_finspace_kx_environment["id"],
 *     availability_zone_id="use1-az2",
 *     host_type="kx.sg.4xlarge")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.FinSpace.KxScalingGroup("example", new()
 *     {
 *         Name = "my-tf-kx-scalinggroup",
 *         EnvironmentId = exampleAwsFinspaceKxEnvironment.Id,
 *         AvailabilityZoneId = "use1-az2",
 *         HostType = "kx.sg.4xlarge",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/finspace"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := finspace.NewKxScalingGroup(ctx, "example", &finspace.KxScalingGroupArgs{
 * 			Name:               pulumi.String("my-tf-kx-scalinggroup"),
 * 			EnvironmentId:      pulumi.Any(exampleAwsFinspaceKxEnvironment.Id),
 * 			AvailabilityZoneId: pulumi.String("use1-az2"),
 * 			HostType:           pulumi.String("kx.sg.4xlarge"),
 * 		})
 * 		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.finspace.KxScalingGroup;
 * import com.pulumi.aws.finspace.KxScalingGroupArgs;
 * 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 KxScalingGroup("example", KxScalingGroupArgs.builder()
 *             .name("my-tf-kx-scalinggroup")
 *             .environmentId(exampleAwsFinspaceKxEnvironment.id())
 *             .availabilityZoneId("use1-az2")
 *             .hostType("kx.sg.4xlarge")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:finspace:KxScalingGroup
 *     properties:
 *       name: my-tf-kx-scalinggroup
 *       environmentId: ${exampleAwsFinspaceKxEnvironment.id}
 *       availabilityZoneId: use1-az2
 *       hostType: kx.sg.4xlarge
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import an AWS FinSpace Kx Scaling Group using the `id` (environment ID and scaling group name, comma-delimited). For example:
 * ```sh
 * $ pulumi import aws:finspace/kxScalingGroup:KxScalingGroup example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-scalinggroup
 * ```
 * @property availabilityZoneId The availability zone identifiers for the requested regions.
 * @property environmentId A unique identifier for the kdb environment, where you want to create the scaling group.
 * @property hostType The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.
 * The following arguments are optional:
 * @property name Unique name for the scaling group that you want to create.
 * @property tags Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. You can add up to 50 tags to a scaling group.
 */
public data class KxScalingGroupArgs(
    public val availabilityZoneId: Output? = null,
    public val environmentId: Output? = null,
    public val hostType: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.finspace.KxScalingGroupArgs =
        com.pulumi.aws.finspace.KxScalingGroupArgs.builder()
            .availabilityZoneId(availabilityZoneId?.applyValue({ args0 -> args0 }))
            .environmentId(environmentId?.applyValue({ args0 -> args0 }))
            .hostType(hostType?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [KxScalingGroupArgs].
 */
@PulumiTagMarker
public class KxScalingGroupArgsBuilder internal constructor() {
    private var availabilityZoneId: Output? = null

    private var environmentId: Output? = null

    private var hostType: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The availability zone identifiers for the requested regions.
     */
    @JvmName("myauykvaqjbbuffk")
    public suspend fun availabilityZoneId(`value`: Output) {
        this.availabilityZoneId = value
    }

    /**
     * @param value A unique identifier for the kdb environment, where you want to create the scaling group.
     */
    @JvmName("reqyahinublqyovx")
    public suspend fun environmentId(`value`: Output) {
        this.environmentId = value
    }

    /**
     * @param value The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.
     * The following arguments are optional:
     */
    @JvmName("iougttcaauwwmnum")
    public suspend fun hostType(`value`: Output) {
        this.hostType = value
    }

    /**
     * @param value Unique name for the scaling group that you want to create.
     */
    @JvmName("mxypepoktcoguhlq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. You can add up to 50 tags to a scaling group.
     */
    @JvmName("fhloouxokpvpdqsr")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The availability zone identifiers for the requested regions.
     */
    @JvmName("dquefefessimljho")
    public suspend fun availabilityZoneId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityZoneId = mapped
    }

    /**
     * @param value A unique identifier for the kdb environment, where you want to create the scaling group.
     */
    @JvmName("hviestqcloigaxtq")
    public suspend fun environmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentId = mapped
    }

    /**
     * @param value The memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed.
     * The following arguments are optional:
     */
    @JvmName("humpgceguqxufvct")
    public suspend fun hostType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostType = mapped
    }

    /**
     * @param value Unique name for the scaling group that you want to create.
     */
    @JvmName("axyifxojctskwexa")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. You can add up to 50 tags to a scaling group.
     */
    @JvmName("ejgxxmdbgyvevbyu")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key-value mapping of resource tags. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. You can add up to 50 tags to a scaling group.
     */
    @JvmName("tjbprtgxdlwcetey")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): KxScalingGroupArgs = KxScalingGroupArgs(
        availabilityZoneId = availabilityZoneId,
        environmentId = environmentId,
        hostType = hostType,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy