juju.User
Explore with Pulumi AI
A resource that represents a Juju User.
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
password: Optional[str] = None,
display_name: Optional[str] = None,
name: Optional[str] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: juju:User
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 UserArgs
- 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 UserArgs
- 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 UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- 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 userResource = new Juju.User("userResource", new()
{
Password = "string",
DisplayName = "string",
Name = "string",
});
example, err := juju.NewUser(ctx, "userResource", &juju.UserArgs{
Password: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Name: pulumi.String("string"),
})
var userResource = new User("userResource", UserArgs.builder()
.password("string")
.displayName("string")
.name("string")
.build());
user_resource = juju.User("userResource",
password="string",
display_name="string",
name="string")
const userResource = new juju.User("userResource", {
password: "string",
displayName: "string",
name: "string",
});
type: juju:User
properties:
displayName: string
name: string
password: string
User 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 User resource accepts the following input properties:
- Password string
- The password to be assigned to the user.
- Display
Name string - The display name to be assigned to the user (optional).
- Name string
- Password string
- The password to be assigned to the user.
- Display
Name string - The display name to be assigned to the user (optional).
- Name string
- password String
- The password to be assigned to the user.
- display
Name String - The display name to be assigned to the user (optional).
- name String
- password string
- The password to be assigned to the user.
- display
Name string - The display name to be assigned to the user (optional).
- name string
- password str
- The password to be assigned to the user.
- display_
name str - The display name to be assigned to the user (optional).
- name str
- password String
- The password to be assigned to the user.
- display
Name String - The display name to be assigned to the user (optional).
- name String
Outputs
All input properties are implicitly available as output properties. Additionally, the User 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 User Resource
Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None) -> User
func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
resources: _: type: juju:User get: id: ${id}
- 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.
- Display
Name string - The display name to be assigned to the user (optional).
- Name string
- Password string
- The password to be assigned to the user.
- Display
Name string - The display name to be assigned to the user (optional).
- Name string
- Password string
- The password to be assigned to the user.
- display
Name String - The display name to be assigned to the user (optional).
- name String
- password String
- The password to be assigned to the user.
- display
Name string - The display name to be assigned to the user (optional).
- name string
- password string
- The password to be assigned to the user.
- display_
name str - The display name to be assigned to the user (optional).
- name str
- password str
- The password to be assigned to the user.
- display
Name String - The display name to be assigned to the user (optional).
- name String
- password String
- The password to be assigned to the user.
Package Details
- Repository
- juju juju/terraform-provider-juju
- License
- Notes
- This Pulumi package is based on the
juju
Terraform Provider.