Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

Userv1

Provides a Fastly User, representing the configuration for a user account for interacting with Fastly.

The User resource requires a login and name, and optionally a role.

Example Usage

using Pulumi;
using Fastly = Pulumi.Fastly;

class MyStack : Stack
{
    public MyStack()
    {
        var demo = new Fastly.Userv1("demo", new Fastly.Userv1Args
        {
            Login = "demo@example.com",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-fastly/sdk/v2/go/fastly"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := fastly.NewUserv1(ctx, "demo", &fastly.Userv1Args{
            Login: pulumi.String("demo@example.com"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_fastly as fastly

demo = fastly.Userv1("demo", login="demo@example.com")
import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";

const demo = new fastly.Userv1("demo", {
    login: "demo@example.com",
});

Create a Userv1 Resource

new Userv1(name: string, args: Userv1Args, opts?: CustomResourceOptions);
def Userv1(resource_name: str, opts: Optional[ResourceOptions] = None, login: Optional[str] = None, name: Optional[str] = None, role: Optional[str] = None)
func NewUserv1(ctx *Context, name string, args Userv1Args, opts ...ResourceOption) (*Userv1, error)
public Userv1(string name, Userv1Args args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args Userv1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args Userv1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args Userv1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Userv1 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Userv1 resource accepts the following input properties:

Login string

The email address, which is the login name, of the User.

Name string

The real life name of the user.

Role string

The role of this user. Can be user (the default), billing, engineer, or superuser. For detailed information on the abilities granted to each role, see Fastly’s Documentation on User roles.

Login string

The email address, which is the login name, of the User.

Name string

The real life name of the user.

Role string

The role of this user. Can be user (the default), billing, engineer, or superuser. For detailed information on the abilities granted to each role, see Fastly’s Documentation on User roles.

login string

The email address, which is the login name, of the User.

name string

The real life name of the user.

role string

The role of this user. Can be user (the default), billing, engineer, or superuser. For detailed information on the abilities granted to each role, see Fastly’s Documentation on User roles.

login str

The email address, which is the login name, of the User.

name str

The real life name of the user.

role str

The role of this user. Can be user (the default), billing, engineer, or superuser. For detailed information on the abilities granted to each role, see Fastly’s Documentation on User roles.

Outputs

All input properties are implicitly available as output properties. Additionally, the Userv1 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing Userv1 Resource

Get an existing Userv1 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?: Userv1State, opts?: CustomResourceOptions): Userv1
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, login: Optional[str] = None, name: Optional[str] = None, role: Optional[str] = None) -> Userv1
func GetUserv1(ctx *Context, name string, id IDInput, state *Userv1State, opts ...ResourceOption) (*Userv1, error)
public static Userv1 Get(string name, Input<string> id, Userv1State? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Login string

The email address, which is the login name, of the User.

Name string

The real life name of the user.

Role string

The role of this user. Can be user (the default), billing, engineer, or superuser. For detailed information on the abilities granted to each role, see Fastly’s Documentation on User roles.

Login string

The email address, which is the login name, of the User.

Name string

The real life name of the user.

Role string

The role of this user. Can be user (the default), billing, engineer, or superuser. For detailed information on the abilities granted to each role, see Fastly’s Documentation on User roles.

login string

The email address, which is the login name, of the User.

name string

The real life name of the user.

role string

The role of this user. Can be user (the default), billing, engineer, or superuser. For detailed information on the abilities granted to each role, see Fastly’s Documentation on User roles.

login str

The email address, which is the login name, of the User.

name str

The real life name of the user.

role str

The role of this user. Can be user (the default), billing, engineer, or superuser. For detailed information on the abilities granted to each role, see Fastly’s Documentation on User roles.

Import

A Fastly User can be imported using their user ID, e.g.

 $ pulumi import fastly:index/userv1:Userv1 demo xxxxxxxxxxxxxxxxxxxx

Package Details

Repository
https://github.com/pulumi/pulumi-fastly
License
Apache-2.0
Notes
This Pulumi package is based on the fastly Terraform Provider.