spotinst.Account
Explore with Pulumi AI
Provides a Spotinst account resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
// Create a Account
const myAcct = new spotinst.Account("my_acct", {name: "my_acct"});
import pulumi
import pulumi_spotinst as spotinst
# Create a Account
my_acct = spotinst.Account("my_acct", name="my_acct")
package main
import (
"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a Account
_, err := spotinst.NewAccount(ctx, "my_acct", &spotinst.AccountArgs{
Name: pulumi.String("my_acct"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SpotInst = Pulumi.SpotInst;
return await Deployment.RunAsync(() =>
{
// Create a Account
var myAcct = new SpotInst.Account("my_acct", new()
{
Name = "my_acct",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spotinst.Account;
import com.pulumi.spotinst.AccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Create a Account
var myAcct = new Account("myAcct", AccountArgs.builder()
.name("my_acct")
.build());
}
}
resources:
# Create a Account
myAcct:
type: spotinst:Account
name: my_acct
properties:
name: my_acct
Create Account Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Account(name: string, args?: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
args: Optional[AccountArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None)
func NewAccount(ctx *Context, name string, args *AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs? args = null, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: spotinst:Account
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 AccountArgs
- 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 AccountArgs
- 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 AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountArgs
- 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 spotinstAccountResource = new SpotInst.Account("spotinstAccountResource", new()
{
Name = "string",
});
example, err := spotinst.NewAccount(ctx, "spotinstAccountResource", &spotinst.AccountArgs{
Name: pulumi.String("string"),
})
var spotinstAccountResource = new Account("spotinstAccountResource", AccountArgs.builder()
.name("string")
.build());
spotinst_account_resource = spotinst.Account("spotinstAccountResource", name="string")
const spotinstAccountResource = new spotinst.Account("spotinstAccountResource", {name: "string"});
type: spotinst:Account
properties:
name: string
Account 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 Account resource accepts the following input properties:
- Name string
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- Name string
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- name String
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- name string
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- name str
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- name String
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account 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 Account Resource
Get an existing Account 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?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState 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.
- Name string
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- Name string
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- name String
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- name string
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- name str
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
- name String
- Provide a name for your account. The account name must contain at least one character that is a-z or A-Z.
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinst
Terraform Provider.