1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. servicediscovery
  6. getInstance

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi

    Resource Type definition for AWS::ServiceDiscovery::Instance

    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?: InvokeOutputOptions): Output<GetInstanceResult>
    def get_instance(instance_id: Optional[str] = None,
                     service_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetInstanceResult
    def get_instance_output(instance_id: pulumi.Input[Optional[str]] = None,
                     service_id: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOutputOptions] = 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 Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
    public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
    public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:servicediscovery:getInstance
      arguments:
        # arguments dictionary
    data "aws-native_servicediscovery_get_instance" "name" {
        # arguments
    }

    The following arguments are supported:

    InstanceId string
    An identifier that you want to associate with the instance.
    ServiceId string
    The ID or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance.
    InstanceId string
    An identifier that you want to associate with the instance.
    ServiceId string
    The ID or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance.
    instance_id string
    An identifier that you want to associate with the instance.
    service_id string
    The ID or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance.
    instanceId String
    An identifier that you want to associate with the instance.
    serviceId String
    The ID or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance.
    instanceId string
    An identifier that you want to associate with the instance.
    serviceId string
    The ID or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance.
    instance_id str
    An identifier that you want to associate with the instance.
    service_id str
    The ID or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance.
    instanceId String
    An identifier that you want to associate with the instance.
    serviceId String
    The ID or Amazon Resource Name (ARN) of the service that you want to use for settings for the instance.

    getInstance Result

    The following output properties are available:

    InstanceAttributes object

    A string map that contains information for the service that is specified in ServiceId.

    Search the CloudFormation User Guide for AWS::ServiceDiscovery::Instance for more information about the expected schema for this property.

    InstanceAttributes interface{}

    A string map that contains information for the service that is specified in ServiceId.

    Search the CloudFormation User Guide for AWS::ServiceDiscovery::Instance for more information about the expected schema for this property.

    instance_attributes any

    A string map that contains information for the service that is specified in ServiceId.

    Search the CloudFormation User Guide for AWS::ServiceDiscovery::Instance for more information about the expected schema for this property.

    instanceAttributes Object

    A string map that contains information for the service that is specified in ServiceId.

    Search the CloudFormation User Guide for AWS::ServiceDiscovery::Instance for more information about the expected schema for this property.

    instanceAttributes any

    A string map that contains information for the service that is specified in ServiceId.

    Search the CloudFormation User Guide for AWS::ServiceDiscovery::Instance for more information about the expected schema for this property.

    instance_attributes Any

    A string map that contains information for the service that is specified in ServiceId.

    Search the CloudFormation User Guide for AWS::ServiceDiscovery::Instance for more information about the expected schema for this property.

    instanceAttributes Any

    A string map that contains information for the service that is specified in ServiceId.

    Search the CloudFormation User Guide for AWS::ServiceDiscovery::Instance for more information about the expected schema for this property.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.81.0
    published on Monday, Sep 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial