1. Packages
  2. Gandi
  3. API Docs
  4. simplehosting
  5. Instance
Gandi v0.0.14 published on Saturday, Dec 17, 2022 by Pulumiverse

gandi.simplehosting.Instance

Explore with Pulumi AI

gandi logo
Gandi v0.0.14 published on Saturday, Dec 17, 2022 by Pulumiverse

    Create Instance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
    @overload
    def Instance(resource_name: str,
                 args: InstanceArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Instance(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 database_name: Optional[str] = None,
                 language_name: Optional[str] = None,
                 location: Optional[str] = None,
                 size: Optional[str] = None,
                 name: Optional[str] = None)
    func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
    public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
    public Instance(String name, InstanceArgs args)
    public Instance(String name, InstanceArgs args, CustomResourceOptions options)
    
    type: gandi:simplehosting:Instance
    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 InstanceArgs
    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 InstanceArgs
    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 InstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstanceArgs
    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 instanceResource = new Gandi.Simplehosting.Instance("instanceResource", new()
    {
        DatabaseName = "string",
        LanguageName = "string",
        Location = "string",
        Size = "string",
        Name = "string",
    });
    
    example, err := simplehosting.NewInstance(ctx, "instanceResource", &simplehosting.InstanceArgs{
    	DatabaseName: pulumi.String("string"),
    	LanguageName: pulumi.String("string"),
    	Location:     pulumi.String("string"),
    	Size:         pulumi.String("string"),
    	Name:         pulumi.String("string"),
    })
    
    var instanceResource = new Instance("instanceResource", InstanceArgs.builder()
        .databaseName("string")
        .languageName("string")
        .location("string")
        .size("string")
        .name("string")
        .build());
    
    instance_resource = gandi.simplehosting.Instance("instanceResource",
        database_name="string",
        language_name="string",
        location="string",
        size="string",
        name="string")
    
    const instanceResource = new gandi.simplehosting.Instance("instanceResource", {
        databaseName: "string",
        languageName: "string",
        location: "string",
        size: "string",
        name: "string",
    });
    
    type: gandi:simplehosting:Instance
    properties:
        databaseName: string
        languageName: string
        location: string
        name: string
        size: string
    

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

    DatabaseName string
    The name of the database type ('mysql' or 'pgsql')
    LanguageName string
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    Location string
    The datacenter location of the instance ('FR' or 'LU')
    Size string
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    Name string
    The name of the SimpleHosting instance
    DatabaseName string
    The name of the database type ('mysql' or 'pgsql')
    LanguageName string
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    Location string
    The datacenter location of the instance ('FR' or 'LU')
    Size string
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    Name string
    The name of the SimpleHosting instance
    databaseName String
    The name of the database type ('mysql' or 'pgsql')
    languageName String
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    location String
    The datacenter location of the instance ('FR' or 'LU')
    size String
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    name String
    The name of the SimpleHosting instance
    databaseName string
    The name of the database type ('mysql' or 'pgsql')
    languageName string
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    location string
    The datacenter location of the instance ('FR' or 'LU')
    size string
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    name string
    The name of the SimpleHosting instance
    database_name str
    The name of the database type ('mysql' or 'pgsql')
    language_name str
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    location str
    The datacenter location of the instance ('FR' or 'LU')
    size str
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    name str
    The name of the SimpleHosting instance
    databaseName String
    The name of the database type ('mysql' or 'pgsql')
    languageName String
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    location String
    The datacenter location of the instance ('FR' or 'LU')
    size String
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    name String
    The name of the SimpleHosting instance

    Outputs

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

    Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            database_name: Optional[str] = None,
            language_name: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            size: Optional[str] = None) -> Instance
    func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
    public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
    public static Instance get(String name, Output<String> id, InstanceState 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:
    DatabaseName string
    The name of the database type ('mysql' or 'pgsql')
    LanguageName string
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    Location string
    The datacenter location of the instance ('FR' or 'LU')
    Name string
    The name of the SimpleHosting instance
    Size string
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    DatabaseName string
    The name of the database type ('mysql' or 'pgsql')
    LanguageName string
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    Location string
    The datacenter location of the instance ('FR' or 'LU')
    Name string
    The name of the SimpleHosting instance
    Size string
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    databaseName String
    The name of the database type ('mysql' or 'pgsql')
    languageName String
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    location String
    The datacenter location of the instance ('FR' or 'LU')
    name String
    The name of the SimpleHosting instance
    size String
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    databaseName string
    The name of the database type ('mysql' or 'pgsql')
    languageName string
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    location string
    The datacenter location of the instance ('FR' or 'LU')
    name string
    The name of the SimpleHosting instance
    size string
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    database_name str
    The name of the database type ('mysql' or 'pgsql')
    language_name str
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    location str
    The datacenter location of the instance ('FR' or 'LU')
    name str
    The name of the SimpleHosting instance
    size str
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')
    databaseName String
    The name of the database type ('mysql' or 'pgsql')
    languageName String
    The name of the language ('php', 'python', 'nodejs' or 'ruby')
    location String
    The datacenter location of the instance ('FR' or 'LU')
    name String
    The name of the SimpleHosting instance
    size String
    The size of the SimpleHosting instance ('s+', 'm', 'l' or 'xxl')

    Package Details

    Repository
    gandi pulumiverse/pulumi-gandi
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gandi Terraform Provider.
    gandi logo
    Gandi v0.0.14 published on Saturday, Dec 17, 2022 by Pulumiverse