com.pulumi.aws.connect.kotlin.QuickConnect.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.connect.kotlin
import com.pulumi.aws.connect.kotlin.outputs.QuickConnectQuickConnectConfig
import com.pulumi.aws.connect.kotlin.outputs.QuickConnectQuickConnectConfig.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
/**
* Builder for [QuickConnect].
*/
@PulumiTagMarker
public class QuickConnectResourceBuilder internal constructor() {
public var name: String? = null
public var args: QuickConnectArgs = QuickConnectArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend QuickConnectArgsBuilder.() -> Unit) {
val builder = QuickConnectArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): QuickConnect {
val builtJavaResource = com.pulumi.aws.connect.QuickConnect(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return QuickConnect(builtJavaResource)
}
}
/**
* Provides an Amazon Connect Quick Connect resource. For more information see
* [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html)
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const test = new aws.connect.QuickConnect("test", {
* instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
* name: "Example Name",
* description: "quick connect phone number",
* quickConnectConfig: {
* quickConnectType: "PHONE_NUMBER",
* phoneConfigs: [{
* phoneNumber: "+12345678912",
* }],
* },
* tags: {
* Name: "Example Quick Connect",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.connect.QuickConnect("test",
* instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
* name="Example Name",
* description="quick connect phone number",
* quick_connect_config={
* "quick_connect_type": "PHONE_NUMBER",
* "phone_configs": [{
* "phone_number": "+12345678912",
* }],
* },
* tags={
* "Name": "Example Quick Connect",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var test = new Aws.Connect.QuickConnect("test", new()
* {
* InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
* Name = "Example Name",
* Description = "quick connect phone number",
* QuickConnectConfig = new Aws.Connect.Inputs.QuickConnectQuickConnectConfigArgs
* {
* QuickConnectType = "PHONE_NUMBER",
* PhoneConfigs = new[]
* {
* new Aws.Connect.Inputs.QuickConnectQuickConnectConfigPhoneConfigArgs
* {
* PhoneNumber = "+12345678912",
* },
* },
* },
* Tags =
* {
* { "Name", "Example Quick Connect" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/connect"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := connect.NewQuickConnect(ctx, "test", &connect.QuickConnectArgs{
* InstanceId: pulumi.String("aaaaaaaa-bbbb-cccc-dddd-111111111111"),
* Name: pulumi.String("Example Name"),
* Description: pulumi.String("quick connect phone number"),
* QuickConnectConfig: &connect.QuickConnectQuickConnectConfigArgs{
* QuickConnectType: pulumi.String("PHONE_NUMBER"),
* PhoneConfigs: connect.QuickConnectQuickConnectConfigPhoneConfigArray{
* &connect.QuickConnectQuickConnectConfigPhoneConfigArgs{
* PhoneNumber: pulumi.String("+12345678912"),
* },
* },
* },
* Tags: pulumi.StringMap{
* "Name": pulumi.String("Example Quick Connect"),
* },
* })
* 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.connect.QuickConnect;
* import com.pulumi.aws.connect.QuickConnectArgs;
* import com.pulumi.aws.connect.inputs.QuickConnectQuickConnectConfigArgs;
* 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 QuickConnect("test", QuickConnectArgs.builder()
* .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
* .name("Example Name")
* .description("quick connect phone number")
* .quickConnectConfig(QuickConnectQuickConnectConfigArgs.builder()
* .quickConnectType("PHONE_NUMBER")
* .phoneConfigs(QuickConnectQuickConnectConfigPhoneConfigArgs.builder()
* .phoneNumber("+12345678912")
* .build())
* .build())
* .tags(Map.of("Name", "Example Quick Connect"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* test:
* type: aws:connect:QuickConnect
* properties:
* instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
* name: Example Name
* description: quick connect phone number
* quickConnectConfig:
* quickConnectType: PHONE_NUMBER
* phoneConfigs:
* - phoneNumber: '+12345678912'
* tags:
* Name: Example Quick Connect
* ```
*
* ## Import
* Using `pulumi import`, import Amazon Connect Quick Connects using the `instance_id` and `quick_connect_id` separated by a colon (`:`). For example:
* ```sh
* $ pulumi import aws:connect/quickConnect:QuickConnect example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5
* ```
*/
public class QuickConnect internal constructor(
override val javaResource: com.pulumi.aws.connect.QuickConnect,
) : KotlinCustomResource(javaResource, QuickConnectMapper) {
/**
* The Amazon Resource Name (ARN) of the Quick Connect.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* Specifies the description of the Quick Connect.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Specifies the identifier of the hosting Amazon Connect Instance.
*/
public val instanceId: Output
get() = javaResource.instanceId().applyValue({ args0 -> args0 })
/**
* Specifies the name of the Quick Connect.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* A block that defines the configuration information for the Quick Connect: `quick_connect_type` and one of `phone_config`, `queue_config`, `user_config` . The Quick Connect Config block is documented below.
*/
public val quickConnectConfig: Output
get() = javaResource.quickConnectConfig().applyValue({ args0 ->
args0.let({ args0 ->
toKotlin(args0)
})
})
/**
* The identifier for the Quick Connect.
*/
public val quickConnectId: Output
get() = javaResource.quickConnectId().applyValue({ args0 -> args0 })
/**
* Tags to apply to the Quick Connect. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy