com.pulumi.aws.qldb.kotlin.LedgerArgs.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.qldb.kotlin
import com.pulumi.aws.qldb.LedgerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides an AWS Quantum Ledger Database (QLDB) resource
* > **NOTE:** Deletion protection is enabled by default. To successfully delete this resource via this provider, `deletion_protection = false` must be applied before attempting deletion.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const sample_ledger = new aws.qldb.Ledger("sample-ledger", {
* name: "sample-ledger",
* permissionsMode: "STANDARD",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* sample_ledger = aws.qldb.Ledger("sample-ledger",
* name="sample-ledger",
* permissions_mode="STANDARD")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var sample_ledger = new Aws.Qldb.Ledger("sample-ledger", new()
* {
* Name = "sample-ledger",
* PermissionsMode = "STANDARD",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/qldb"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := qldb.NewLedger(ctx, "sample-ledger", &qldb.LedgerArgs{
* Name: pulumi.String("sample-ledger"),
* PermissionsMode: pulumi.String("STANDARD"),
* })
* 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.qldb.Ledger;
* import com.pulumi.aws.qldb.LedgerArgs;
* 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 sample_ledger = new Ledger("sample-ledger", LedgerArgs.builder()
* .name("sample-ledger")
* .permissionsMode("STANDARD")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* sample-ledger:
* type: aws:qldb:Ledger
* properties:
* name: sample-ledger
* permissionsMode: STANDARD
* ```
*
* ## Import
* Using `pulumi import`, import QLDB Ledgers using the `name`. For example:
* ```sh
* $ pulumi import aws:qldb/ledger:Ledger sample-ledger sample-ledger
* ```
* @property deletionProtection The deletion protection for the QLDB Ledger instance. By default it is `true`. To delete this resource via the provider, this value must be configured to `false` and applied first before attempting deletion.
* @property kmsKey The key in AWS Key Management Service (AWS KMS) to use for encryption of data at rest in the ledger. For more information, see the [AWS documentation](https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html). Valid values are `"AWS_OWNED_KMS_KEY"` to use an AWS KMS key that is owned and managed by AWS on your behalf, or the ARN of a valid symmetric customer managed KMS key.
* @property name The friendly name for the QLDB Ledger instance. By default generated by the provider.
* @property permissionsMode The permissions mode for the QLDB ledger instance. Specify either `ALLOW_ALL` or `STANDARD`.
* @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.
*/
public data class LedgerArgs(
public val deletionProtection: Output? = null,
public val kmsKey: Output? = null,
public val name: Output? = null,
public val permissionsMode: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy