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)
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",
});
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"),
})
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());
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")
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",
});
type: awx:User
properties:
email: string
firstName: string
isSuperuser: false
isSystemAuditor: false
lastName: string
password: string
roleEntitlements:
- roleId: 0
userId: string
username: 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
This property is required. string - Username
This property is required. string - Email string
- First
Name string - Is
Superuser bool - Is
System boolAuditor - Last
Name string - Role
Entitlements List<UserRole Entitlement> - Set of role IDs of the role entitlements
- User
Id string
- Password
This property is required. string - Username
This property is required. string - Email string
- First
Name string - Is
Superuser bool - Is
System boolAuditor - Last
Name string - Role
Entitlements []UserRole Entitlement Args - Set of role IDs of the role entitlements
- User
Id string
- password
This property is required. String - username
This property is required. String - email String
- first
Name String - is
Superuser Boolean - is
System BooleanAuditor - last
Name String - role
Entitlements List<UserRole Entitlement> - Set of role IDs of the role entitlements
- user
Id String
- password
This property is required. string - username
This property is required. string - email string
- first
Name string - is
Superuser boolean - is
System booleanAuditor - last
Name string - role
Entitlements UserRole Entitlement[] - Set of role IDs of the role entitlements
- user
Id string
- password
This property is required. str - username
This property is required. str - email str
- first_
name str - is_
superuser bool - is_
system_ boolauditor - last_
name str - role_
entitlements Sequence[UserRole Entitlement Args] - 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
- first
Name String - is
Superuser Boolean - is
System BooleanAuditor - last
Name String - role
Entitlements List<Property Map> - Set of role IDs of the role entitlements
- user
Id 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.
- Email string
- First
Name string - Is
Superuser bool - Is
System boolAuditor - Last
Name string - Password string
- Role
Entitlements List<UserRole Entitlement> - Set of role IDs of the role entitlements
- User
Id string - Username string
- Email string
- First
Name string - Is
Superuser bool - Is
System boolAuditor - Last
Name string - Password string
- Role
Entitlements []UserRole Entitlement Args - Set of role IDs of the role entitlements
- User
Id string - Username string
- email String
- first
Name String - is
Superuser Boolean - is
System BooleanAuditor - last
Name String - password String
- role
Entitlements List<UserRole Entitlement> - Set of role IDs of the role entitlements
- user
Id String - username String
- email string
- first
Name string - is
Superuser boolean - is
System booleanAuditor - last
Name string - password string
- role
Entitlements UserRole Entitlement[] - Set of role IDs of the role entitlements
- user
Id string - username string
- email str
- first_
name str - is_
superuser bool - is_
system_ boolauditor - last_
name str - password str
- role_
entitlements Sequence[UserRole Entitlement Args] - Set of role IDs of the role entitlements
- user_
id str - username str
- email String
- first
Name String - is
Superuser Boolean - is
System BooleanAuditor - last
Name String - password String
- role
Entitlements List<Property Map> - Set of role IDs of the role entitlements
- user
Id String - username String
Supporting Types
UserRoleEntitlement, UserRoleEntitlementArgs
- Role
Id This property is required. double
- Role
Id This property is required. float64
- role
Id This property is required. Double
- role
Id This property is required. number
- role_
id This property is required. float
- role
Id 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.