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

com.pulumi.aws.route53recoveryreadiness.kotlin.RecoveryGroupArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.route53recoveryreadiness.kotlin

import com.pulumi.aws.route53recoveryreadiness.RecoveryGroupArgs.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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Provides an AWS Route 53 Recovery Readiness Recovery Group.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.route53recoveryreadiness.RecoveryGroup("example", {recoveryGroupName: "my-high-availability-app"});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.route53recoveryreadiness.RecoveryGroup("example", recovery_group_name="my-high-availability-app")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.Route53RecoveryReadiness.RecoveryGroup("example", new()
 *     {
 *         RecoveryGroupName = "my-high-availability-app",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53recoveryreadiness"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := route53recoveryreadiness.NewRecoveryGroup(ctx, "example", &route53recoveryreadiness.RecoveryGroupArgs{
 * 			RecoveryGroupName: pulumi.String("my-high-availability-app"),
 * 		})
 * 		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.route53recoveryreadiness.RecoveryGroup;
 * import com.pulumi.aws.route53recoveryreadiness.RecoveryGroupArgs;
 * 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 RecoveryGroup("example", RecoveryGroupArgs.builder()
 *             .recoveryGroupName("my-high-availability-app")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:route53recoveryreadiness:RecoveryGroup
 *     properties:
 *       recoveryGroupName: my-high-availability-app
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import Route53 Recovery Readiness recovery groups using the recovery group name. For example:
 * ```sh
 * $ pulumi import aws:route53recoveryreadiness/recoveryGroup:RecoveryGroup my-high-availability-app my-high-availability-app
 * ```
 * @property cells List of cell arns to add as nested fault domains within this recovery group
 * @property recoveryGroupName A unique name describing the recovery group.
 * The following argument are optional:
 * @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
 */
public data class RecoveryGroupArgs(
    public val cells: Output>? = null,
    public val recoveryGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.route53recoveryreadiness.RecoveryGroupArgs =
        com.pulumi.aws.route53recoveryreadiness.RecoveryGroupArgs.builder()
            .cells(cells?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .recoveryGroupName(recoveryGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RecoveryGroupArgs].
 */
@PulumiTagMarker
public class RecoveryGroupArgsBuilder internal constructor() {
    private var cells: Output>? = null

    private var recoveryGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value List of cell arns to add as nested fault domains within this recovery group
     */
    @JvmName("plesrsxcurianikc")
    public suspend fun cells(`value`: Output>) {
        this.cells = value
    }

    @JvmName("mftpduoctlhvsuhk")
    public suspend fun cells(vararg values: Output) {
        this.cells = Output.all(values.asList())
    }

    /**
     * @param values List of cell arns to add as nested fault domains within this recovery group
     */
    @JvmName("nhivhdfpmurjqbmi")
    public suspend fun cells(values: List>) {
        this.cells = Output.all(values)
    }

    /**
     * @param value A unique name describing the recovery group.
     * The following argument are optional:
     */
    @JvmName("seoywmfebnjapjga")
    public suspend fun recoveryGroupName(`value`: Output) {
        this.recoveryGroupName = 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
     */
    @JvmName("ohfpgkbunnhdhrag")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value List of cell arns to add as nested fault domains within this recovery group
     */
    @JvmName("acaxokvxobgldtto")
    public suspend fun cells(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cells = mapped
    }

    /**
     * @param values List of cell arns to add as nested fault domains within this recovery group
     */
    @JvmName("avosblsydipapgjr")
    public suspend fun cells(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cells = mapped
    }

    /**
     * @param value A unique name describing the recovery group.
     * The following argument are optional:
     */
    @JvmName("apajbutlxniqnqds")
    public suspend fun recoveryGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recoveryGroupName = 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
     */
    @JvmName("sfvnohnknbvwcgds")
    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
     */
    @JvmName("hvkjgiiqlbhgmisk")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): RecoveryGroupArgs = RecoveryGroupArgs(
        cells = cells,
        recoveryGroupName = recoveryGroupName,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy