1. Packages
  2. Awx Provider
  3. API Docs
  4. User
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

awx.User

Explore with Pulumi AI

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,
         username: Optional[str] = None,
         email: Optional[str] = None,
         first_name: Optional[str] = None,
         is_superuser: Optional[bool] = None,
         is_system_auditor: Optional[bool] = None,
         last_name: Optional[str] = None,
         role_entitlements: Optional[Sequence[UserRoleEntitlementArgs]] = None,
         user_id: Optional[str] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
public User(String name, UserArgs args)
public User(String name, UserArgs args, CustomResourceOptions options)
type: awx:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. UserArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 Awx.User("userResource", new()
{
    Password = "string",
    Username = "string",
    Email = "string",
    FirstName = "string",
    IsSuperuser = false,
    IsSystemAuditor = false,
    LastName = "string",
    RoleEntitlements = new[]
    {
        new Awx.Inputs.UserRoleEntitlementArgs
        {
            RoleId = 0,
        },
    },
    UserId = "string",
});
Copy
example, err := awx.NewUser(ctx, "userResource", &awx.UserArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
IsSuperuser: pulumi.Bool(false),
IsSystemAuditor: pulumi.Bool(false),
LastName: pulumi.String("string"),
RoleEntitlements: .UserRoleEntitlementArray{
&.UserRoleEntitlementArgs{
RoleId: pulumi.Float64(0),
},
},
UserId: pulumi.String("string"),
})
Copy
var userResource = new User("userResource", UserArgs.builder()
    .password("string")
    .username("string")
    .email("string")
    .firstName("string")
    .isSuperuser(false)
    .isSystemAuditor(false)
    .lastName("string")
    .roleEntitlements(UserRoleEntitlementArgs.builder()
        .roleId(0)
        .build())
    .userId("string")
    .build());
Copy
user_resource = awx.User("userResource",
    password="string",
    username="string",
    email="string",
    first_name="string",
    is_superuser=False,
    is_system_auditor=False,
    last_name="string",
    role_entitlements=[{
        "role_id": 0,
    }],
    user_id="string")
Copy
const userResource = new awx.User("userResource", {
    password: "string",
    username: "string",
    email: "string",
    firstName: "string",
    isSuperuser: false,
    isSystemAuditor: false,
    lastName: "string",
    roleEntitlements: [{
        roleId: 0,
    }],
    userId: "string",
});
Copy
type: awx:User
properties:
    email: string
    firstName: string
    isSuperuser: false
    isSystemAuditor: false
    lastName: string
    password: string
    roleEntitlements:
        - roleId: 0
    userId: string
    username: string
Copy

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 This property is required. string
Username This property is required. string
Email string
FirstName string
IsSuperuser bool
IsSystemAuditor bool
LastName string
RoleEntitlements List<UserRoleEntitlement>
Set of role IDs of the role entitlements
UserId string
Password This property is required. string
Username This property is required. string
Email string
FirstName string
IsSuperuser bool
IsSystemAuditor bool
LastName string
RoleEntitlements []UserRoleEntitlementArgs
Set of role IDs of the role entitlements
UserId string
password This property is required. String
username This property is required. String
email String
firstName String
isSuperuser Boolean
isSystemAuditor Boolean
lastName String
roleEntitlements List<UserRoleEntitlement>
Set of role IDs of the role entitlements
userId String
password This property is required. string
username This property is required. string
email string
firstName string
isSuperuser boolean
isSystemAuditor boolean
lastName string
roleEntitlements UserRoleEntitlement[]
Set of role IDs of the role entitlements
userId string
password This property is required. str
username This property is required. str
email str
first_name str
is_superuser bool
is_system_auditor bool
last_name str
role_entitlements Sequence[UserRoleEntitlementArgs]
Set of role IDs of the role entitlements
user_id str
password This property is required. String
username This property is required. String
email String
firstName String
isSuperuser Boolean
isSystemAuditor Boolean
lastName String
roleEntitlements List<Property Map>
Set of role IDs of the role entitlements
userId 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,
        email: Optional[str] = None,
        first_name: Optional[str] = None,
        is_superuser: Optional[bool] = None,
        is_system_auditor: Optional[bool] = None,
        last_name: Optional[str] = None,
        password: Optional[str] = None,
        role_entitlements: Optional[Sequence[UserRoleEntitlementArgs]] = None,
        user_id: Optional[str] = None,
        username: 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: awx:User    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Email string
FirstName string
IsSuperuser bool
IsSystemAuditor bool
LastName string
Password string
RoleEntitlements List<UserRoleEntitlement>
Set of role IDs of the role entitlements
UserId string
Username string
Email string
FirstName string
IsSuperuser bool
IsSystemAuditor bool
LastName string
Password string
RoleEntitlements []UserRoleEntitlementArgs
Set of role IDs of the role entitlements
UserId string
Username string
email String
firstName String
isSuperuser Boolean
isSystemAuditor Boolean
lastName String
password String
roleEntitlements List<UserRoleEntitlement>
Set of role IDs of the role entitlements
userId String
username String
email string
firstName string
isSuperuser boolean
isSystemAuditor boolean
lastName string
password string
roleEntitlements UserRoleEntitlement[]
Set of role IDs of the role entitlements
userId string
username string
email String
firstName String
isSuperuser Boolean
isSystemAuditor Boolean
lastName String
password String
roleEntitlements List<Property Map>
Set of role IDs of the role entitlements
userId String
username String

Supporting Types

UserRoleEntitlement
, UserRoleEntitlementArgs

RoleId This property is required. double
RoleId This property is required. float64
roleId This property is required. Double
roleId This property is required. number
role_id This property is required. float
roleId This property is required. Number

Package Details

Repository
awx denouche/terraform-provider-awx
License
Notes
This Pulumi package is based on the awx Terraform Provider.