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

com.pulumi.aws.swf.kotlin.DomainArgs.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.swf.kotlin

import com.pulumi.aws.swf.DomainArgs.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 an SWF Domain resource.
 * ## Example Usage
 * To register a basic SWF domain:
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const foo = new aws.swf.Domain("foo", {
 *     name: "foo",
 *     description: "SWF Domain",
 *     workflowExecutionRetentionPeriodInDays: "30",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * foo = aws.swf.Domain("foo",
 *     name="foo",
 *     description="SWF Domain",
 *     workflow_execution_retention_period_in_days="30")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var foo = new Aws.Swf.Domain("foo", new()
 *     {
 *         Name = "foo",
 *         Description = "SWF Domain",
 *         WorkflowExecutionRetentionPeriodInDays = "30",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/swf"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := swf.NewDomain(ctx, "foo", &swf.DomainArgs{
 * 			Name:                                   pulumi.String("foo"),
 * 			Description:                            pulumi.String("SWF Domain"),
 * 			WorkflowExecutionRetentionPeriodInDays: pulumi.String("30"),
 * 		})
 * 		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.swf.Domain;
 * import com.pulumi.aws.swf.DomainArgs;
 * 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 foo = new Domain("foo", DomainArgs.builder()
 *             .name("foo")
 *             .description("SWF Domain")
 *             .workflowExecutionRetentionPeriodInDays(30)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   foo:
 *     type: aws:swf:Domain
 *     properties:
 *       name: foo
 *       description: SWF Domain
 *       workflowExecutionRetentionPeriodInDays: 30
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import SWF Domains using the `name`. For example:
 * ```sh
 * $ pulumi import aws:swf/domain:Domain foo test-domain
 * ```
 * @property description The domain description.
 * @property name The name of the domain. If omitted, this provider will assign a random, unique name.
 * @property namePrefix Creates a unique name beginning with the specified prefix. Conflicts with `name`.
 * @property tags Key-value map 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.
 * @property workflowExecutionRetentionPeriodInDays Length of time that SWF will continue to retain information about the workflow execution after the workflow execution is complete, must be between 0 and 90 days.
 */
public data class DomainArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val namePrefix: Output? = null,
    public val tags: Output>? = null,
    public val workflowExecutionRetentionPeriodInDays: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.swf.DomainArgs = com.pulumi.aws.swf.DomainArgs.builder()
        .description(description?.applyValue({ args0 -> args0 }))
        .name(name?.applyValue({ args0 -> args0 }))
        .namePrefix(namePrefix?.applyValue({ args0 -> args0 }))
        .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
        .workflowExecutionRetentionPeriodInDays(
            workflowExecutionRetentionPeriodInDays?.applyValue({ args0 ->
                args0
            }),
        ).build()
}

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

    private var name: Output? = null

    private var namePrefix: Output? = null

    private var tags: Output>? = null

    private var workflowExecutionRetentionPeriodInDays: Output? = null

    /**
     * @param value The domain description.
     */
    @JvmName("grvjfrcqgndsdopd")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the domain. If omitted, this provider will assign a random, unique name.
     */
    @JvmName("rwrdriyvfixthjrq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Creates a unique name beginning with the specified prefix. Conflicts with `name`.
     */
    @JvmName("mukhbxwmylkyewyq")
    public suspend fun namePrefix(`value`: Output) {
        this.namePrefix = value
    }

    /**
     * @param value Key-value map 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("gtjqhasfxclkymoh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Length of time that SWF will continue to retain information about the workflow execution after the workflow execution is complete, must be between 0 and 90 days.
     */
    @JvmName("agmvapmnififtqck")
    public suspend fun workflowExecutionRetentionPeriodInDays(`value`: Output) {
        this.workflowExecutionRetentionPeriodInDays = value
    }

    /**
     * @param value The domain description.
     */
    @JvmName("ghvkgfmhploitemr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the domain. If omitted, this provider will assign a random, unique name.
     */
    @JvmName("jrknyhcpmmvvyhyy")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Creates a unique name beginning with the specified prefix. Conflicts with `name`.
     */
    @JvmName("jeqpsdaywrwofcjk")
    public suspend fun namePrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namePrefix = mapped
    }

    /**
     * @param value Key-value map 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("lmghsydkqqocyumn")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key-value map 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("rhmvpeulibdmxlni")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Length of time that SWF will continue to retain information about the workflow execution after the workflow execution is complete, must be between 0 and 90 days.
     */
    @JvmName("ynipaxidocybqcec")
    public suspend fun workflowExecutionRetentionPeriodInDays(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workflowExecutionRetentionPeriodInDays = mapped
    }

    internal fun build(): DomainArgs = DomainArgs(
        description = description,
        name = name,
        namePrefix = namePrefix,
        tags = tags,
        workflowExecutionRetentionPeriodInDays = workflowExecutionRetentionPeriodInDays,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy