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
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:
- 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.- 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.
- 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.- 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.
- 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.- 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.
- 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.- 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.
- 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.- 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.
- 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.- 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.
- 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.- 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.
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
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi