AWS v6.71.0 published on Friday, Mar 7, 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:
- InstanceAlias string
- Returns information on a specific connect instance by alias
- InstanceId string
- Returns information on a specific connect instance by id
- Dictionary<string, string>
- A map of tags to assigned to the instance.
- InstanceAlias string
- Returns information on a specific connect instance by alias
- InstanceId string
- Returns information on a specific connect instance by id
- map[string]string
- A map of tags to assigned to the instance.
- instanceAlias String
- Returns information on a specific connect instance by alias
- instanceId String
- Returns information on a specific connect instance by id
- Map<String,String>
- A map of tags to assigned to the instance.
- instanceAlias string
- Returns information on a specific connect instance by alias
- instanceId 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.
- instanceAlias String
- Returns information on a specific connect instance by alias
- instanceId 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.
- AutoResolve boolBest Voices Enabled 
- ContactFlow boolLogs Enabled 
- Whether contact flow logs are enabled.
- ContactLens boolEnabled 
- Whether contact lens is enabled.
- CreatedTime string
- When the instance was created.
- EarlyMedia boolEnabled 
- Whether early media for outbound calls is enabled .
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityManagement stringType 
- Specifies The identity management type attached to the instance.
- InboundCalls boolEnabled 
- Whether inbound calls are enabled.
- InstanceAlias string
- InstanceId string
- MultiParty boolConference Enabled 
- Whether multi-party calls/conference is enabled.
- OutboundCalls boolEnabled 
- Whether outbound calls are enabled.
- ServiceRole 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.
- AutoResolve boolBest Voices Enabled 
- ContactFlow boolLogs Enabled 
- Whether contact flow logs are enabled.
- ContactLens boolEnabled 
- Whether contact lens is enabled.
- CreatedTime string
- When the instance was created.
- EarlyMedia boolEnabled 
- Whether early media for outbound calls is enabled .
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityManagement stringType 
- Specifies The identity management type attached to the instance.
- InboundCalls boolEnabled 
- Whether inbound calls are enabled.
- InstanceAlias string
- InstanceId string
- MultiParty boolConference Enabled 
- Whether multi-party calls/conference is enabled.
- OutboundCalls boolEnabled 
- Whether outbound calls are enabled.
- ServiceRole 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.
- autoResolve BooleanBest Voices Enabled 
- contactFlow BooleanLogs Enabled 
- Whether contact flow logs are enabled.
- contactLens BooleanEnabled 
- Whether contact lens is enabled.
- createdTime String
- When the instance was created.
- earlyMedia BooleanEnabled 
- Whether early media for outbound calls is enabled .
- id String
- The provider-assigned unique ID for this managed resource.
- identityManagement StringType 
- Specifies The identity management type attached to the instance.
- inboundCalls BooleanEnabled 
- Whether inbound calls are enabled.
- instanceAlias String
- instanceId String
- multiParty BooleanConference Enabled 
- Whether multi-party calls/conference is enabled.
- outboundCalls BooleanEnabled 
- Whether outbound calls are enabled.
- serviceRole 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.
- autoResolve booleanBest Voices Enabled 
- contactFlow booleanLogs Enabled 
- Whether contact flow logs are enabled.
- contactLens booleanEnabled 
- Whether contact lens is enabled.
- createdTime string
- When the instance was created.
- earlyMedia booleanEnabled 
- Whether early media for outbound calls is enabled .
- id string
- The provider-assigned unique ID for this managed resource.
- identityManagement stringType 
- Specifies The identity management type attached to the instance.
- inboundCalls booleanEnabled 
- Whether inbound calls are enabled.
- instanceAlias string
- instanceId string
- multiParty booleanConference Enabled 
- Whether multi-party calls/conference is enabled.
- outboundCalls booleanEnabled 
- Whether outbound calls are enabled.
- serviceRole 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.
- autoResolve BooleanBest Voices Enabled 
- contactFlow BooleanLogs Enabled 
- Whether contact flow logs are enabled.
- contactLens BooleanEnabled 
- Whether contact lens is enabled.
- createdTime String
- When the instance was created.
- earlyMedia BooleanEnabled 
- Whether early media for outbound calls is enabled .
- id String
- The provider-assigned unique ID for this managed resource.
- identityManagement StringType 
- Specifies The identity management type attached to the instance.
- inboundCalls BooleanEnabled 
- Whether inbound calls are enabled.
- instanceAlias String
- instanceId String
- multiParty BooleanConference Enabled 
- Whether multi-party calls/conference is enabled.
- outboundCalls BooleanEnabled 
- Whether outbound calls are enabled.
- serviceRole 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.