aws.connect.Instance
Explore with Pulumi AI
Provides an Amazon Connect instance resource. For more information see Amazon Connect: Getting Started
!> WARN: Amazon Connect enforces a limit of 100 combined instance creation and deletions every 30 days. 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
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",
    },
});
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",
    })
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
	})
}
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" },
        },
    });
});
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());
    }
}
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
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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
resources:
  test:
    type: aws:connect:Instance
    properties:
      directoryId: ${testAwsDirectoryServiceDirectory.id}
      identityManagementType: EXISTING_DIRECTORY
      inboundCallsEnabled: true
      instanceAlias: friendly-name-connect
      outboundCallsEnabled: true
With SAML
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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
resources:
  test:
    type: aws:connect:Instance
    properties:
      identityManagementType: SAML
      inboundCallsEnabled: true
      instanceAlias: friendly-name-connect
      outboundCallsEnabled: true
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             identity_management_type: Optional[str] = None,
             inbound_calls_enabled: Optional[bool] = None,
             outbound_calls_enabled: Optional[bool] = None,
             auto_resolve_best_voices_enabled: Optional[bool] = None,
             contact_flow_logs_enabled: Optional[bool] = None,
             contact_lens_enabled: Optional[bool] = None,
             directory_id: Optional[str] = None,
             early_media_enabled: Optional[bool] = None,
             instance_alias: Optional[str] = None,
             multi_party_conference_enabled: Optional[bool] = None,
             tags: Optional[Mapping[str, str]] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: aws:connect:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var instanceResource = new Aws.Connect.Instance("instanceResource", new()
{
    IdentityManagementType = "string",
    InboundCallsEnabled = false,
    OutboundCallsEnabled = false,
    AutoResolveBestVoicesEnabled = false,
    ContactFlowLogsEnabled = false,
    ContactLensEnabled = false,
    DirectoryId = "string",
    EarlyMediaEnabled = false,
    InstanceAlias = "string",
    MultiPartyConferenceEnabled = false,
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := connect.NewInstance(ctx, "instanceResource", &connect.InstanceArgs{
	IdentityManagementType:       pulumi.String("string"),
	InboundCallsEnabled:          pulumi.Bool(false),
	OutboundCallsEnabled:         pulumi.Bool(false),
	AutoResolveBestVoicesEnabled: pulumi.Bool(false),
	ContactFlowLogsEnabled:       pulumi.Bool(false),
	ContactLensEnabled:           pulumi.Bool(false),
	DirectoryId:                  pulumi.String("string"),
	EarlyMediaEnabled:            pulumi.Bool(false),
	InstanceAlias:                pulumi.String("string"),
	MultiPartyConferenceEnabled:  pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var instanceResource = new Instance("instanceResource", InstanceArgs.builder()
    .identityManagementType("string")
    .inboundCallsEnabled(false)
    .outboundCallsEnabled(false)
    .autoResolveBestVoicesEnabled(false)
    .contactFlowLogsEnabled(false)
    .contactLensEnabled(false)
    .directoryId("string")
    .earlyMediaEnabled(false)
    .instanceAlias("string")
    .multiPartyConferenceEnabled(false)
    .tags(Map.of("string", "string"))
    .build());
instance_resource = aws.connect.Instance("instanceResource",
    identity_management_type="string",
    inbound_calls_enabled=False,
    outbound_calls_enabled=False,
    auto_resolve_best_voices_enabled=False,
    contact_flow_logs_enabled=False,
    contact_lens_enabled=False,
    directory_id="string",
    early_media_enabled=False,
    instance_alias="string",
    multi_party_conference_enabled=False,
    tags={
        "string": "string",
    })
const instanceResource = new aws.connect.Instance("instanceResource", {
    identityManagementType: "string",
    inboundCallsEnabled: false,
    outboundCallsEnabled: false,
    autoResolveBestVoicesEnabled: false,
    contactFlowLogsEnabled: false,
    contactLensEnabled: false,
    directoryId: "string",
    earlyMediaEnabled: false,
    instanceAlias: "string",
    multiPartyConferenceEnabled: false,
    tags: {
        string: "string",
    },
});
type: aws:connect:Instance
properties:
    autoResolveBestVoicesEnabled: false
    contactFlowLogsEnabled: false
    contactLensEnabled: false
    directoryId: string
    earlyMediaEnabled: false
    identityManagementType: string
    inboundCallsEnabled: false
    instanceAlias: string
    multiPartyConferenceEnabled: false
    outboundCallsEnabled: false
    tags:
        string: string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- IdentityManagement stringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- InboundCalls boolEnabled 
- Specifies whether inbound calls are enabled.
- OutboundCalls boolEnabled 
- Specifies whether outbound calls are enabled.
- AutoResolve boolBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- ContactFlow boolLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- ContactLens boolEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- DirectoryId string
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- EarlyMedia boolEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- InstanceAlias string
- Specifies the name of the instance. Required if directory_idnot specified.
- MultiParty boolConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- Dictionary<string, string>
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- IdentityManagement stringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- InboundCalls boolEnabled 
- Specifies whether inbound calls are enabled.
- OutboundCalls boolEnabled 
- Specifies whether outbound calls are enabled.
- AutoResolve boolBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- ContactFlow boolLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- ContactLens boolEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- DirectoryId string
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- EarlyMedia boolEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- InstanceAlias string
- Specifies the name of the instance. Required if directory_idnot specified.
- MultiParty boolConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- map[string]string
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- identityManagement StringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- inboundCalls BooleanEnabled 
- Specifies whether inbound calls are enabled.
- outboundCalls BooleanEnabled 
- Specifies whether outbound calls are enabled.
- autoResolve BooleanBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- contactFlow BooleanLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- contactLens BooleanEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- directoryId String
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- earlyMedia BooleanEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- instanceAlias String
- Specifies the name of the instance. Required if directory_idnot specified.
- multiParty BooleanConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- Map<String,String>
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- identityManagement stringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- inboundCalls booleanEnabled 
- Specifies whether inbound calls are enabled.
- outboundCalls booleanEnabled 
- Specifies whether outbound calls are enabled.
- autoResolve booleanBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- contactFlow booleanLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- contactLens booleanEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- directoryId string
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- earlyMedia booleanEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- instanceAlias string
- Specifies the name of the instance. Required if directory_idnot specified.
- multiParty booleanConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- {[key: string]: string}
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- identity_management_ strtype 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- inbound_calls_ boolenabled 
- Specifies whether inbound calls are enabled.
- outbound_calls_ boolenabled 
- Specifies whether outbound calls are enabled.
- auto_resolve_ boolbest_ voices_ enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- contact_flow_ boollogs_ enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- contact_lens_ boolenabled 
- Specifies whether contact lens is enabled. Defaults to true.
- directory_id str
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- early_media_ boolenabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- instance_alias str
- Specifies the name of the instance. Required if directory_idnot specified.
- multi_party_ boolconference_ enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- Mapping[str, str]
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- identityManagement StringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- inboundCalls BooleanEnabled 
- Specifies whether inbound calls are enabled.
- outboundCalls BooleanEnabled 
- Specifies whether outbound calls are enabled.
- autoResolve BooleanBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- contactFlow BooleanLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- contactLens BooleanEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- directoryId String
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- earlyMedia BooleanEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- instanceAlias String
- Specifies the name of the instance. Required if directory_idnot specified.
- multiParty BooleanConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- Map<String>
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of the instance.
- CreatedTime string
- When the instance was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceRole string
- The service role of the instance.
- Status string
- The state of the instance.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- Amazon Resource Name (ARN) of the instance.
- CreatedTime string
- When the instance was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceRole string
- The service role of the instance.
- Status string
- The state of the instance.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- Amazon Resource Name (ARN) of the instance.
- createdTime String
- When the instance was created.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceRole String
- The service role of the instance.
- status String
- The state of the instance.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- Amazon Resource Name (ARN) of the instance.
- createdTime string
- When the instance was created.
- id string
- The provider-assigned unique ID for this managed resource.
- serviceRole string
- The service role of the instance.
- status string
- The state of the instance.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- Amazon Resource Name (ARN) of the instance.
- created_time str
- When the instance was created.
- id str
- The provider-assigned unique ID for this managed resource.
- service_role str
- The service role of the instance.
- status str
- The state of the instance.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- Amazon Resource Name (ARN) of the instance.
- createdTime String
- When the instance was created.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceRole String
- The service role of the instance.
- status String
- The state of the instance.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Look up Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        auto_resolve_best_voices_enabled: Optional[bool] = None,
        contact_flow_logs_enabled: Optional[bool] = None,
        contact_lens_enabled: Optional[bool] = None,
        created_time: Optional[str] = None,
        directory_id: Optional[str] = None,
        early_media_enabled: Optional[bool] = None,
        identity_management_type: Optional[str] = None,
        inbound_calls_enabled: Optional[bool] = None,
        instance_alias: Optional[str] = None,
        multi_party_conference_enabled: Optional[bool] = None,
        outbound_calls_enabled: Optional[bool] = None,
        service_role: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources:  _:    type: aws:connect:Instance    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- Amazon Resource Name (ARN) of the instance.
- AutoResolve boolBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- ContactFlow boolLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- ContactLens boolEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- CreatedTime string
- When the instance was created.
- DirectoryId string
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- EarlyMedia boolEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- IdentityManagement stringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- InboundCalls boolEnabled 
- Specifies whether inbound calls are enabled.
- InstanceAlias string
- Specifies the name of the instance. Required if directory_idnot specified.
- MultiParty boolConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- OutboundCalls boolEnabled 
- Specifies whether outbound calls are enabled.
- ServiceRole string
- The service role of the instance.
- Status string
- The state of the instance.
- Dictionary<string, string>
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- Amazon Resource Name (ARN) of the instance.
- AutoResolve boolBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- ContactFlow boolLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- ContactLens boolEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- CreatedTime string
- When the instance was created.
- DirectoryId string
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- EarlyMedia boolEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- IdentityManagement stringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- InboundCalls boolEnabled 
- Specifies whether inbound calls are enabled.
- InstanceAlias string
- Specifies the name of the instance. Required if directory_idnot specified.
- MultiParty boolConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- OutboundCalls boolEnabled 
- Specifies whether outbound calls are enabled.
- ServiceRole string
- The service role of the instance.
- Status string
- The state of the instance.
- map[string]string
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- Amazon Resource Name (ARN) of the instance.
- autoResolve BooleanBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- contactFlow BooleanLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- contactLens BooleanEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- createdTime String
- When the instance was created.
- directoryId String
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- earlyMedia BooleanEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- identityManagement StringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- inboundCalls BooleanEnabled 
- Specifies whether inbound calls are enabled.
- instanceAlias String
- Specifies the name of the instance. Required if directory_idnot specified.
- multiParty BooleanConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- outboundCalls BooleanEnabled 
- Specifies whether outbound calls are enabled.
- serviceRole String
- The service role of the instance.
- status String
- The state of the instance.
- Map<String,String>
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- Amazon Resource Name (ARN) of the instance.
- autoResolve booleanBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- contactFlow booleanLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- contactLens booleanEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- createdTime string
- When the instance was created.
- directoryId string
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- earlyMedia booleanEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- identityManagement stringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- inboundCalls booleanEnabled 
- Specifies whether inbound calls are enabled.
- instanceAlias string
- Specifies the name of the instance. Required if directory_idnot specified.
- multiParty booleanConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- outboundCalls booleanEnabled 
- Specifies whether outbound calls are enabled.
- serviceRole string
- The service role of the instance.
- status string
- The state of the instance.
- {[key: string]: string}
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- Amazon Resource Name (ARN) of the instance.
- auto_resolve_ boolbest_ voices_ enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- contact_flow_ boollogs_ enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- contact_lens_ boolenabled 
- Specifies whether contact lens is enabled. Defaults to true.
- created_time str
- When the instance was created.
- directory_id str
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- early_media_ boolenabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- identity_management_ strtype 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- inbound_calls_ boolenabled 
- Specifies whether inbound calls are enabled.
- instance_alias str
- Specifies the name of the instance. Required if directory_idnot specified.
- multi_party_ boolconference_ enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- outbound_calls_ boolenabled 
- Specifies whether outbound calls are enabled.
- service_role str
- The service role of the instance.
- status str
- The state of the instance.
- Mapping[str, str]
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- Amazon Resource Name (ARN) of the instance.
- autoResolve BooleanBest Voices Enabled 
- Specifies whether auto resolve best voices is enabled. Defaults to true.
- contactFlow BooleanLogs Enabled 
- Specifies whether contact flow logs are enabled. Defaults to false.
- contactLens BooleanEnabled 
- Specifies whether contact lens is enabled. Defaults to true.
- createdTime String
- When the instance was created.
- directoryId String
- The identifier for the directory if identity_management_type is EXISTING_DIRECTORY.
- earlyMedia BooleanEnabled 
- Specifies whether early media for outbound calls is enabled . Defaults to trueif outbound calls is enabled.
- identityManagement StringType 
- Specifies the identity management type attached to the instance. Allowed Values are: SAML,CONNECT_MANAGED,EXISTING_DIRECTORY.
- inboundCalls BooleanEnabled 
- Specifies whether inbound calls are enabled.
- instanceAlias String
- Specifies the name of the instance. Required if directory_idnot specified.
- multiParty BooleanConference Enabled 
- Specifies whether multi-party calls/conference is enabled. Defaults to false.
- outboundCalls BooleanEnabled 
- Specifies whether outbound calls are enabled.
- serviceRole String
- The service role of the instance.
- status String
- The state of the instance.
- Map<String>
- Tags to apply to the Instance. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Import
Using pulumi import, import Connect instances using the id. For example:
$ pulumi import aws:connect/instance:Instance example f1288a1f-6193-445a-b47e-af739b2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.