Runpod v1.9.99 published on Wednesday, Jul 3, 2024 by Runpod
runpod.Endpoint
Explore with Pulumi AI
Create Endpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Endpoint(name: string, args: EndpointArgs, opts?: CustomResourceOptions);
@overload
def Endpoint(resource_name: str,
args: EndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Endpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
gpu_ids: Optional[str] = None,
name: Optional[str] = None,
idle_timeout: Optional[int] = None,
locations: Optional[str] = None,
network_volume_id: Optional[str] = None,
scaler_type: Optional[str] = None,
scaler_value: Optional[int] = None,
template_id: Optional[str] = None,
workers_max: Optional[int] = None,
workers_min: Optional[int] = None)
func NewEndpoint(ctx *Context, name string, args EndpointArgs, opts ...ResourceOption) (*Endpoint, error)
public Endpoint(string name, EndpointArgs args, CustomResourceOptions? opts = null)
public Endpoint(String name, EndpointArgs args)
public Endpoint(String name, EndpointArgs args, CustomResourceOptions options)
type: runpod:Endpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EndpointArgs
- 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 EndpointArgs
- 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 EndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var endpointResource = new Runpod.Endpoint("endpointResource", new()
{
GpuIds = "string",
Name = "string",
IdleTimeout = 0,
Locations = "string",
NetworkVolumeId = "string",
ScalerType = "string",
ScalerValue = 0,
TemplateId = "string",
WorkersMax = 0,
WorkersMin = 0,
});
example, err := runpod.NewEndpoint(ctx, "endpointResource", &runpod.EndpointArgs{
GpuIds: pulumi.String("string"),
Name: pulumi.String("string"),
IdleTimeout: pulumi.Int(0),
Locations: pulumi.String("string"),
NetworkVolumeId: pulumi.String("string"),
ScalerType: pulumi.String("string"),
ScalerValue: pulumi.Int(0),
TemplateId: pulumi.String("string"),
WorkersMax: pulumi.Int(0),
WorkersMin: pulumi.Int(0),
})
var endpointResource = new Endpoint("endpointResource", EndpointArgs.builder()
.gpuIds("string")
.name("string")
.idleTimeout(0)
.locations("string")
.networkVolumeId("string")
.scalerType("string")
.scalerValue(0)
.templateId("string")
.workersMax(0)
.workersMin(0)
.build());
endpoint_resource = runpod.Endpoint("endpointResource",
gpu_ids="string",
name="string",
idle_timeout=0,
locations="string",
network_volume_id="string",
scaler_type="string",
scaler_value=0,
template_id="string",
workers_max=0,
workers_min=0)
const endpointResource = new runpod.Endpoint("endpointResource", {
gpuIds: "string",
name: "string",
idleTimeout: 0,
locations: "string",
networkVolumeId: "string",
scalerType: "string",
scalerValue: 0,
templateId: "string",
workersMax: 0,
workersMin: 0,
});
type: runpod:Endpoint
properties:
gpuIds: string
idleTimeout: 0
locations: string
name: string
networkVolumeId: string
scalerType: string
scalerValue: 0
templateId: string
workersMax: 0
workersMin: 0
Endpoint 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 Endpoint resource accepts the following input properties:
- Gpu
Ids string - Name string
- Idle
Timeout int - Locations string
- Network
Volume stringId - Scaler
Type string - Scaler
Value int - Template
Id string - Workers
Max int - Workers
Min int
- Gpu
Ids string - Name string
- Idle
Timeout int - Locations string
- Network
Volume stringId - Scaler
Type string - Scaler
Value int - Template
Id string - Workers
Max int - Workers
Min int
- gpu
Ids String - name String
- idle
Timeout Integer - locations String
- network
Volume StringId - scaler
Type String - scaler
Value Integer - template
Id String - workers
Max Integer - workers
Min Integer
- gpu
Ids string - name string
- idle
Timeout number - locations string
- network
Volume stringId - scaler
Type string - scaler
Value number - template
Id string - workers
Max number - workers
Min number
- gpu_
ids str - name str
- idle_
timeout int - locations str
- network_
volume_ strid - scaler_
type str - scaler_
value int - template_
id str - workers_
max int - workers_
min int
- gpu
Ids String - name String
- idle
Timeout Number - locations String
- network
Volume StringId - scaler
Type String - scaler
Value Number - template
Id String - workers
Max Number - workers
Min Number
Outputs
All input properties are implicitly available as output properties. Additionally, the Endpoint resource produces the following output properties:
- Endpoint
Runpod
Infra. Runpod. Outputs. Endpoint - Id string
- The provider-assigned unique ID for this managed resource.
- Endpoint
Endpoint
Type - Id string
- The provider-assigned unique ID for this managed resource.
- endpoint Property Map
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
Endpoint, EndpointArgs
- Gpu
Ids string - Id string
- Idle
Timeout int - Locations string
- Name string
- Network
Volume stringId - Scaler
Type string - Scaler
Value int - Template
Id string - Workers
Max int - Workers
Min int
- Gpu
Ids string - Id string
- Idle
Timeout int - Locations string
- Name string
- Network
Volume stringId - Scaler
Type string - Scaler
Value int - Template
Id string - Workers
Max int - Workers
Min int
- gpu
Ids String - id String
- idle
Timeout Integer - locations String
- name String
- network
Volume StringId - scaler
Type String - scaler
Value Integer - template
Id String - workers
Max Integer - workers
Min Integer
- gpu
Ids string - id string
- idle
Timeout number - locations string
- name string
- network
Volume stringId - scaler
Type string - scaler
Value number - template
Id string - workers
Max number - workers
Min number
- gpu_
ids str - id str
- idle_
timeout int - locations str
- name str
- network_
volume_ strid - scaler_
type str - scaler_
value int - template_
id str - workers_
max int - workers_
min int
- gpu
Ids String - id String
- idle
Timeout Number - locations String
- name String
- network
Volume StringId - scaler
Type String - scaler
Value Number - template
Id String - workers
Max Number - workers
Min Number
Package Details
- Repository
- runpod runpod/pulumi-runpod-native
- License
- Apache-2.0