We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
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 dictionarydata "aws-native_servicediscovery_get_instance" "name" {
# arguments
}The following arguments are supported:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
getInstance Result
The following output properties are available:
- Instance
Attributes object A string map that contains information for the service that is specified in ServiceId.
Search the CloudFormation User Guide for
AWS::ServiceDiscovery::Instancefor more information about the expected schema for this property.
- Instance
Attributes interface{} A string map that contains information for the service that is specified in ServiceId.
Search the CloudFormation User Guide for
AWS::ServiceDiscovery::Instancefor 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::Instancefor more information about the expected schema for this property.
- instance
Attributes Object A string map that contains information for the service that is specified in ServiceId.
Search the CloudFormation User Guide for
AWS::ServiceDiscovery::Instancefor 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::Instancefor 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::Instancefor 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::Instancefor more information about the expected schema for this property.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi