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 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 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: awx.UserRoleEntitlementArray{
&awx.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 string
- Username 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 string
- Username 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 String
- username 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 string
- username 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 str
- username 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 String
- username 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
- 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.
- 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 double
- Role
Id float64
- role
Id Double
- role
Id number
- role_
id float
- role
Id Number
Package Details
- Repository
- awx denouche/terraform-provider-awx
- License
- Notes
- This Pulumi package is based on the
awx
Terraform Provider.