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

com.pulumi.aws.s3tables.kotlin.TableBucketArgs.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.s3tables.kotlin

import com.pulumi.aws.s3tables.TableBucketArgs.builder
import com.pulumi.aws.s3tables.kotlin.inputs.TableBucketMaintenanceConfigurationArgs
import com.pulumi.aws.s3tables.kotlin.inputs.TableBucketMaintenanceConfigurationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Resource for managing an Amazon S3 Tables Table Bucket.
 * ## Example Usage
 * ### Basic Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.s3tables.TableBucket("example", {name: "example-bucket"});
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.s3tables.TableBucket("example", name="example-bucket")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.S3Tables.TableBucket("example", new()
 *     {
 *         Name = "example-bucket",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3tables"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := s3tables.NewTableBucket(ctx, "example", &s3tables.TableBucketArgs{
 * 			Name: pulumi.String("example-bucket"),
 * 		})
 * 		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.s3tables.TableBucket;
 * import com.pulumi.aws.s3tables.TableBucketArgs;
 * 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 TableBucket("example", TableBucketArgs.builder()
 *             .name("example-bucket")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:s3tables:TableBucket
 *     properties:
 *       name: example-bucket
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import S3 Tables Table Bucket using the `arn`. For example:
 * ```sh
 * $ pulumi import aws:s3tables/tableBucket:TableBucket example arn:aws:s3tables:us-west-2:123456789012:bucket/example-bucket
 * ```
 * @property maintenanceConfiguration A single table bucket maintenance configuration block.
 * See `maintenance_configuration` below
 * @property name Name of the table bucket.
 * Must be between 3 and 63 characters in length.
 * Can consist of lowercase letters, numbers, and hyphens, and must begin and end with a lowercase letter or number.
 * A full list of bucket naming rules may be found in S3 Tables documentation.
 * The following argument is optional:
 */
public data class TableBucketArgs(
    public val maintenanceConfiguration: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.s3tables.TableBucketArgs =
        com.pulumi.aws.s3tables.TableBucketArgs.builder()
            .maintenanceConfiguration(
                maintenanceConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TableBucketArgs].
 */
@PulumiTagMarker
public class TableBucketArgsBuilder internal constructor() {
    private var maintenanceConfiguration: Output? = null

    private var name: Output? = null

    /**
     * @param value A single table bucket maintenance configuration block.
     * See `maintenance_configuration` below
     */
    @JvmName("gsdyamilloinmmgi")
    public suspend fun maintenanceConfiguration(`value`: Output) {
        this.maintenanceConfiguration = value
    }

    /**
     * @param value Name of the table bucket.
     * Must be between 3 and 63 characters in length.
     * Can consist of lowercase letters, numbers, and hyphens, and must begin and end with a lowercase letter or number.
     * A full list of bucket naming rules may be found in S3 Tables documentation.
     * The following argument is optional:
     */
    @JvmName("ftxtguqlktyhwsax")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A single table bucket maintenance configuration block.
     * See `maintenance_configuration` below
     */
    @JvmName("gnmfnfefetmnybbl")
    public suspend fun maintenanceConfiguration(`value`: TableBucketMaintenanceConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintenanceConfiguration = mapped
    }

    /**
     * @param argument A single table bucket maintenance configuration block.
     * See `maintenance_configuration` below
     */
    @JvmName("qbqmoilloyyjwsdx")
    public suspend fun maintenanceConfiguration(argument: suspend TableBucketMaintenanceConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = TableBucketMaintenanceConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.maintenanceConfiguration = mapped
    }

    /**
     * @param value Name of the table bucket.
     * Must be between 3 and 63 characters in length.
     * Can consist of lowercase letters, numbers, and hyphens, and must begin and end with a lowercase letter or number.
     * A full list of bucket naming rules may be found in S3 Tables documentation.
     * The following argument is optional:
     */
    @JvmName("sqimuvidkjlksdjb")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): TableBucketArgs = TableBucketArgs(
        maintenanceConfiguration = maintenanceConfiguration,
        name = name,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy