// NewDirectoryRole registers a new resource with the given unique name, arguments, and options.
NewDirectoryRole registers a new resource with the given unique name, arguments, and options.
// NewDirectoryRole registers a new resource with the given unique name arguments and options .
func NewDirectoryRole(ctx *pulumi.Context,
	name string, args *DirectoryRoleArgs, opts ...pulumi.ResourceOption) (*DirectoryRole, error) {
	if args == nil {
		args = &DirectoryRoleArgs{}
	}
	var resource DirectoryRole
	err := ctx.RegisterResource("azuread:index/directoryRole:DirectoryRole", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewDirectoryRole ( ctx * pulumi . Context , name string , args * DirectoryRoleArgs , opts ... pulumi . ResourceOption ) ( * DirectoryRole , error ) { if args == nil { args = & DirectoryRoleArgs { } } var resource DirectoryRole err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewDirectoryRole registers a new resource with the given unique name, arguments, and options.
NewDirectoryRole registers a new resource with the given unique name arguments and options .