com.pulumi.aws.connect.kotlin.QuickConnectArgs.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.QuickConnectArgs.builder
import com.pulumi.aws.connect.kotlin.inputs.QuickConnectQuickConnectConfigArgs
import com.pulumi.aws.connect.kotlin.inputs.QuickConnectQuickConnectConfigArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* 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
* ```
* @property description Specifies the description of the Quick Connect.
* @property instanceId Specifies the identifier of the hosting Amazon Connect Instance.
* @property name Specifies the name of the Quick Connect.
* @property quickConnectConfig 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.
* @property tags 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 data class QuickConnectArgs(
public val description: Output? = null,
public val instanceId: Output? = null,
public val name: Output? = null,
public val quickConnectConfig: Output? = null,
public val tags: Output