Spotinst

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

Target

Create Target Resource

new Target(name: string, args: TargetArgs, opts?: CustomResourceOptions);
@overload
def Target(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           balancer_id: Optional[str] = None,
           host: Optional[str] = None,
           name: Optional[str] = None,
           port: Optional[int] = None,
           tags: Optional[Sequence[TargetTagArgs]] = None,
           target_set_id: Optional[str] = None,
           weight: Optional[int] = None)
@overload
def Target(resource_name: str,
           args: TargetArgs,
           opts: Optional[ResourceOptions] = None)
func NewTarget(ctx *Context, name string, args TargetArgs, opts ...ResourceOption) (*Target, error)
public Target(string name, TargetArgs args, CustomResourceOptions? opts = null)
public Target(String name, TargetArgs args)
public Target(String name, TargetArgs args, CustomResourceOptions options)
type: spotinst:multai:Target
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TargetArgs
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 TargetArgs
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 TargetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TargetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TargetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Target 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 Target resource accepts the following input properties:

balancerId String
host String
targetSetId String
weight Integer
name String
port Integer
tags List<TargetTagArgs>
balancerId string
host string
targetSetId string
weight number
name string
port number
tags TargetTagArgs[]
balancerId String
host String
targetSetId String
weight Number
name String
port Number
tags List<Property Map>

Outputs

All input properties are implicitly available as output properties. Additionally, the Target 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 Target Resource

Get an existing Target 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?: TargetState, opts?: CustomResourceOptions): Target
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        balancer_id: Optional[str] = None,
        host: Optional[str] = None,
        name: Optional[str] = None,
        port: Optional[int] = None,
        tags: Optional[Sequence[TargetTagArgs]] = None,
        target_set_id: Optional[str] = None,
        weight: Optional[int] = None) -> Target
func GetTarget(ctx *Context, name string, id IDInput, state *TargetState, opts ...ResourceOption) (*Target, error)
public static Target Get(string name, Input<string> id, TargetState? state, CustomResourceOptions? opts = null)
public static Target get(String name, Output<String> id, TargetState 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:
balancerId String
host String
name String
port Integer
tags List<TargetTagArgs>
targetSetId String
weight Integer
balancerId string
host string
name string
port number
tags TargetTagArgs[]
targetSetId string
weight number
balancerId String
host String
name String
port Number
tags List<Property Map>
targetSetId String
weight Number

Supporting Types

TargetTag

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.