Spotinst

v3.22.0 published on Thursday, Jun 30, 2022 by Pulumi

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:

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.
The following state arguments are supported:

Supporting Types

TargetSetHealthCheck

healthyThreshold Integer
interval Integer
path String
protocol String
timeout Integer
unhealthyThreshold Integer
port Integer
healthyThreshold number
interval number
path string
protocol string
timeout number
unhealthyThreshold number
port number
healthyThreshold Number
interval Number
path String
protocol String
timeout Number
unhealthyThreshold Number
port Number

TargetSetTag

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

Package Details

Repository
https://github.com/pulumi/pulumi-spotinst
License
Apache-2.0
Notes

This Pulumi package is based on the spotinst Terraform Provider.