com.pulumi.aws.connect.kotlin.InstanceArgs.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.InstanceArgs.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 Amazon Connect instance resource. For more information see
* [Amazon Connect: Getting Started](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-get-started.html)
* !> **WARN:** Amazon Connect enforces a limit of [100 combined instance creation and deletions every 30 days](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits). For example, if you create 80 instances and delete 20 of them, you must wait 30 days to create or delete another instance. Use care when creating or deleting instances.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const test = new aws.connect.Instance("test", {
* identityManagementType: "CONNECT_MANAGED",
* inboundCallsEnabled: true,
* instanceAlias: "friendly-name-connect",
* outboundCallsEnabled: true,
* tags: {
* hello: "world",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.connect.Instance("test",
* identity_management_type="CONNECT_MANAGED",
* inbound_calls_enabled=True,
* instance_alias="friendly-name-connect",
* outbound_calls_enabled=True,
* tags={
* "hello": "world",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var test = new Aws.Connect.Instance("test", new()
* {
* IdentityManagementType = "CONNECT_MANAGED",
* InboundCallsEnabled = true,
* InstanceAlias = "friendly-name-connect",
* OutboundCallsEnabled = true,
* Tags =
* {
* { "hello", "world" },
* },
* });
* });
* ```
* ```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.NewInstance(ctx, "test", &connect.InstanceArgs{
* IdentityManagementType: pulumi.String("CONNECT_MANAGED"),
* InboundCallsEnabled: pulumi.Bool(true),
* InstanceAlias: pulumi.String("friendly-name-connect"),
* OutboundCallsEnabled: pulumi.Bool(true),
* Tags: pulumi.StringMap{
* "hello": pulumi.String("world"),
* },
* })
* 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.Instance;
* import com.pulumi.aws.connect.InstanceArgs;
* 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 Instance("test", InstanceArgs.builder()
* .identityManagementType("CONNECT_MANAGED")
* .inboundCallsEnabled(true)
* .instanceAlias("friendly-name-connect")
* .outboundCallsEnabled(true)
* .tags(Map.of("hello", "world"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* test:
* type: aws:connect:Instance
* properties:
* identityManagementType: CONNECT_MANAGED
* inboundCallsEnabled: true
* instanceAlias: friendly-name-connect
* outboundCallsEnabled: true
* tags:
* hello: world
* ```
*
* ### With Existing Active Directory
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const test = new aws.connect.Instance("test", {
* directoryId: testAwsDirectoryServiceDirectory.id,
* identityManagementType: "EXISTING_DIRECTORY",
* inboundCallsEnabled: true,
* instanceAlias: "friendly-name-connect",
* outboundCallsEnabled: true,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.connect.Instance("test",
* directory_id=test_aws_directory_service_directory["id"],
* identity_management_type="EXISTING_DIRECTORY",
* inbound_calls_enabled=True,
* instance_alias="friendly-name-connect",
* outbound_calls_enabled=True)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var test = new Aws.Connect.Instance("test", new()
* {
* DirectoryId = testAwsDirectoryServiceDirectory.Id,
* IdentityManagementType = "EXISTING_DIRECTORY",
* InboundCallsEnabled = true,
* InstanceAlias = "friendly-name-connect",
* OutboundCallsEnabled = true,
* });
* });
* ```
* ```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.NewInstance(ctx, "test", &connect.InstanceArgs{
* DirectoryId: pulumi.Any(testAwsDirectoryServiceDirectory.Id),
* IdentityManagementType: pulumi.String("EXISTING_DIRECTORY"),
* InboundCallsEnabled: pulumi.Bool(true),
* InstanceAlias: pulumi.String("friendly-name-connect"),
* OutboundCallsEnabled: pulumi.Bool(true),
* })
* 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.Instance;
* import com.pulumi.aws.connect.InstanceArgs;
* 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 Instance("test", InstanceArgs.builder()
* .directoryId(testAwsDirectoryServiceDirectory.id())
* .identityManagementType("EXISTING_DIRECTORY")
* .inboundCallsEnabled(true)
* .instanceAlias("friendly-name-connect")
* .outboundCallsEnabled(true)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* test:
* type: aws:connect:Instance
* properties:
* directoryId: ${testAwsDirectoryServiceDirectory.id}
* identityManagementType: EXISTING_DIRECTORY
* inboundCallsEnabled: true
* instanceAlias: friendly-name-connect
* outboundCallsEnabled: true
* ```
*
* ### With SAML
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
* const test = new aws.connect.Instance("test", {
* identityManagementType: "SAML",
* inboundCallsEnabled: true,
* instanceAlias: "friendly-name-connect",
* outboundCallsEnabled: true,
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.connect.Instance("test",
* identity_management_type="SAML",
* inbound_calls_enabled=True,
* instance_alias="friendly-name-connect",
* outbound_calls_enabled=True)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Aws = Pulumi.Aws;
* return await Deployment.RunAsync(() =>
* {
* var test = new Aws.Connect.Instance("test", new()
* {
* IdentityManagementType = "SAML",
* InboundCallsEnabled = true,
* InstanceAlias = "friendly-name-connect",
* OutboundCallsEnabled = true,
* });
* });
* ```
* ```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.NewInstance(ctx, "test", &connect.InstanceArgs{
* IdentityManagementType: pulumi.String("SAML"),
* InboundCallsEnabled: pulumi.Bool(true),
* InstanceAlias: pulumi.String("friendly-name-connect"),
* OutboundCallsEnabled: pulumi.Bool(true),
* })
* 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.Instance;
* import com.pulumi.aws.connect.InstanceArgs;
* 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 Instance("test", InstanceArgs.builder()
* .identityManagementType("SAML")
* .inboundCallsEnabled(true)
* .instanceAlias("friendly-name-connect")
* .outboundCallsEnabled(true)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* test:
* type: aws:connect:Instance
* properties:
* identityManagementType: SAML
* inboundCallsEnabled: true
* instanceAlias: friendly-name-connect
* outboundCallsEnabled: true
* ```
*
* ## Import
* Using `pulumi import`, import Connect instances using the `id`. For example:
* ```sh
* $ pulumi import aws:connect/instance:Instance example f1288a1f-6193-445a-b47e-af739b2
* ```
* @property autoResolveBestVoicesEnabled Specifies whether auto resolve best voices is enabled. Defaults to `true`.
* @property contactFlowLogsEnabled Specifies whether contact flow logs are enabled. Defaults to `false`.
* @property contactLensEnabled Specifies whether contact lens is enabled. Defaults to `true`.
* @property directoryId The identifier for the directory if identity_management_type is `EXISTING_DIRECTORY`.
* @property earlyMediaEnabled Specifies whether early media for outbound calls is enabled . Defaults to `true` if outbound calls is enabled.
* @property identityManagementType Specifies the identity management type attached to the instance. Allowed Values are: `SAML`, `CONNECT_MANAGED`, `EXISTING_DIRECTORY`.
* @property inboundCallsEnabled Specifies whether inbound calls are enabled.
* @property instanceAlias Specifies the name of the instance. Required if `directory_id` not specified.
* @property multiPartyConferenceEnabled Specifies whether multi-party calls/conference is enabled. Defaults to `false`.
* @property outboundCallsEnabled Specifies whether outbound calls are enabled.
* @property tags Tags to apply to the Instance. 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 InstanceArgs(
public val autoResolveBestVoicesEnabled: Output? = null,
public val contactFlowLogsEnabled: Output? = null,
public val contactLensEnabled: Output? = null,
public val directoryId: Output? = null,
public val earlyMediaEnabled: Output? = null,
public val identityManagementType: Output? = null,
public val inboundCallsEnabled: Output? = null,
public val instanceAlias: Output? = null,
public val multiPartyConferenceEnabled: Output? = null,
public val outboundCallsEnabled: Output? = null,
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy