com.pulumi.aws.swf.kotlin.DomainArgs.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.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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy