All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.aws.schemas.kotlin.RegistryArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.schemas.kotlin
import com.pulumi.aws.schemas.RegistryArgs.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 EventBridge Custom Schema Registry resource.
* > **Note:** EventBridge was formerly known as CloudWatch Events. The functionality is identical.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const test = new aws.schemas.Registry("test", {
* name: "my_own_registry",
* description: "A custom schema registry",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.schemas.Registry("test",
* name="my_own_registry",
* description="A custom schema registry")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var test = new Aws.Schemas.Registry("test", new()
* {
* Name = "my_own_registry",
* Description = "A custom schema registry",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/schemas"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := schemas.NewRegistry(ctx, "test", &schemas.RegistryArgs{
* Name: pulumi.String("my_own_registry"),
* Description: pulumi.String("A custom schema registry"),
* })
* 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.schemas.Registry;
* import com.pulumi.aws.schemas.RegistryArgs;
* 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 test = new Registry("test", RegistryArgs.builder()
* .name("my_own_registry")
* .description("A custom schema registry")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* test:
* type: aws:schemas:Registry
* properties:
* name: my_own_registry
* description: A custom schema registry
* ```
*
* ## Import
* Using `pulumi import`, import EventBridge schema registries using the `name`. For example:
* ```sh
* $ pulumi import aws:schemas/registry:Registry test my_own_registry
* ```
* @property description The description of the discoverer. Maximum of 256 characters.
* @property name The name of the custom event schema registry. Maximum of 64 characters consisting of lower case letters, upper case letters, 0-9, ., -, _.
* @property tags A map of tags to assign to the resource. 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 RegistryArgs(
public val description: Output? = null,
public val name: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.schemas.RegistryArgs =
com.pulumi.aws.schemas.RegistryArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [RegistryArgs].
*/
@PulumiTagMarker
public class RegistryArgsBuilder internal constructor() {
private var description: Output? = null
private var name: Output? = null
private var tags: Output>? = null
/**
* @param value The description of the discoverer. Maximum of 256 characters.
*/
@JvmName("mxpareduqkjqckdl")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The name of the custom event schema registry. Maximum of 64 characters consisting of lower case letters, upper case letters, 0-9, ., -, _.
*/
@JvmName("hcahuwrjdbluqdbg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
@JvmName("kemtdpqhuskkmduk")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The description of the discoverer. Maximum of 256 characters.
*/
@JvmName("kckspvfnrbjnvcxs")
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 custom event schema registry. Maximum of 64 characters consisting of lower case letters, upper case letters, 0-9, ., -, _.
*/
@JvmName("bqkmvujsknjiwgxy")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
@JvmName("yyltafjxyugdxniy")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
@JvmName("mvicswnmfqhgkooe")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): RegistryArgs = RegistryArgs(
description = description,
name = name,
tags = tags,
)
}