com.pulumi.aws.route53recoverycontrol.kotlin.ControlPanelArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.route53recoverycontrol.kotlin
import com.pulumi.aws.route53recoverycontrol.ControlPanelArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides an AWS Route 53 Recovery Control Config Control Panel.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const example = new aws.route53recoverycontrol.ControlPanel("example", {
* name: "balmorhea",
* clusterArn: "arn:aws:route53-recovery-control::123456789012:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* example = aws.route53recoverycontrol.ControlPanel("example",
* name="balmorhea",
* cluster_arn="arn:aws:route53-recovery-control::123456789012:cluster/8d47920e-d789-437d-803a-2dcc4b204393")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var example = new Aws.Route53RecoveryControl.ControlPanel("example", new()
* {
* Name = "balmorhea",
* ClusterArn = "arn:aws:route53-recovery-control::123456789012:cluster/8d47920e-d789-437d-803a-2dcc4b204393",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53recoverycontrol"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := route53recoverycontrol.NewControlPanel(ctx, "example", &route53recoverycontrol.ControlPanelArgs{
* Name: pulumi.String("balmorhea"),
* ClusterArn: pulumi.String("arn:aws:route53-recovery-control::123456789012:cluster/8d47920e-d789-437d-803a-2dcc4b204393"),
* })
* 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.route53recoverycontrol.ControlPanel;
* import com.pulumi.aws.route53recoverycontrol.ControlPanelArgs;
* 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 ControlPanel("example", ControlPanelArgs.builder()
* .name("balmorhea")
* .clusterArn("arn:aws:route53-recovery-control::123456789012:cluster/8d47920e-d789-437d-803a-2dcc4b204393")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: aws:route53recoverycontrol:ControlPanel
* properties:
* name: balmorhea
* clusterArn: arn:aws:route53-recovery-control::123456789012:cluster/8d47920e-d789-437d-803a-2dcc4b204393
* ```
*
* ## Import
* Using `pulumi import`, import Route53 Recovery Control Config Control Panel using the control panel arn. For example:
* ```sh
* $ pulumi import aws:route53recoverycontrol/controlPanel:ControlPanel mypanel arn:aws:route53-recovery-control::313517334327:controlpanel/1bfba17df8684f5dab0467b71424f7e8
* ```
* @property clusterArn ARN of the cluster in which this control panel will reside.
* @property name Name describing the control panel.
*/
public data class ControlPanelArgs(
public val clusterArn: Output? = null,
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.route53recoverycontrol.ControlPanelArgs =
com.pulumi.aws.route53recoverycontrol.ControlPanelArgs.builder()
.clusterArn(clusterArn?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ControlPanelArgs].
*/
@PulumiTagMarker
public class ControlPanelArgsBuilder internal constructor() {
private var clusterArn: Output? = null
private var name: Output? = null
/**
* @param value ARN of the cluster in which this control panel will reside.
*/
@JvmName("yywwfqkobrqniwcd")
public suspend fun clusterArn(`value`: Output) {
this.clusterArn = value
}
/**
* @param value Name describing the control panel.
*/
@JvmName("ejhhimdelvsilfsn")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value ARN of the cluster in which this control panel will reside.
*/
@JvmName("nhmbvxmnpylwuhey")
public suspend fun clusterArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clusterArn = mapped
}
/**
* @param value Name describing the control panel.
*/
@JvmName("lvllrpcfcyppsrmf")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): ControlPanelArgs = ControlPanelArgs(
clusterArn = clusterArn,
name = name,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy