1. Packages
  2. Spotinst Provider
  3. API Docs
  4. aws
  5. Account
Spotinst v3.101.2 published on Wednesday, Dec 4, 2024 by Pulumi

spotinst.aws.Account

Explore with Pulumi AI

spotinst logo
Spotinst v3.101.2 published on Wednesday, Dec 4, 2024 by Pulumi

    Provides a Spotinst account resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spotinst from "@pulumi/spotinst";
    
    // Create a Account
    const myAwsAcct = new spotinst.aws.Account("my_aws_acct", {name: "my_aws_acct"});
    
    import pulumi
    import pulumi_spotinst as spotinst
    
    # Create a Account
    my_aws_acct = spotinst.aws.Account("my_aws_acct", name="my_aws_acct")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/aws"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create a Account
    		_, err := aws.NewAccount(ctx, "my_aws_acct", &aws.AccountArgs{
    			Name: pulumi.String("my_aws_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 myAwsAcct = new SpotInst.Aws.Account("my_aws_acct", new()
        {
            Name = "my_aws_acct",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spotinst.aws.Account;
    import com.pulumi.spotinst.aws.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 myAwsAcct = new Account("myAwsAcct", AccountArgs.builder()
                .name("my_aws_acct")
                .build());
    
        }
    }
    
    resources:
      # Create a Account
      myAwsAcct:
        type: spotinst:aws:Account
        name: my_aws_acct
        properties:
          name: my_aws_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:aws: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 accountResource = new SpotInst.Aws.Account("accountResource", new()
    {
        Name = "string",
    });
    
    example, err := aws.NewAccount(ctx, "accountResource", &aws.AccountArgs{
    	Name: pulumi.String("string"),
    })
    
    var accountResource = new Account("accountResource", AccountArgs.builder()
        .name("string")
        .build());
    
    account_resource = spotinst.aws.Account("accountResource", name="string")
    
    const accountResource = new spotinst.aws.Account("accountResource", {name: "string"});
    
    type: spotinst:aws: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.
    The following state arguments are supported:
    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.
    spotinst logo
    Spotinst v3.101.2 published on Wednesday, Dec 4, 2024 by Pulumi