spotinst.multai.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:
- Balancer
Id string - Host string
- Target
Set stringId - Weight int
- Name string
- Port int
- List<Pulumi.
Spot Inst. Multai. Inputs. Target Tag Args>
- Balancer
Id string - Host string
- Target
Set stringId - Weight int
- Name string
- Port int
- []Target
Tag Args
- balancer
Id String - host String
- target
Set StringId - weight Integer
- name String
- port Integer
- List<Target
Tag Args>
- balancer
Id string - host string
- target
Set stringId - weight number
- name string
- port number
- Target
Tag Args[]
- balancer_
id str - host str
- target_
set_ strid - weight int
- name str
- port int
- Sequence[Target
Tag Args]
- balancer
Id String - host String
- target
Set StringId - weight Number
- name String
- port Number
- 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.
- Balancer
Id string - Host string
- Name string
- Port int
- List<Pulumi.
Spot Inst. Multai. Inputs. Target Tag Args> - Target
Set stringId - Weight int
- Balancer
Id string - Host string
- Name string
- Port int
- []Target
Tag Args - Target
Set stringId - Weight int
- balancer
Id String - host String
- name String
- port Integer
- List<Target
Tag Args> - target
Set StringId - weight Integer
- balancer
Id string - host string
- name string
- port number
- Target
Tag Args[] - target
Set stringId - weight number
- balancer_
id str - host str
- name str
- port int
- Sequence[Target
Tag Args] - target_
set_ strid - weight int
- balancer
Id String - host String
- name String
- port Number
- List<Property Map>
- target
Set StringId - weight Number
Supporting Types
TargetTag
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
spotinst
Terraform Provider.