azure-native-v2.billing.BillingRoleAssignmentByDepartment
Explore with Pulumi AI
The role assignment Azure REST API version: 2019-10-01-preview. Prior API version in Azure Native 1.x: 2019-10-01-preview.
Other available API versions: 2024-04-01.
Create BillingRoleAssignmentByDepartment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BillingRoleAssignmentByDepartment(name: string, args: BillingRoleAssignmentByDepartmentArgs, opts?: CustomResourceOptions);
@overload
def BillingRoleAssignmentByDepartment(resource_name: str,
args: BillingRoleAssignmentByDepartmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BillingRoleAssignmentByDepartment(resource_name: str,
opts: Optional[ResourceOptions] = None,
billing_account_name: Optional[str] = None,
department_name: Optional[str] = None,
billing_role_assignment_name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_tenant_id: Optional[str] = None,
role_definition_id: Optional[str] = None,
user_authentication_type: Optional[str] = None,
user_email_address: Optional[str] = None)
func NewBillingRoleAssignmentByDepartment(ctx *Context, name string, args BillingRoleAssignmentByDepartmentArgs, opts ...ResourceOption) (*BillingRoleAssignmentByDepartment, error)
public BillingRoleAssignmentByDepartment(string name, BillingRoleAssignmentByDepartmentArgs args, CustomResourceOptions? opts = null)
public BillingRoleAssignmentByDepartment(String name, BillingRoleAssignmentByDepartmentArgs args)
public BillingRoleAssignmentByDepartment(String name, BillingRoleAssignmentByDepartmentArgs args, CustomResourceOptions options)
type: azure-native:billing:BillingRoleAssignmentByDepartment
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. BillingRoleAssignmentByDepartmentArgs - 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. BillingRoleAssignmentByDepartmentArgs - 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. BillingRoleAssignmentByDepartmentArgs - 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. BillingRoleAssignmentByDepartmentArgs - 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. BillingRoleAssignmentByDepartmentArgs - 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 billingRoleAssignmentByDepartmentResource = new AzureNative.Billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartmentResource", new()
{
BillingAccountName = "string",
DepartmentName = "string",
BillingRoleAssignmentName = "string",
PrincipalId = "string",
PrincipalTenantId = "string",
RoleDefinitionId = "string",
UserAuthenticationType = "string",
UserEmailAddress = "string",
});
example, err := billing.NewBillingRoleAssignmentByDepartment(ctx, "billingRoleAssignmentByDepartmentResource", &billing.BillingRoleAssignmentByDepartmentArgs{
BillingAccountName: "string",
DepartmentName: "string",
BillingRoleAssignmentName: "string",
PrincipalId: "string",
PrincipalTenantId: "string",
RoleDefinitionId: "string",
UserAuthenticationType: "string",
UserEmailAddress: "string",
})
var billingRoleAssignmentByDepartmentResource = new BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartmentResource", BillingRoleAssignmentByDepartmentArgs.builder()
.billingAccountName("string")
.departmentName("string")
.billingRoleAssignmentName("string")
.principalId("string")
.principalTenantId("string")
.roleDefinitionId("string")
.userAuthenticationType("string")
.userEmailAddress("string")
.build());
billing_role_assignment_by_department_resource = azure_native.billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartmentResource",
billing_account_name=string,
department_name=string,
billing_role_assignment_name=string,
principal_id=string,
principal_tenant_id=string,
role_definition_id=string,
user_authentication_type=string,
user_email_address=string)
const billingRoleAssignmentByDepartmentResource = new azure_native.billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartmentResource", {
billingAccountName: "string",
departmentName: "string",
billingRoleAssignmentName: "string",
principalId: "string",
principalTenantId: "string",
roleDefinitionId: "string",
userAuthenticationType: "string",
userEmailAddress: "string",
});
type: azure-native:billing:BillingRoleAssignmentByDepartment
properties:
billingAccountName: string
billingRoleAssignmentName: string
departmentName: string
principalId: string
principalTenantId: string
roleDefinitionId: string
userAuthenticationType: string
userEmailAddress: string
BillingRoleAssignmentByDepartment 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 BillingRoleAssignmentByDepartment resource accepts the following input properties:
- Billing
Account Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a billing account.
- Department
Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a department.
- Billing
Role Assignment Name Changes to this property will trigger replacement.
- The ID that uniquely identifies a role assignment.
- Principal
Id string - The principal id of the user to whom the role was assigned.
- Principal
Tenant stringId - The principal tenant id of the user to whom the role was assigned.
- Role
Definition stringId - The ID of the role definition.
- User
Authentication stringType - The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- User
Email stringAddress - The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- Billing
Account Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a billing account.
- Department
Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a department.
- Billing
Role Assignment Name Changes to this property will trigger replacement.
- The ID that uniquely identifies a role assignment.
- Principal
Id string - The principal id of the user to whom the role was assigned.
- Principal
Tenant stringId - The principal tenant id of the user to whom the role was assigned.
- Role
Definition stringId - The ID of the role definition.
- User
Authentication stringType - The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- User
Email stringAddress - The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- billing
Account Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a billing account.
- department
Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a department.
- billing
Role Assignment Name Changes to this property will trigger replacement.
- The ID that uniquely identifies a role assignment.
- principal
Id String - The principal id of the user to whom the role was assigned.
- principal
Tenant StringId - The principal tenant id of the user to whom the role was assigned.
- role
Definition StringId - The ID of the role definition.
- user
Authentication StringType - The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- user
Email StringAddress - The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- billing
Account Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a billing account.
- department
Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a department.
- billing
Role Assignment Name Changes to this property will trigger replacement.
- The ID that uniquely identifies a role assignment.
- principal
Id string - The principal id of the user to whom the role was assigned.
- principal
Tenant stringId - The principal tenant id of the user to whom the role was assigned.
- role
Definition stringId - The ID of the role definition.
- user
Authentication stringType - The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- user
Email stringAddress - The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- billing_
account_ name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a billing account.
- department_
name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a department.
- billing_
role_ assignment_ name Changes to this property will trigger replacement.
- The ID that uniquely identifies a role assignment.
- principal_
id str - The principal id of the user to whom the role was assigned.
- principal_
tenant_ strid - The principal tenant id of the user to whom the role was assigned.
- role_
definition_ strid - The ID of the role definition.
- user_
authentication_ strtype - The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- user_
email_ straddress - The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- billing
Account Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a billing account.
- department
Name This property is required. Changes to this property will trigger replacement.
- The ID that uniquely identifies a department.
- billing
Role Assignment Name Changes to this property will trigger replacement.
- The ID that uniquely identifies a role assignment.
- principal
Id String - The principal id of the user to whom the role was assigned.
- principal
Tenant StringId - The principal tenant id of the user to whom the role was assigned.
- role
Definition StringId - The ID of the role definition.
- user
Authentication StringType - The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- user
Email StringAddress - The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
Outputs
All input properties are implicitly available as output properties. Additionally, the BillingRoleAssignmentByDepartment resource produces the following output properties:
- Created
By stringPrincipal Id - The principal Id of the user who created the role assignment.
- Created
By stringPrincipal Tenant Id - The tenant Id of the user who created the role assignment.
- Created
By stringUser Email Address - The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- Created
On string - The date the role assignment was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Scope string
- The scope at which the role was assigned.
- Type string
- Resource type.
- Created
By stringPrincipal Id - The principal Id of the user who created the role assignment.
- Created
By stringPrincipal Tenant Id - The tenant Id of the user who created the role assignment.
- Created
By stringUser Email Address - The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- Created
On string - The date the role assignment was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Scope string
- The scope at which the role was assigned.
- Type string
- Resource type.
- created
By StringPrincipal Id - The principal Id of the user who created the role assignment.
- created
By StringPrincipal Tenant Id - The tenant Id of the user who created the role assignment.
- created
By StringUser Email Address - The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- created
On String - The date the role assignment was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- scope String
- The scope at which the role was assigned.
- type String
- Resource type.
- created
By stringPrincipal Id - The principal Id of the user who created the role assignment.
- created
By stringPrincipal Tenant Id - The tenant Id of the user who created the role assignment.
- created
By stringUser Email Address - The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- created
On string - The date the role assignment was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- scope string
- The scope at which the role was assigned.
- type string
- Resource type.
- created_
by_ strprincipal_ id - The principal Id of the user who created the role assignment.
- created_
by_ strprincipal_ tenant_ id - The tenant Id of the user who created the role assignment.
- created_
by_ struser_ email_ address - The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- created_
on str - The date the role assignment was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- scope str
- The scope at which the role was assigned.
- type str
- Resource type.
- created
By StringPrincipal Id - The principal Id of the user who created the role assignment.
- created
By StringPrincipal Tenant Id - The tenant Id of the user who created the role assignment.
- created
By StringUser Email Address - The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- created
On String - The date the role assignment was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- scope String
- The scope at which the role was assigned.
- type String
- Resource type.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:billing:BillingRoleAssignmentByDepartment 9dfd08c2-62a3-4d47-85bd-1cdba1408402 /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/billingRoleAssignments/{billingRoleAssignmentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0