spotinst.multai.TargetSet
Create TargetSet Resource
new TargetSet(name: string, args: TargetSetArgs, opts?: CustomResourceOptions);
@overload
def TargetSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
balancer_id: Optional[str] = None,
deployment_id: Optional[str] = None,
health_check: Optional[TargetSetHealthCheckArgs] = None,
name: Optional[str] = None,
port: Optional[int] = None,
protocol: Optional[str] = None,
tags: Optional[Sequence[TargetSetTagArgs]] = None,
weight: Optional[int] = None)
@overload
def TargetSet(resource_name: str,
args: TargetSetArgs,
opts: Optional[ResourceOptions] = None)
func NewTargetSet(ctx *Context, name string, args TargetSetArgs, opts ...ResourceOption) (*TargetSet, error)
public TargetSet(string name, TargetSetArgs args, CustomResourceOptions? opts = null)
public TargetSet(String name, TargetSetArgs args)
public TargetSet(String name, TargetSetArgs args, CustomResourceOptions options)
type: spotinst:multai:TargetSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetSetArgs
- 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 TargetSetArgs
- 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 TargetSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TargetSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TargetSetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TargetSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TargetSet resource accepts the following input properties:
- Balancer
Id string - Deployment
Id string - Health
Check TargetSet Health Check Args - Protocol string
- Weight int
- Name string
- Port int
- []Target
Set Tag Args
- balancer
Id String - deployment
Id String - health
Check TargetSet Health Check Args - protocol String
- weight Integer
- name String
- port Integer
- List<Target
Set Tag Args>
- balancer
Id string - deployment
Id string - health
Check TargetSet Health Check Args - protocol string
- weight number
- name string
- port number
- Target
Set Tag Args[]
- balancer
Id String - deployment
Id String - health
Check Property Map - protocol String
- weight Number
- name String
- port Number
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the TargetSet 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 str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing TargetSet Resource
Get an existing TargetSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TargetSetState, opts?: CustomResourceOptions): TargetSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
balancer_id: Optional[str] = None,
deployment_id: Optional[str] = None,
health_check: Optional[TargetSetHealthCheckArgs] = None,
name: Optional[str] = None,
port: Optional[int] = None,
protocol: Optional[str] = None,
tags: Optional[Sequence[TargetSetTagArgs]] = None,
weight: Optional[int] = None) -> TargetSet
func GetTargetSet(ctx *Context, name string, id IDInput, state *TargetSetState, opts ...ResourceOption) (*TargetSet, error)
public static TargetSet Get(string name, Input<string> id, TargetSetState? state, CustomResourceOptions? opts = null)
public static TargetSet get(String name, Output<String> id, TargetSetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Balancer
Id string - Deployment
Id string - Health
Check TargetSet Health Check Args - Name string
- Port int
- Protocol string
- []Target
Set Tag Args - Weight int
- balancer
Id String - deployment
Id String - health
Check TargetSet Health Check Args - name String
- port Integer
- protocol String
- List<Target
Set Tag Args> - weight Integer
- balancer
Id string - deployment
Id string - health
Check TargetSet Health Check Args - name string
- port number
- protocol string
- Target
Set Tag Args[] - weight number
- balancer
Id String - deployment
Id String - health
Check Property Map - name String
- port Number
- protocol String
- List<Property Map>
- weight Number
Supporting Types
TargetSetHealthCheck
- Healthy
Threshold int - Interval int
- Path string
- Protocol string
- Timeout int
- Unhealthy
Threshold int - Port int
- Healthy
Threshold int - Interval int
- Path string
- Protocol string
- Timeout int
- Unhealthy
Threshold int - Port int
- healthy
Threshold Integer - interval Integer
- path String
- protocol String
- timeout Integer
- unhealthy
Threshold Integer - port Integer
- healthy
Threshold number - interval number
- path string
- protocol string
- timeout number
- unhealthy
Threshold number - port number
- healthy_
threshold int - interval int
- path str
- protocol str
- timeout int
- unhealthy_
threshold int - port int
- healthy
Threshold Number - interval Number
- path String
- protocol String
- timeout Number
- unhealthy
Threshold Number - port Number
TargetSetTag
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
spotinst
Terraform Provider.