AWS v6.77.1 published on Friday, Apr 18, 2025 by Pulumi
aws.connect.getInstance
Explore with Pulumi AI
Provides details about a specific Amazon Connect Instance.
Example Usage
By instance_alias
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const foo = aws.connect.getInstance({
    instanceAlias: "foo",
});
import pulumi
import pulumi_aws as aws
foo = aws.connect.get_instance(instance_alias="foo")
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.LookupInstance(ctx, &connect.LookupInstanceArgs{
			InstanceAlias: pulumi.StringRef("foo"),
		}, nil)
		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 foo = Aws.Connect.GetInstance.Invoke(new()
    {
        InstanceAlias = "foo",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.inputs.GetInstanceArgs;
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) {
        final var foo = ConnectFunctions.getInstance(GetInstanceArgs.builder()
            .instanceAlias("foo")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      function: aws:connect:getInstance
      arguments:
        instanceAlias: foo
By instance_id
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const foo = aws.connect.getInstance({
    instanceId: "97afc98d-101a-ba98-ab97-ae114fc115ec",
});
import pulumi
import pulumi_aws as aws
foo = aws.connect.get_instance(instance_id="97afc98d-101a-ba98-ab97-ae114fc115ec")
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.LookupInstance(ctx, &connect.LookupInstanceArgs{
			InstanceId: pulumi.StringRef("97afc98d-101a-ba98-ab97-ae114fc115ec"),
		}, nil)
		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 foo = Aws.Connect.GetInstance.Invoke(new()
    {
        InstanceId = "97afc98d-101a-ba98-ab97-ae114fc115ec",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.ConnectFunctions;
import com.pulumi.aws.connect.inputs.GetInstanceArgs;
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) {
        final var foo = ConnectFunctions.getInstance(GetInstanceArgs.builder()
            .instanceId("97afc98d-101a-ba98-ab97-ae114fc115ec")
            .build());
    }
}
variables:
  foo:
    fn::invoke:
      function: aws:connect:getInstance
      arguments:
        instanceId: 97afc98d-101a-ba98-ab97-ae114fc115ec
Using getInstance
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>def get_instance(instance_alias: Optional[str] = None,
                 instance_id: Optional[str] = None,
                 tags: Optional[Mapping[str, str]] = None,
                 opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_instance_output(instance_alias: Optional[pulumi.Input[str]] = None,
                 instance_id: Optional[pulumi.Input[str]] = None,
                 tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetInstanceResult]func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput> Note: This function is named LookupInstance in the Go SDK.
public static class GetInstance 
{
    public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: aws:connect/getInstance:getInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Alias string - Returns information on a specific connect instance by alias
 - Instance
Id string - Returns information on a specific connect instance by id
 - Dictionary<string, string>
 - A map of tags to assigned to the instance.
 
- Instance
Alias string - Returns information on a specific connect instance by alias
 - Instance
Id string - Returns information on a specific connect instance by id
 - map[string]string
 - A map of tags to assigned to the instance.
 
- instance
Alias String - Returns information on a specific connect instance by alias
 - instance
Id String - Returns information on a specific connect instance by id
 - Map<String,String>
 - A map of tags to assigned to the instance.
 
- instance
Alias string - Returns information on a specific connect instance by alias
 - instance
Id string - Returns information on a specific connect instance by id
 - {[key: string]: string}
 - A map of tags to assigned to the instance.
 
- instance_
alias str - Returns information on a specific connect instance by alias
 - instance_
id str - Returns information on a specific connect instance by id
 - Mapping[str, str]
 - A map of tags to assigned to the instance.
 
- instance
Alias String - Returns information on a specific connect instance by alias
 - instance
Id String - Returns information on a specific connect instance by id
 - Map<String>
 - A map of tags to assigned to the instance.
 
getInstance Result
The following output properties are available:
- Arn string
 - ARN of the instance.
 - Auto
Resolve boolBest Voices Enabled  - Contact
Flow boolLogs Enabled  - Whether contact flow logs are enabled.
 - Contact
Lens boolEnabled  - Whether contact lens is enabled.
 - Created
Time string - When the instance was created.
 - Early
Media boolEnabled  - Whether early media for outbound calls is enabled .
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Identity
Management stringType  - Specifies The identity management type attached to the instance.
 - Inbound
Calls boolEnabled  - Whether inbound calls are enabled.
 - Instance
Alias string - Instance
Id string - Multi
Party boolConference Enabled  - Whether multi-party calls/conference is enabled.
 - Outbound
Calls boolEnabled  - Whether outbound calls are enabled.
 - Service
Role string - Service role of the instance.
 - Status string
 - State of the instance.
 - Dictionary<string, string>
 - A map of tags to assigned to the instance.
 
- Arn string
 - ARN of the instance.
 - Auto
Resolve boolBest Voices Enabled  - Contact
Flow boolLogs Enabled  - Whether contact flow logs are enabled.
 - Contact
Lens boolEnabled  - Whether contact lens is enabled.
 - Created
Time string - When the instance was created.
 - Early
Media boolEnabled  - Whether early media for outbound calls is enabled .
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Identity
Management stringType  - Specifies The identity management type attached to the instance.
 - Inbound
Calls boolEnabled  - Whether inbound calls are enabled.
 - Instance
Alias string - Instance
Id string - Multi
Party boolConference Enabled  - Whether multi-party calls/conference is enabled.
 - Outbound
Calls boolEnabled  - Whether outbound calls are enabled.
 - Service
Role string - Service role of the instance.
 - Status string
 - State of the instance.
 - map[string]string
 - A map of tags to assigned to the instance.
 
- arn String
 - ARN of the instance.
 - auto
Resolve BooleanBest Voices Enabled  - contact
Flow BooleanLogs Enabled  - Whether contact flow logs are enabled.
 - contact
Lens BooleanEnabled  - Whether contact lens is enabled.
 - created
Time String - When the instance was created.
 - early
Media BooleanEnabled  - Whether early media for outbound calls is enabled .
 - id String
 - The provider-assigned unique ID for this managed resource.
 - identity
Management StringType  - Specifies The identity management type attached to the instance.
 - inbound
Calls BooleanEnabled  - Whether inbound calls are enabled.
 - instance
Alias String - instance
Id String - multi
Party BooleanConference Enabled  - Whether multi-party calls/conference is enabled.
 - outbound
Calls BooleanEnabled  - Whether outbound calls are enabled.
 - service
Role String - Service role of the instance.
 - status String
 - State of the instance.
 - Map<String,String>
 - A map of tags to assigned to the instance.
 
- arn string
 - ARN of the instance.
 - auto
Resolve booleanBest Voices Enabled  - contact
Flow booleanLogs Enabled  - Whether contact flow logs are enabled.
 - contact
Lens booleanEnabled  - Whether contact lens is enabled.
 - created
Time string - When the instance was created.
 - early
Media booleanEnabled  - Whether early media for outbound calls is enabled .
 - id string
 - The provider-assigned unique ID for this managed resource.
 - identity
Management stringType  - Specifies The identity management type attached to the instance.
 - inbound
Calls booleanEnabled  - Whether inbound calls are enabled.
 - instance
Alias string - instance
Id string - multi
Party booleanConference Enabled  - Whether multi-party calls/conference is enabled.
 - outbound
Calls booleanEnabled  - Whether outbound calls are enabled.
 - service
Role string - Service role of the instance.
 - status string
 - State of the instance.
 - {[key: string]: string}
 - A map of tags to assigned to the instance.
 
- arn str
 - ARN of the instance.
 - auto_
resolve_ boolbest_ voices_ enabled  - contact_
flow_ boollogs_ enabled  - Whether contact flow logs are enabled.
 - contact_
lens_ boolenabled  - Whether contact lens is enabled.
 - created_
time str - When the instance was created.
 - early_
media_ boolenabled  - Whether early media for outbound calls is enabled .
 - id str
 - The provider-assigned unique ID for this managed resource.
 - identity_
management_ strtype  - Specifies The identity management type attached to the instance.
 - inbound_
calls_ boolenabled  - Whether inbound calls are enabled.
 - instance_
alias str - instance_
id str - multi_
party_ boolconference_ enabled  - Whether multi-party calls/conference is enabled.
 - outbound_
calls_ boolenabled  - Whether outbound calls are enabled.
 - service_
role str - Service role of the instance.
 - status str
 - State of the instance.
 - Mapping[str, str]
 - A map of tags to assigned to the instance.
 
- arn String
 - ARN of the instance.
 - auto
Resolve BooleanBest Voices Enabled  - contact
Flow BooleanLogs Enabled  - Whether contact flow logs are enabled.
 - contact
Lens BooleanEnabled  - Whether contact lens is enabled.
 - created
Time String - When the instance was created.
 - early
Media BooleanEnabled  - Whether early media for outbound calls is enabled .
 - id String
 - The provider-assigned unique ID for this managed resource.
 - identity
Management StringType  - Specifies The identity management type attached to the instance.
 - inbound
Calls BooleanEnabled  - Whether inbound calls are enabled.
 - instance
Alias String - instance
Id String - multi
Party BooleanConference Enabled  - Whether multi-party calls/conference is enabled.
 - outbound
Calls BooleanEnabled  - Whether outbound calls are enabled.
 - service
Role String - Service role of the instance.
 - status String
 - State of the instance.
 - Map<String>
 - A map of tags to assigned to the instance.
 
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider.