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

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

    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,
                 instance_attributes: Optional[Any] = None,
                 service_id: Optional[str] = None,
                 instance_id: Optional[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-native:servicediscovery:Instance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_servicediscovery_instance" "name" {
        # resource properties
    }

    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.

    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:

    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.

    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.
    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.

    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.
    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.

    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.
    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.

    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.
    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.

    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.
    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.

    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 str
    An identifier that you want to associate with the instance.
    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.

    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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